A preserved archive of the Logical Gamers community forums, 2009-2025. The original threads and posts, served read-only. Registration, posting and private messages are gone for good.

[VB.Net] TEMPTii's Wrapper

2.3k views · started by TEMPTii ·
#1
[VB.Net] TEMPTii's Wrapper
I spent like 3 hours coding this stupid thing so you better not use it but say you did and plus rep me anyways. This is my version of the HTTP Wrapper since the one that everybody uses doesn't even work for me for who knows why. I wouldn't recommend this to those of you who have the standard wrapper working because of chronic GUI freezing, but if you don't use this. It works just as every other wrapper does but I'll show you how to use it anyways.

Pre-Declarations (Must put these before Class declared)
Public Wrapper As New Wrapper


GetWrapper
strHTML = Wrapper.GetWrapper("www.gaiaonline.com")


PostWrapper
strHTML = Wrapper.PostWrapper("www.gaiaonline.com/auth/", strPostData)


It's ok if you don't make the URL in URI format, it will automatically turn it into one with the handy URICheck function I made in conjunction with simple string combination coding. Tell me any bugs or functions I should add because since I don't have the standard wrapper, I can't check myself. To add to your project, add existing items of functions.vb and wrapper.vb and if you get the error regarding HTTPUtility, add the reference of system.web.dll to your project.

Download TEMPTii's Wrapper
http://www.megaupload.com/?d=8CM56ILH





Code Snippits

Gaiaonline Login Function
Public Function GaiaonlineLogin(ByVal username As String, ByVal password As String) As Boolean
Dim strHTML As String
Dim strPostData As String
strHTML = Wrapper.GetWrapper("www.gaiaonline.com/auth/")
strHTML = Replace(strHTML, """", "'")
strPostData = "token=" & _
GetStringBetween(strHTML, "<input type='hidden' name='token' value='", "' />") & "&sid=" & _
GetStringBetween(strHTML, "<input type='hidden' name='sid' value='", "' />") & "&redirect=" & _
System.Web.HttpUtility.UrlEncode(GetStringBetween(strHTML, "<input type='hidden' name='redirect' value='", "' />")) & "&username=" & _
System.Web.HttpUtility.UrlEncode(username) & "&password=" & _
password & "&chap="
strHTML = Wrapper.PostWrapper("www.gaiaonline.com/auth/login/", strPostData)
If strHTML.Contains("<title>Welcome to Gaia | Gaia Online</title>") = True Then
GaiaonlineLogin = True
ElseIf strHTML.Contains("<title>Welcome to Gaia | Gaia Online</title>") = False Then
GaiaonlineLogin = False
End If
End Function


How to use:
        If GaiaonlineLogin(txtUsername, txtPassword) = True Then
MsgBox("Login successful.")
ElseIf GaiaonlineLogin(txtUsername, txtPassword = False then
MsgBox("Login failed.")
End If
#2
HE SAYS ITS FOR PORN

sonic_benny says:
IM DOWNALOD ING IT
wuts it for again xD

TEMPTii says:
gee whiz its so hot in hurrr
im gonna go walk outside
brb
its for porn

sonic_benny says:
well that explains all the gaia references
#3
TEMPTii says:
POSTS AND GETS DATA
it includes wrapper.vb and functions.vb
look at wrapper.vb
to see what i've been doing
what tedious coding i've been doing for your convenience
iShellz says:
so its for loggin in?
TEMPTii says:
we've been over this ._.

Just moments before you asked what it does. Nice spam noob. :B
#4
HAY you said it xD ok so i get it now thank you for the information ._. :3
#5
Temptii, nice work :)

Its good for those people whom use VB, but, your gaia login. Search for gold_amt or whatever it is. Not sure if your way works.
#6
Bman wrote:
Temptii, nice work :)

Its good for those people whom use VB, but, your gaia login. Search for gold_amt or whatever it is. Not sure if your way works.


Searches for the title of the page...

strHTML.Contains("<title>Welcome to Gaia | Gaia Online</title>") = True
#7
Thanks Bman.

That's how Blazer's works. TBH I just dumbed down his code for that login and it was something I didn't test cuz I had to go to sleep... It's for iShellz anyways.
#8
Make it a .dll and it can be used for all studio (C++, C#, things like that) languages.
#9
Updated download.

E: Cannot save changes, database error. New download link:
http://www.megaupload.com/?d=RPGXVJIH
#10
@your login function:

With a little enhanced knowledge, a login is as easy as a single GET request.
#11
weeeeeeelllll im still confused about this :\ i added the reference and the wrapper is still not defined
#12
Will someone please explain how to use this to me?
#13
interesting information, thanks