如何使用批处理文件生成用于暴力攻击的字符串(How to generate string for bruteforce attack using batchfile)
我有一些代码可以破解数字rar文件密码。 代码只是递增变量的值(从0开始),我使用它来检查unrar使用unrar命令的密码。 但我想为暴力攻击生成字符串。
SET PASSWORD=0 :START SET /A PASSWORD=%PASSWORD%+1 UNRAR E -INUL -P%PASSWORD% "%PATH%\%NAME%" "%DESTINATION%" IF /I %ERRORLEVEL% EQU 0 GOTO CLOSE GOTO START :CLOSE echo Password Cracked... echo Password is %PASSWORD%
这里
%PATH%是rar文件所在的路径
%NAME%是rar文件的名称
%DESTINATION%是在UNRAR之后存储文件的位置,在我的代码中DESTINATION是“%TEMP%\%RANDOM%”
通过应用这个我能够获得密码,但它对包含字母字符的字符串没有用。
如何从“a”开始生成字符串,所以我也可以破解字母密码?
I have some code which can crack numeric rar file passwords. The code just increments the value of a variable (starting from 0) and I use that to check against the password to unrar using unrar command. But I want to generate strings for brute force attacks.
SET PASSWORD=0 :START SET /A PASSWORD=%PASSWORD%+1 UNRAR E -INUL -P%PASSWORD% "%PATH%\%NAME%" "%DESTINATION%" IF /I %ERRORLEVEL% EQU 0 GOTO CLOSE GOTO START :CLOSE echo Password Cracked... echo Password is %PASSWORD%
Here
%PATH% is path where rar file is located
%NAME% is name of rar file
%DESTINATION% is place where file is stored after UNRAR, In my code DESTINATION is "%TEMP%\%RANDOM%"
By applying this I am able to get the password, but it is not useful for strings which contain alpha characters.
How do I generate strings starting from "a", so I am able to crack alphabetic passwords too?