티스토리 뷰

___리눅스

[WEB 보안] John the ripper 설치 (johnripper)

변군 변군이글루 2013. 7. 2. 22:26

John the ripper 설치

 

1. 내려받기
# wget http://www.openwall.com/john/g/john-1.7.6.tar.gz

 

2. 압축해제
# tar xvfz john-1.7.6.tar.gz

 

3. 설치하기
# cd john-*
# cd src
# make
# make clean generic
# cd ../run

 

4. 실제 파일 복사
./unshadow /etc/passwd /etc/shadow > userlist.txt

 

5. 실행하기
./john userlist.txt > john_ripper.log

 

6. john_ripper 스크립트
# vi john_ripper.sh
------------------------------------------------------------------
#!/bin/sh

cd ~root/john_ripper

now_date=`date +%Y%m%d`
hostname=`hostname`

if [ -d ${now_date} ]
then
 cd ${now_date}
else
        mkdir ${now_date}
fi

cd /usr/local/src/john-1.7.6/run/

./unshadow /etc/passwd /etc/shadow > userlist.txt

./john userlist.txt > ~root/john_ripper/$now_date/john_ripper.log
------------------------------------------------------------------

 

7. Crond 등록
crontab -l
------------------------------------------------------------------
* 04 25 * * /bin/sh /root/john_ripper/john_ripper.sh
------------------------------------------------------------------

 

 


 

댓글
댓글쓰기 폼