Skip to content

Conversation

@kal179
Copy link

@kal179 kal179 commented Jul 3, 2017

Made more user friendly and added support for both python 2.x, 3.x versions, Before the program would cause error because of parenthesis

Copy link
Author

@kal179 kal179 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just made it more easy to use and fixed python 2.x, 3.x versions support ad also fixed more errors and exceptions

@B3n3
Copy link
Owner

B3n3 commented Jul 5, 2017

Hey :) Thanks for your contribution. I'll review your changes and notify you once I'm ready to merge them.
Cheers,
Benedikt

Copy link
Owner

@B3n3 B3n3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The README looks good to me.
Please go through the comments I added and fix them, so that I can merge your changes.

Further it would be nice if you could stick to the line indention I used, cause now the git history would look like you rewrote the whole file just because of the different indention :)

Thanks for you contribution, good job.

crack_pw.py Outdated
sys.exit(0)
else:
tmp = ''.join(passw)
print("Trying with password {} :".format(tmp))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this line, as the output would be too verbose and flood the console.

crack_pw.py Outdated
except Exception as e:
print("Error opening/operating zipfile\n")

print("No passwords were found...\n")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The is just one password. Please use singular.

crack_pw.py Outdated
zipFile = zipfile.ZipFile(filename, "r")
except IOError:
# rather than raise() we'll simple print it to screen because we dont't want to scare the user
print("IOError: \nFile you entered was not found!\nTry again!")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd name it like this:
"The file could not be opened."

crack_pw.py Outdated
#characters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"
characters = "abcdefghijklmnopqrstuvwxyz"
zipFile = zipfile.ZipFile(filename, "r")
print("The filename is not a valid string!")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably here the usage of the script would be nice :)

@kal179
Copy link
Author

kal179 commented Jul 24, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants