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 Kitsune's Wrapper with Addons V3

1.3k views · started by Kitsune ·
#1
VB.Net Kitsune's Wrapper with Addons V3
I've been coding some more useful things on my wrapper, also i converted Chad's C# gasb function from his String Extensions to VB.Net.

Main Info:
 
'*****************************************************************************************************
'Coded by Kitsune
'Current Version v3 ** Added MD5, GaiaMD5, ReadFile, and Between Functions.
'***** ADDED CHAD's gasb function, converted from C# -----> VB.Net
'v1.0.2 ** Added Response String (HTML AS RESPONSE, URL, METHOD, POSTdata, Referer)
'v1.01 ** Added Cookie Container for Logins
'*****************************************************************************************************
'Uses
'GET, Webrequest(String, URL, "GET", "", "Refferer")
'If no post data and/or refferer then use ""


Ill post usage info on my other functions if anyone really needs it.

Download: http://s000.tinyupload.com/index.php?file_id=30698149862037778146

VB.Net Gaia Login Example
#2
Looks good. Maybe think about adding more customization?

-Add a ClearCookies()
-Add a Timeout/User-agent property to class
-Why does WebRequest return the same value as ByRef HTML?
-Checkout the Using keyword for IDisposable objects (IO.Stream, Net.HTTPWebResponse, etc)
-No need for a ReadFile function, there is already System.IO.File.ReadAllText and System.IO.File.ReadAllLines

Nice wrapper, something to be proud of.
#3
I have the readfile function for ease of access.

(Wrapper.ReadFile(X, X2, XSquared)) Reason it's in a class is so i don't have to re-code it every time i have a project with loads info from a txt.

ByRef HTML <--- this is used to return html from a webpage (so dim html as string, and insert it in said place and you will get the html code in a string, used to get other strings from html, should not return the same as WebRequest >.>;)

Might add ClearCookies soon.
#4
Kitsune wrote:
I have the readfile function for ease of access.

(Wrapper.ReadFile(X, X2, XSquared)) Reason it's in a class is so i don't have to re-code it every time i have a project with loads info from a txt.

ByRef HTML <--- this is used to return html from a webpage (so dim html as string, and insert it in said place and you will get the html code in a string, used to get other strings from html, should not return the same as WebRequest >.>;)

Might add ClearCookies soon.


Dim returnValue, HTML As String
With New Wrapper
returnValue = .WebRequest(HTML, "http://www.gaiaonline.com/", "GET", String.Empty, String.Empty)
End With

System.IO.File.WriteAllText("returnValue.html", returnValue)
System.IO.File.WriteAllText("HTML.html", HTML)


HTML and returnValue will be holding the same value.

It'd be pretty useful to have .WebRequest return true if it successfully executed or false if it timed out or there was an exception/etc
#5
This could be useful if I wanted to write more .net stuff.

I've been really loving python though.
#6
I actually might use python for some things, im looking into running scripts online right now though.
Was wondering if i can code a bot out of ASP.NET that way you wont have to download anything. Of course though it will have it's limits.
#7
What about java applets?

Don't know much about asp.net, but other ideas that come to mind are working with django/flask for added functionality online.

I've released a good base for scripts in python already. :)
#8
If you build and deploy an application on a server (so no client download), the main issue is all requests come from the server. i.e. all requests originate from the one IP = not a fun time.
#9
Artificial wrote:
If you build and deploy an application on a server (so no client download), the main issue is all requests come from the server. i.e. all requests originate from the one IP = not a fun time.


Ah i see your point, therefore it could link any accounts who use the server together.
So if the IP is flagged it could cause problems for anyone who uses it.
Or gaia could ban/block said IP.
#10
It wouldn't be hard to ban all users who've logged in from the one IP.