TUT - Create a simple login 'BOT' + Add features to it in VB + Source!
Hello guys,
As a lot of you are asking about 'how can I create a bot' and those questions, I wanna share a little and very basic project made in visual studio using VB.net with you!
I made a simple login bot on darkorbit, and I'll tell you how you can make it better and give it more functions.
Don't expect anything Client related, this bot is just on hpptwebrequest.
So let's start,
You first need to add 2 Textboxes (for username and password), a button (to let the bot navigate to the website -> this is not really needed, but I'll add it), and ofcourse, a webbrowser. Which should look like this:
For the account data, I used a groupbox, which is not necesarry at all! But it has a better design
To start, go to Form1.vb under public class and type in this code:
Code:
Dim didWeNavigated? As Boolean = False 'This adds the feature 'didWeNavigated' to the source.
Dim gottheserver? As Boolean = False 'This feature will be added later, auto select the server.
2nd, you'll need to double click on your 'Login button' and paste the following code:
Code:
WebBrowser1.Navigate("http://www.darkorbit.com") 'This will navigate to the darkorbit website and fill in all the information.
didWeNavigated = True 'If it is true, it will send instructions to the WebBrowser to fill in everything.
End Sub
For the following step, we're abou to create the bot itself... Double click your webbrowser and use this code:
Code:
If didWeNavigated = False Then 'If we could not connect to darkorbit due no internet connection/darkorbit website is down, it will stop.
Exit Sub
End If
If didWeNavigated = True Then didWeNavigated = False
Dim username As String = TextBox1.Text 'It will make it be able for the bot to fill in the username with the right values
Dim password As String = TextBox2.Text 'It will make it be able for the bot to fill in the password with the right values
WebBrowser1.Document.GetElementById("loginForm_default_username").SetAttribute("Value", username) 'This will search for the Username box, and paste the username information into that text field.
WebBrowser1.Document.GetElementById("loginForm_default_password").SetAttribute("Value", password) 'This will search for the Password box, and paste the password information into that text field.
WebBrowser1.Document.GetElementById("loginForm_default_loginButton").Focus() 'This one will Focus (search) on the page for the login button...
WebBrowser1.Document.GetElementById("loginForm_default_loginButton").InvokeMember("click") 'This one will click the login button, when it has been found.
Dim htmlel As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName("input")
Dim el1 As HtmlElement
End Sub
So what this code does, it basicly searches for every button and text field we need... And after the bot found it, it will paste the information from the textboxes we've added to the website, and it will press the login button...
After that, we have our own very basic login bot, this one won't select the server yet, but you can add those features and even make a good working skylab/auto-bid bot!
Open the spoiler to know how to add more features to the bot:
I will give you some more information about how to get the right codes;
I use Google Chrome for this!
You go to darkorbit.com, and rightclick into the usernames box, and then, you press 'Inspect Element' You wanna see something like this:
As we use the code to "GetElementById", you will need to search for the id, which is in this case: loginForm_default_input_username
If the 'bot' does not works anymore, it's 99% of the times darkorbit changed his code, then you should need to check the site again, and fill in the newer codes.
Do this for every Text field, button and more!
For server selection, which I haven't added yet, you'll need to do the same: right click the arrow next to the server and search for this code:
So, remember, we have 2 Basics:
1) Textbox that needs to be filled in
2) A button that needs to be pressed
For the textbox, you need to have a textbox added to your vb.net program. Then add this source, first: Give it a name, in this case, we use username and textbox1:
For a button, you don't need to add a new string, but you simply add this code (in case of the login button, with other buttons, change the id (loginForm_default_loginButton) to the right one)
Code:
WebBrowser1.Document.GetElementById("loginForm_default_loginButton").Focus() 'This one will Focus (search) on the page for the login button...
WebBrowser1.Document.GetElementById("loginForm_default_loginButton").InvokeMember("click") 'This one will click the login button, when it has been found.
The source code (Made in Visual studio 2010 Ultimate) Has been added in the attached files, please don't make it public on another site without my permission, it's like respect for my work...
I hope this guide helped a lot of people out with their bot making questions, and they can see even a httpwebrequest bot isn't that easy to create!
I know, but it's to show people that they cannot have for example just an idea like I wanna create a packet bot in 1 day, it just can't... I wanna show people how to create their own basic project... Nothing more, I gave them the source code to experiment with it...
Hope you understand, anyway, thanks for your comment
I am creating a techcenter bot (also wanna add skylab but it is harder) based on this code, I have you on skype, if you want to, you can always send me a message to join
Does somebody code this in c#? i dont understand httpwebrequest at google there are codes of 50 lines and some are only 20
Im using webbrowser now, login works perefectly but i cant select a server i have to do that manually
I am creating a techcenter bot (also wanna add skylab but it is harder) based on this code, I have you on skype, if you want to, you can always send me a message to join
[Release] a new website with simple features 05/13/2018 - SRO PServer Guides & Releases - 115 Replies Hello,
i'll release a new website for sro.
screenshot
http://i.epvpimg.com/oXXWb.jpg
website pages
Home , Download , Donate ( prices only ) , Server Team , Server Information
website features
Login - Register - Change pw - Ranking ( job ) - Server Status - the amount of online players - official server time ( its for cairo time , you can edit it easily to ur country time
website Features for server owners
add silk ( u can add silk to any user at database , you just need the username ,...
How to create a Cabal Bot (simple) 10/22/2012 - Cabal Guides & Templates - 23 Replies There are a few tutorials out there showing this method on creating a cabalbot but I decided to write this and share anyways. I created my own method as I tried to make it as clear, logical and easy to understand as possible.
To view post simply go here: The Raves of an IT Madman: How to Create a Cabal Bot
or shortlink: goo.gl/I5opJ
HOW TO CREATE SIMPLE MENU HACK.. HELP 10/15/2012 - Soldier Front Hacks, Bots, Cheats & Exploits - 2 Replies HOW TO CREATE SIMPLE MENU HACK.. HELP
HELP ME HOW TO CREATE SIMPLE MENU HACK.. PLEASE...
LIKE
PLAYER CHAMS
CROSSHAIR
FULL BRIGHT
LIKE THAT.. PLEASE ... :handsdown::handsdown::handsdown:
[VB] PHP Simple Login Source 06/20/2011 - Coding Releases - 2 Replies Was ihr dazu braucht :
Visual Basic
WebServer (FTP zum hochladen)
http://anime-stream.eu/log1n.JPG
VB Source Download (mit PHP Files) :
MEGAUPLOAD - The leading online storage and file delivery service