![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Jun 2004
Location: ICQ: 59-10-33
Posts: 493
|
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 |
Confirmed User
Join Date: May 2004
Posts: 1,167
|
leave
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Feb 2002
Posts: 1,424
|
lol... use a http sniffer to find out whats been sent and recieved then set up a hostfile entry and replicate...
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Sep 2003
Posts: 672
|
until they change their hosts file to make website.com be theirwebsite.com and host their own pwd.txt and have full access.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: May 2004
Posts: 1,167
|
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Join Date: Apr 2002
Location: Los Angeles
Posts: 6,102
|
Weren't you dying or something?
Shouldn't you be seeing the world? ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |