Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[C#] Question.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Trucido
Moderator
Reputation: 6

Joined: 08 Sep 2007
Posts: 2792

PostPosted: Mon Aug 18, 2008 12:12 am    Post subject: [C#] Question. Reply with quote

I'm currently trying to make a program that tells you whether or not a password is correct for a particular site.

I have a URL for the site like this
http://www.site.com/login?username=USERNAMEHERE&password=PASSWORDHERE&login

Firstly I'm wondering how I could make the Username here and Passhere be replaced by text entered via a text box in the GUI.

And secondly im wondering how I could make it notify me (via a message box popup, or somthing similar) If it got redirected to say:
http://www.site.com/passwordcorrect
or
http://www.site.com/passwordincorect
or
http://www.site.com/toomanyrequests

Thanks in advance.

_________________
I'm out.
Back to top
View user's profile Send private message
pkedpker
Master Cheater
Reputation: 1

Joined: 11 Oct 2006
Posts: 412

PostPosted: Mon Aug 18, 2008 12:43 am    Post subject: Reply with quote

in

vb.net it's

retVal = "http://www.site.com/login?username=" & USERNAME.text & "&password=" & PASSWORD.text & "&login"

in C# it's

retVal == "http://www.site.com/login?username=" + USERNAME.text + "&password=" + PASSWORD.text + "&login"

I just looked up .NET MSDN for WebBrowse and I believe it should look like this

Code:


    WebBrowser br = new WebBrowser();
    br.Navigate("http://www.site.com/login?username=" + USERNAME.text + "&password=" + PASSWORD.text + "&login");
    while (!(br.ReadyState == WebBrowserReadyState.Complete)) {
        Application.DoEvents();
    }
   
    if ((br.Url == "site.com/passwordcorrent")) {
        Interaction.MsgBox("correct w00t im zezima now!.");
    }
    else if ((br.Url == "site.com/passwordincorrect")) {
        Interaction.MsgBox("wrong my runescape cracker failed me :\\.");
    }
    else if ((br.Url == "site.com/toomanyrequests")) {
        Interaction.MsgBox("too much request. ip bannt too much tries");
    }

Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Mon Aug 18, 2008 1:08 am    Post subject: Reply with quote

Are you sure this isn't just a thinly veiled brute forcer?
Back to top
View user's profile Send private message
pkedpker
Master Cheater
Reputation: 1

Joined: 11 Oct 2006
Posts: 412

PostPosted: Mon Aug 18, 2008 1:22 am    Post subject: Reply with quote

I don't know but I remember runescape had a timeout thing too much requests and i right away made a joke by putting in runescape strings Laughing
Back to top
View user's profile Send private message
Trucido
Moderator
Reputation: 6

Joined: 08 Sep 2007
Posts: 2792

PostPosted: Mon Aug 18, 2008 1:25 am    Post subject: Reply with quote

Flyte wrote:
Are you sure this isn't just a thinly veiled brute forcer?

It may evolve into somthing similar to that one day, but as of yet its a simply checks whether or not the password is correct for the username without opening the webpage.

_________________
I'm out.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Wed Aug 20, 2008 6:16 am    Post subject: Reply with quote

Going along with what Flyte brought up, I would suggest you do something to the password before sending it out. Such as MD5 sum, base64 enc, or some other type of security to it to prevent brute forced attack, or at least cripple them some.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites