메뉴 건너뛰기

app

[PHPASS] python을 이용한 password 크래킹

lispro062014.10.29 21:21조회 수 3274댓글 0

    • 글자 크기
소스코드 : 원래 페이지는 삭제되어, 저장된 페이지로 확인

http://webcache.googleusercontent.com/search?q=cache:m0yhNee1pN0J:pastebin.com/VapSdza6+&cd=1&hl=ko&ct=clnk&gl=kr

python phpass 라이브러리

https://github.com/exavolt/python-phpass

답은 5자리라고 했으니, Round 5만 하면 된다.

#!/usr/bin/env python

import phpass
 
tbl = "abcdefghijklmnopqrstuvwxyz~!@#$%^&*()-_+"
hx = '$P$B2qyPsMZtoyA5U4A.fvlaTQrF/ptnk.'
 
print 'Hash: %r' % hx
t_hasher = phpass.PasswordHash(8, False)
  
print "Rount 5"
correct = ''
for i1 in tbl:
    for i2 in tbl:
        for i3 in tbl:
            for i4 in tbl:
                for i5 in tbl:
                        correct = i1+i2+i3+i4+i5
                        check = t_hasher.check_password(correct, hx)
                        if check:
                            print check
lispro06 (비회원)
    • 글자 크기

댓글 달기

suritam9
2013.04.25 조회 6205
suritam9
2013.04.04 조회 2259
suritam9
2012.09.14 조회 2564
suritam9
2012.06.24 조회 2422
suritam9
2012.06.24 조회 2837
suritam9
2012.06.24 조회 2613
suritam9
2012.06.22 조회 2625
박영식
2011.09.22 조회 2602
박영식
2011.09.21 조회 2539
박영식
2011.02.18 조회 3029
박영식
2010.09.29 조회 4883
첨부 (0)
위로