Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows and Python 3.9 compatibility #40

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

df-sec
Copy link
Contributor

@df-sec df-sec commented Aug 9, 2021

Hi,
First of all, I'm not a programmer at all, but I really like the hate_crack project and wanted to use it on my Windows system with Python 3.9. So I built a version which supports both Linux and Windows systems. I also added support for multiple single quote characters as a mask on Linux systems.

Removed duplicate value (",") from hcatThoroughCombinatorMasks.
Added elif clause and some variables e.g. for the splitlen folder/files and directory separator for Windows compatibility.
Replaced all os.mkdir with os.makedirs for creating all the intermediate directories if they don’t exist.
Added module codecs and switched from iso-8859-9 to utf-8 to support and display umlauts on Windows correctly.

Added if/elif clause and some variables e.g. for quotes and directory separator for Windows compatibility.

Modified hcatMiddleCombinator() and hcatThoroughCombinator() to support multiple character masks on Windows.

Added support for multiple single quote characters as a mask on Linux.

Modified quick_crack() to avoid a syntax warning message on Python 3.8+ when identity checks (is and is not) are used with certain types of literals (e.g. strings, numbers).
Added comments for Windows users. Maybe this should be added to the readme.md instead.
Replaced all string.lowercase with string.ascii_lowercase for Python 3.x compatibility.
Replaced all string.uppercase with string.ascii_uppercase for Python 3.x compatibility.
Replaced all iteritems() with items() for Python 3.x compatibility.
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.

1 participant