Skip to content

Commit adc0d29

Browse files
authoredJun 6, 2020
Update linuxcracker.py
1 parent c19d989 commit adc0d29

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
 

‎linuxcracker.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,20 @@
22

33
import crypt, sys
44

5+
6+
def printer(thing):
7+
sys.stdout.write(thing+" \r")
8+
sys.stdout.flush()
9+
return True
10+
11+
512
def cracker(passcrypt, dicfile):
13+
count=1
14+
lines = len(open(dicfile).readlines())
615
dicfile = open(dicfile, 'r')
716
for word in dicfile:
17+
printer("["+str(count)+"/"+str(lines)+"]")
18+
count+=1
819
password = word.strip('\n')
920
cryptword = crypt.crypt(password, passcrypt)
1021
if cryptword == passcrypt:

0 commit comments

Comments
 (0)
Please sign in to comment.