TOP NEWS

Welcome to my site... Have a nice day...

Tuesday, 11 February 2014

[C#] How make a auto login bot

Hi all!

Today we will make a auto login bot :)

Lets start first open a new project.


Select C# Form Application.
and add Web Browser to your form.
and set WebBrowser Url to = https://www.facebook.com

I added 2 label 2 textbox and a button for login process
u can do it with setting file generate a .txt file and save email and password here and read and login account when form load.



Now: LETS WRITE SOME CODE!!!!!!!!!!!!!!!!!!!! :)))))))))))))))))


double click LOGIN button :) and go button_click event :)
First we need to find textbox id on facebook :D lets hack facebook :P


WOW i hacked facebook :P

anyways email id is "email" that was sooooo different from my imagine :D
and password id is "pass" yeap that was different :D
and Log In button id is "loginbutton" :D


and our code is

            webBrowser1.Document.GetElementById("email").SetAttribute("value", textBox1.Text);
            webBrowser1.Document.GetElementById("pass").SetAttribute("value", textBox2.Text);
            webBrowser1.Document.GetElementById("loginbutton").InvokeMember("click");

and thats all.. We find our Elements with their ID's and we set their values and we invoke button and we are in facebook :D

and lets see how it works :)




 Our codes working fine ;)

ther is my project all codes:http://yadi.sk/d/h-5rrNS8HjNzJ

0 comments: