All Questions
5 questions
0
votes
0
answers
177
views
Crack(python) very slow
from sys import argv
from crypt import crypt
from string import ascii_letters
from itertools import product
if len(argv) != 2:
print("Incorrect number of arguments")
exit()
hashed_p = argv[1]...
1
vote
1
answer
501
views
PSET6 CRACK (python)
I'm stuck on Crack (in Python). I wrote the following code, which I think should cover every case, however it runs for hours without finding a solution. Any thoughts/advice are appreciated.
from sys ...
1
vote
1
answer
249
views
SPEED: python vs C crack program
I have implemented a python and c version of crack way back from problem set 2. Both of them work, and both use the same algorithms/processing just expressed in two different languages. Out of ...
0
votes
0
answers
276
views
Crack - recursive (Python)
For the brute force password cracking method I have used this iterative approach.
I tried to write a recursive function that did the same, but I am struggling.
Could anyone give some pointers on ...
0
votes
1
answer
540
views
Why doesn't this crack.py code work? pset6
if len(sys.argv)!=2:
print("Wrong")
exit(1)
w=open("passdict.txt","r")
for line in w:
arr=w.readline().split()
if crypt.crypt("arr[0]", "50")==sys.argv[1]:
print("{}".format(...