Title: Convenient john crack Linux password batch processing--2011-11-23-17:31
Custom file hash name and dictionary name batch processing (single file):
@echo off
Color 0a
Setlocal enabledelayedexpansion
Title Cracker the password!
Echo is backing up the last cracked log file ...
If EXIST john.pot (copy/y john.pot john.pot.bak && del/f john.pot) >nul
If EXIST john.log (copy/y john.log john.log.bak && del/f john.log) >nul
echo if found "No password hashes loaded", please detect shadow version, such as Ubuntu 9.10 need to crack patches.
Echo is now starting to crack the steps .......
echo Input 1: Kill the Idiot user
echo Input 2 is: eliminate a slightly smarter user
echo Input 3: for the Holocaust
echo Input 4 is: Exit this program
:P R
Set Pr=john-386.exe
If not EXIST%pr% (Echo Main program name input error, please press any key to exit!) && Pause & Exit)
:P h
set/p ph= Please enter your hash file name such as "Shadow.txt":
If not EXIST%ph% (echo Hash file name input error, please re-enter!) && Goto PH)
:P s
set/p ps= Please enter your password dictionary name "Password.lst":
If not EXIST%ps% (Echo dictionary name input error, please re-enter!) && Goto PS)
: Start
set/p var= Please enter your action, exit please press 4:
if/i%var% EQU 1 (goto Simple)
if/i%var% EQU 2 (goto Medium)
if/i%var% EQU 3 (goto violence)
if/i%var% EQU 4 (goto Exit)
if/i%var% GTR 4 (goto Error)
if/i%var% LSS 1 (goto Error)
: Error
The Echo input option is wrong, please re-enter the option!
Goto Start
: Simple
%pr%-single%ph%
echo idiot user hack complete ...
echo If you need to continue, enter the options you want.
Goto Start
: Medium
%pr%-wordlist=%ps%-rules%ph%
echo Smart user hack complete ...
echo If you need to continue, enter the options you want.
Goto Start
: Violence
%pr%-i:all%ph%
Echo Massacre cracked ...
echo If you need to continue, enter the options you want.
Goto Start
: Exit
Exit
Default name (multiple files):
@echo off
Color 0a
Setlocal enabledelayedexpansion
Title Cracker the password!
If EXIST john.pot (copy/y john.pot john.pot.bak && del/f john.pot) >nul
If EXIST john.log (copy/y john.log john.log.bak && del/f john.log) >nul
REM backup last cracked log file
If not Exist John-386.exe (echo Please check the "John-386.exe" file for presence.
echo Please press any key to exit! Check the file!
Pause
Exit
)
If not Exist passlist.txt (echo Please check the password list "Passlist.txt" file if it exists.)
echo Please press any key to exit! Check the file!
Pause
Exit
)
REM checks if a file exists
echo please put the password file name that needs to be cracked into the Passlist.txt file.
echo if found "No password hashes loaded", please detect shadow version, such as Ubuntu 9.10, need patch
Echo now begins the decryption step .........
echo Input 1: Kill the Idiot user
echo Input 2 is: eliminate a slightly smarter user
echo Input 3: for the Holocaust
echo Input 4 is: Exit this program
: Start
set/p var= Please enter your action, exit please press 4:
if/i%var% EQU 1 (goto Simple)
if/i%var% EQU 2 (goto Medium)
if/i%var% EQU 3 (goto violence)
if/i%var% EQU 4 (goto Exit)
if/i%var% GTR 4 (goto Error)
if/i%var% LSS 1 (goto Error)
: Error
The Echo input option is wrong, please re-enter the option!
Goto Start
: Simple
for/f%%a in (passlist.txt) do John-386.exe-single%%a
for/f%%a in (passlist.txt) do echo cracked files are:%%a
echo idiot user hack complete ...
echo If you need to continue, enter the options you want.
Goto Start
: Medium
If not Exist password.lst (echo "There is no password dictionary file" Password.lst ", please view the current directory file.) "
echo Please press any key to exit!
Pause
Exit
)
for/f%%a in (passlist.txt) do john-386.exe-wordlist=password.lst-rules%%a
for/f%%a in (passlist.txt) do echo cracked files are:%%a
echo Smart user hack complete ...
echo If you need to continue, enter the options you want.
Goto Start
: Violence
for/f%%a in (passlist.txt) do John-386.exe-i:all%%a
for/f%%a in (passlist.txt) do echo cracked files are:%%a
Echo Massacre cracked ...
echo If you need to continue, enter the options you want.
Goto Start
: Exit
Exit
Easy for John to crack Linux password batch processing