endlesslove_1998

Brute Force WinRAR

Jul 15th, 2015
355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.74 KB | None | 0 0
  1. For $i = 0 To 9999
  2.     If $i < 1000 Then
  3.         $sPassword = StringFormat("%04d", $i)
  4.     Else
  5.         $sPassword = $i
  6.     EndIf
  7.     ConsoleWrite('--> Trying password: ' & $sPassword & @CRLF)
  8.     If _Extract('Tutorial-AutoIt-PHP-MySQL-v1.0.rar', $sPassword) Then
  9.         ConsoleWrite('+ -----> Extracted successfully with password: ' & $sPassword & @CRLF)
  10.         MsgBox(0, "Endless Love", "Extracted successfully with password: " & $sPassword)
  11.         ExitLoop
  12.     Else
  13.         ConsoleWrite('! -----> Wrong password!' & @CRLF)
  14.     EndIf
  15. Next
  16. Exit
  17. Func _Extract($sFileToExtract, $sPassword = '')
  18.     Local $sCMD = '"C:\Program Files\WinRAR\Rar.exe" x'
  19.     If $sPassword <> '' Then $sCMD &= ' -p' & $sPassword
  20.     $sCMD &= ' "' & $sFileToExtract & '"'
  21.     Return RunWait($sCMD, '', @SW_HIDE) == 0
  22. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment