Register for your free account! | Forgot your password?

Go Back   elitepvpers > Other Online Games > Browsergames > DarkOrbit
You last visited: Today at 22:21

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



TUT - Create a simple login 'BOT' + Add features to it in VB + Source!

Discussion on TUT - Create a simple login 'BOT' + Add features to it in VB + Source! within the DarkOrbit forum part of the Browsergames category.

Reply
 
Old   #1
 
Joever11's Avatar
 
elite*gold: 1
Join Date: Oct 2012
Posts: 840
Received Thanks: 339
Arrow 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:
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:

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!

Bye,

Joever11

EDIT: VirusTotal:
Attached Files
File Type: zip Darkorbit Login bot - Basic.zip (69.9 KB, 271 views)
Joever11 is offline  
Thanks
14 Users
Old 03/20/2013, 18:53   #2


 
Requi's Avatar
 
elite*gold: 3570
The Black Market: 244/0/0
Join Date: Dec 2012
Posts: 13,044
Received Thanks: 8,252
Oh my gosh. WebBrowser

Else.
Good work
Requi is offline  
Old 03/20/2013, 19:00   #3
 
elite*gold: 0
Join Date: Sep 2012
Posts: 202
Received Thanks: 100
Good Job
maximunkiller is offline  
Old 03/20/2013, 19:03   #4
 
Joever11's Avatar
 
elite*gold: 1
Join Date: Oct 2012
Posts: 840
Received Thanks: 339
Quote:
Originally Posted by »AppleJack™ View Post
Oh my gosh. WebBrowser

Else.
Good work
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
Joever11 is offline  
Thanks
1 User
Old 03/20/2013, 19:12   #5
 
Vossik's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 888
Received Thanks: 308
Good job
Vossik is offline  
Thanks
1 User
Old 03/20/2013, 19:14   #6


 
Requi's Avatar
 
elite*gold: 3570
The Black Market: 244/0/0
Join Date: Dec 2012
Posts: 13,044
Received Thanks: 8,252
We can try it together
Requi is offline  
Old 03/20/2013, 19:21   #7
 
elite*gold: 0
Join Date: Jan 2012
Posts: 1,997
Received Thanks: 3,422
Lol and you know how do it with httpwebrequest xP ?
NoCheatImPGM is offline  
Thanks
2 Users
Old 03/20/2013, 19:24   #8
 
Joever11's Avatar
 
elite*gold: 1
Join Date: Oct 2012
Posts: 840
Received Thanks: 339
Quote:
Originally Posted by »AppleJack™ View Post
We can try it together
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
Joever11 is offline  
Old 03/20/2013, 19:27   #9
 
elite*gold: 0
Join Date: Jan 2012
Posts: 1,997
Received Thanks: 3,422
I know how do it ^-^
But if you need help join me on skype
NoCheatImPGM is offline  
Thanks
2 Users
Old 03/20/2013, 19:38   #10
 
daswoll56's Avatar
 
elite*gold: 11
Join Date: Aug 2012
Posts: 1,040
Received Thanks: 162
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
daswoll56 is offline  
Old 03/20/2013, 19:45   #11


 
Requi's Avatar
 
elite*gold: 3570
The Black Market: 244/0/0
Join Date: Dec 2012
Posts: 13,044
Received Thanks: 8,252
Quote:
Originally Posted by Joever11 View Post
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
Skylab and harder?
Then Tech is very easy

I'll write you soon.
Requi is offline  
Thanks
1 User
Old 03/20/2013, 20:25   #12
 
elite*gold: 33
Join Date: Feb 2012
Posts: 590
Received Thanks: 148
i can post the code in C++/C# for those who don't learn VB.Net
Technostar is offline  
Thanks
1 User
Old 03/20/2013, 20:30   #13
 
ZzEndayZz's Avatar
 
elite*gold: 1
Join Date: Feb 2012
Posts: 642
Received Thanks: 378
Tech is extremley easy..
ZzEndayZz is offline  
Old 03/20/2013, 20:33   #14
 
elite*gold: 0
Join Date: Jan 2012
Posts: 1,997
Received Thanks: 3,422
build a Tech program is more dificult than a skylab bot ^^
NoCheatImPGM is offline  
Thanks
1 User
Old 03/20/2013, 20:43   #15
 
L1m4ro's Avatar
 
elite*gold: 150
Join Date: Sep 2010
Posts: 912
Received Thanks: 807
Ye, this is nice, GJ on making it open-source... Just switch to httpwebrequest in order to improve the speed more than 10 times
L1m4ro is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[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
Is it possible to create a simple silkroad bot using java?
03/26/2009 - Silkroad Online - 2 Replies
anyone ?



All times are GMT +1. The time now is 22:21.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.