Download the file open in vb.net (vb 2008, 2007, 2009, 2010) For Eternal Darkness
Download: Here
Results 1 to 18 of 18
Thread: vb.net gaia login
- 29 Nov. 2009 03:01am #1
- 29 Nov. 2009 03:27am #2
Thanks a lot Chad!
- 29 Nov. 2009 05:56am #3
Could you post the code for it? I don't have any VB.net editor, and I don't feel like installing it for a small section of code. I wanna convert it to PHP.
- 29 Nov. 2009 06:50am #4Code:
Public Class frmMain Dim StrHTML As String Dim StrToken As String Dim StrFrob As String Private Sub cmdLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdLogin.Click If (txtUsername.Text = (vbNullString) Or txtPassword.Text = (vbNullString)) Then MessageBox.Show("Please enter a username and or password", "Error", MessageBoxButtons.OK, MessageBoxIcon.Information) Exit Sub End If cmdLogin.Enabled = False txtUsername.Enabled = False txtPassword.Enabled = False StrHTML = Wrapper.GetWrapper("http://www.gaiaonline.com/", "http://www.google.com/") StrToken = GetStringBetween(StrHTML, "name=""token"" value=""", """") StrFrob = GetStringBetween(StrHTML, "name=""frob"" value=""", """") 'MsgBox(StrToken & ":" & StrFrob) StrHTML = Wrapper.PostWrapper("http://www.gaiaonline.com/auth/login", "token=" & StrToken & "&sid=&frob=" & StrFrob & "&toolbar_id=&redirect=http%3A%2F%2Fwww.gaiaonline.com%2F&username=" & txtUsername.Text & "&password=" & txtPassword.Text & "&chap=", "http://gaiaonline.com/") SecondsToWait(1) If (InStr(1, StrHTML, "?login_success=1")) Then MessageBox.Show(txtUsername.Text & " : Has logged in!", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information) Else MessageBox.Show("Failed to login", "Error", MessageBoxButtons.OK, MessageBoxIcon.Information) txtUsername.Enabled = True txtPassword.Enabled = True cmdLogin.Enabled = True End If End Sub End Class
- 29 Nov. 2009 06:53am #5
Does this work, or is it an example of old code? I thought a CHAP key was required.
- 29 Nov. 2009 07:46am #6
- 29 Nov. 2009 03:42pm #7
You also need the wrapper files to use it. :p
- 29 Nov. 2009 05:17pm #8
- 29 Nov. 2009 05:36pm #9
Right my bad, didn't see they were included in the first post download.
- 29 Nov. 2009 05:46pm #10
- 29 Nov. 2009 06:08pm #11
Due to a technicality, login_success=1 will work. The difference is they put a timestamp instead of 1, but most timestamps start with 1 (until a good many years into the future). As long as it doesn't check to see if the URL ends with login_success=1, InStr() will work.
- 29 Nov. 2009 06:33pm #12
I am a beginner coder but I think Gamechief is right...
I downloaded it, ran it and it works Sk8ter...
I think the code basically searches for "login_success=1" in the url after it sends the data.
The time stamp is irrelevant, it comes after the "login_success=1", so as long as the url contains "login_success=1" it will say that it was a success and log you in... It will still have the time stamp from Gaia's Viewpoint....
- 29 Nov. 2009 10:12pm #13
- 29 Nov. 2009 11:46pm #14
- 30 Nov. 2009 12:32am #15
- 30 Nov. 2009 03:17am #16
- 30 Nov. 2009 04:19am #17
- 01 Dec. 2009 03:56pm #18
I thought so too. It just searches for the "login_success=1" in the Url and if it shows up you know you have logged in. Correct?
Because then it could be without the 1 or just "_success". Right?
These codes should work because there is now a "http://www.g aiaonline.com/auth/login/" if the information you put in is incorrect...