[Vb.net/VB8] What Am I doing wrong here...
Public Class Form1
Public Wrapper As HTTPWrapper = New HTTPWrapper
Private Sub login_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles login.Click
Dim strHTML As String
If username.Text = vbNullString Or password.Text = vbNullString Then
MessageBox.Show("You left the username and/or password field blank." & vbNewLine & "Try again..")
Exit Sub
End If
username.Enabled = False
password.Enabled = False
login.Enabled = False
strHTML = Wrapper.GetWrapper("http://www.gaiaonline.com/auth/login/", "http://www.gaiaonline.com/")
strHTML = Wrapper.PostWrapper("http://www.gaiaonline.com/auth/login/", "username=" & username.Text & "&password=" & password.Text & "&token=390877768.1259031155.231727528&sid=&redirect=http%3A%2F%2Fwww.gaiaonline.com%2F&chap=2f23608d4e502e6f959acabe21950f74", "http://gaiaonline.com/")
If strHTML.Contains("Location: http://www.gaiaonline.com/?login_success=1") Then
MessageBox.Show("You are now Logged on...")
Else
MessageBox.Show("Login Failed...")
username.Enabled = True
password.Enabled = True
login.Enabled = True
End If
End Sub
End Class
Well I got the original from here :
[VB.NET] Gaia Login with WINSOCK - Gaming Gutter
Sorry about linking to gaming gutter but it was the only place I could find that gave me the information I needed for VB8...
I also edited because chad told me to...
He said he couldn't really help me, Can anyone help?
Frob = SID
Sid = Session ID
Session ID = Temp ID used to tell who you are etc etc
Lesson #2 - you'll need a lot more programming experience to add functions to the wrapper.
Lesson #3 you would add the Frob were it says &Sid=
example
"&sid=" & strFrob & "The rest of the shit"
same goes with token
goes there just like that
but for the token take out all that shit he put in it. the numbers with the dots until you reach the equal sign.
Copy and paste what you have. Just the login code.
Who knows. Maybe it has captcha when you login. Put
If (Instr(1,StrHTML, "Can't read") Then
Msgbox.show ("Captcha")
Else
Msgbox.show ("No captcha")
End if
put this after the login or put it were the failed part is.
Wish i had my other computer to fix it but sense i'm not home i can't. Anyway, you can try to find or create your own encryption module if you want to try to encrypt the logins. Doubt it'll work but eh. Worth a shot. Ask Bman for it, doubt he has the one for vb.net.
Also, just to make sure after it attempts to login make it get gaiaonline and instead of location login success etc shit put if gold.gif then etc etc
Well, i'd try to figure it out because i wont be home for at least another 3 days. or you could just recode it in vb6 which is easier.
Thats just saying that winsock closed before it was suppose to or it failed to close, wouldn't matter really sense you are closing the program.
Well, the program will continue to run in the background (check your task manager. Processes)
Thats all that will happen. It wont do anything besides sit there.
What you could do to make sure it ends is go to Form_unloadQuery or what ever and put End in it or Unload Me
You have to find it from that thing, click the form and it should have some drop down menus at the top saying what things you have like form command button etc and to the right of that it should say for form
unload
activate or load
queary unload and some other stuff
Dude, you don't have to do it. You can if you want. If you don't do it, it will do nothing but sit in the background doing nothing until you end it via task manager. It's not that big of a deal.