s0lst1c3/eaphammer

Support for Python 3.12

D3vil0p3r opened this issue · 2 comments

Describe the bug
eaphammer stll uses distutils library despite it has been set as deprecated since Python 3.10 and has been removed with Python 3.12.

Could you please update eaphammer in order to remove the deprecated distutils in order to make it working by Python 3.12?

Traceback (most recent call last):
  File "/home/athena/Downloads/eaphammer/./eaphammer", line 42, in <module>
    from distutils.util import strtobool
ModuleNotFoundError: No module named 'distutils'

Source: https://docs.python.org/3/whatsnew/3.12.html

@s0lst1c3 can you give a look to it? Furthermore, the code should also be fixed due to the error (always related to Python 3.12):

/nix/store/6cb3pls723ysh5s33w9fa8v5wr45qrpk-eaphammer-1.14.0/share/eaphammer/core/cli.py:173: SyntaxWarning: invalid escape sequence '\T'
  'set to C:\Temp\Invoke-Mimikatz.ps1'))
/nix/store/6cb3pls723ysh5s33w9fa8v5wr45qrpk-eaphammer-1.14.0/share/eaphammer/core/iw_parse/iw_parse.py:13: SyntaxWarning: invalid escape sequence '\s'
  VERSION_RGX = re.compile("version\s+\d+", re.IGNORECASE)
/nix/store/6cb3pls723ysh5s33w9fa8v5wr45qrpk-eaphammer-1.14.0/share/eaphammer/core/wskeyloggerd/app.py:28: SyntaxWarning: invalid escape sequence '\ '
  '''

@s0lst1c3 this PR #221 add support for Python 3.12. Can you please review it and merge it? And submit a bump version to 1.14.1 or 1.15.0 (also in __version__.py file)?