GauthamGoli / rar-Password-Cracker

Bruteforces a password protected rar/zip file with specified charset.
91 stars 26 forks source link

Missing parentheses in call to 'print' #7

Open flower-alone opened 2 years ago

flower-alone commented 2 years ago

C:\Users\Flower\Desktop>python bruteforce.py --fr sts.rar -c abcdefghijklmnopqrst0123 -n 6 File "bruteforce.py", line 17 print "Password found! password is %s"%attempt ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Password found! password is %s"%attempt)?

Taoran-01 commented 3 weeks ago

C:\Users\Flower\Desktop>python bruteforce.py --fr sts.rar -c abcdefghijklmnopqrst0123 -n 6 File "bruteforce.py", line 17 print "Password found! password is %s"%attempt ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Password found! password is %s"%attempt)?

It's the difference between Python 2 and Python 3. Just replace it with print("Password found! password is %s"%attempt).