We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c19d989 commit adc0d29Copy full SHA for adc0d29
1 file changed
linuxcracker.py
@@ -2,9 +2,20 @@
2
3
import crypt, sys
4
5
+
6
+def printer(thing):
7
+ sys.stdout.write(thing+" \r")
8
+ sys.stdout.flush()
9
+ return True
10
11
12
def cracker(passcrypt, dicfile):
13
+ count=1
14
+ lines = len(open(dicfile).readlines())
15
dicfile = open(dicfile, 'r')
16
for word in dicfile:
17
+ printer("["+str(count)+"/"+str(lines)+"]")
18
+ count+=1
19
password = word.strip('\n')
20
cryptword = crypt.crypt(password, passcrypt)
21
if cryptword == passcrypt:
0 commit comments