Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

[VB.NET] Login To A Website - HackForums as an Example

Today, you will learn how to make a login application for a website of your choice. Its fairly simple once you get the hang of it.

Requirements:
  • 2 Text boxes - One named "user" and the other "pass"
  • 1 Web browser - Named "Webbrowser1" (It's named that by default)
  • 1 Button - Named "cmdLogin"

To Start:
Arrange the tools given above to your liking.

Once done, you can set a PasswordChar (For the pass text box, so when you type it blocks the true characters." That setting can be found in your properties tab once clicked on the text box "pass".

For every website, the Element ID is different( you will know what I'm talking about once you see the code). To get the Element ID of the sign-in page of your choice, download this FireFox Add-On FireBug (Click Here) or you can use Google Chrome (Click Here).

Code:
Spoiler (Click to View)

Foot Notes:

You may adjust this source to your liking if you please, in someway, include TrC in your project if you use this code. Also, Please realize that this was only an example and can be used widely. Any questions shall be answered. Thanks.
Nice tutorial, not sure if it has been posted before.
STOP USING WEBBROWSERS AHHHHH

USE HTTPWEBREQUESTS GUYS.
theis source is everywhere. nothing new but informative for newbie
Nice tut, and I actually prefer the use of a web browser to see it. Thanks for this.
This is being posted a lot lately... Thanks anyway
Yes it has... And I'm not spamming I'm simply stating the fact that there have been many posts similar to this on HF.... I see them all the time
(Mar 23, 2010 02:32 PM)Euras Wrote:  Yes it has... And I'm not spamming I'm simply stating the fact that there have been many posts similar to this on HF.... I see them all the time

It may have been posted everywhere, but I have created it to work with HackForums.
I gotta say this really helped me, because I had no idea how to do this before.
(Mar 23, 2010 03:06 PM)trc_ Wrote:  It may have been posted everywhere, but I have created it to work with HackForums.

Yeh don't get me wrong i think it will still be helpful to a lot of members, I'm just saying that threads like this get posted all the time.

Thanks for sharing never the less.
Haven't really looked at the game but if I've built aimbots for flash games in the past on the basis of colour so you can do something similar if you program a FindColor and FindBitmap function (if you're experienced with Scar scripting then you know what I mean).
In retrospect you can make a C# program that finds the particular colour of your target or bitmap if needed and then you need to simply tell the program to hover the mouse on those co-ordinates via the SetCursor API or mouse_event.
You can find great sample functions via google.
(Mar 23, 2010 02:06 PM)Deathader Wrote:  STOP USING WEBBROWSERS AHH

USE HTTPWEBREQUESTS GUYS.

hmm it can be more fast and easy with winhttp/winsock but i beleive that if you dont know fetching inputs of webcodes into webbrowser,your coding skills are not complete.
Wow thanks for the share this is verry helpfully
Cheers dude, nice share.
Weather it has been posted before or not, it helped me ^^


Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by globemastersMay 9, 2012 11:21 AM 0 113 May 9, 2012 11:21 AM
Last Post: globemasters
[.NET] by SH3NZ1Feb 18, 2012 05:36 PM 4 225 Feb 18, 2012 05:36 PM
Last Post: SH3NZ1
[.NET] by CyberFudgerSep 30, 2011 01:55 PM 2 92 Sep 30, 2011 01:55 PM
Last Post: Msmurf0516