![]() |
Any VB newbies? Want to password protect your software with a URL .txt
This way you can change the access password whenever you want
I just threw this together for a program I'm making Load up msinet.ocx make: text1 (password), text2 (password feedback from the web), commandbutton1 (password verification), label1 (status), form2 (the next form) ---------------------------------- Private Sub Command1_Click() Label1.Caption = "[ verifying pwd ]" Dim pWd As String pWd = Inet1.OpenURL("http://website.com/pwd.txt") Do: DoEvents Loop Until Inet1.StillExecuting = False Text2.Text = pWd If Text1.Text = "" + Text2.Text + "" = False Then GoTo unverified verified: Label1.Caption = "[ welcome... ]" Form2.Show GoTo verifiedx unverified: Label1.Caption = "[ INCORRECT ]" End verifiedx: Unload Me End Sub --------------------------- ^ simple code, but if your software leaks you can just change the access password in the URL and nobody can get in :2 cents: |
leave
|
lol... use a http sniffer to find out whats been sent and recieved then set up a hostfile entry and replicate...
|
until they change their hosts file to make website.com be theirwebsite.com and host their own pwd.txt and have full access.
|
make your app generate a random number and encode it with a private key..
send the number to the server, which also does the same encoding and sends back the encoded data. compare to the local encoded data with what you get from the server. only way to beat this would be messing with the executable or having the private key stolen. |
Weren't you dying or something?
Shouldn't you be seeing the world? :helpme |
All times are GMT -7. The time now is 09:23 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123