From c3cd66d084bf8d7d39dee7b29eb16768b4c0187a Mon Sep 17 00:00:00 2001 From: D3vil0p3r Date: Sat, 31 Aug 2024 13:11:30 +0200 Subject: [PATCH 1/3] Support for Python 3.12 --- core/strtobool.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 core/strtobool.py diff --git a/core/strtobool.py b/core/strtobool.py new file mode 100644 index 0000000..44d1eb2 --- /dev/null +++ b/core/strtobool.py @@ -0,0 +1,21 @@ +_MAP = { + 'y': True, + 'yes': True, + 't': True, + 'true': True, + 'on': True, + '1': True, + 'n': False, + 'no': False, + 'f': False, + 'false': False, + 'off': False, + '0': False +} + + +def strtobool(value): + try: + return _MAP[str(value).lower()] + except KeyError: + raise ValueError('"{}" is not a valid bool value'.format(value)) From 3f22984a258f1969412e3e060dd5952d84650eb0 Mon Sep 17 00:00:00 2001 From: D3vil0p3r Date: Sat, 31 Aug 2024 13:14:04 +0200 Subject: [PATCH 2/3] Remove distutils --- eaphammer | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/eaphammer b/eaphammer index b62a184..ac1283c 100755 --- a/eaphammer +++ b/eaphammer @@ -36,11 +36,10 @@ from __version__ import __version__, __tagline__, __author__, __contact__, __cod from threading import Thread from core.utils import ip_replace_last_octet from core.loader import Loader +from core.strtobool import strtobool from core.module_maker import ModuleMaker -from distutils.util import strtobool - def hostile_portal(): global responder From fe4bc4bf1fc7ffee021a0b4275a321c23f2aa997 Mon Sep 17 00:00:00 2001 From: D3vil0p3r Date: Sat, 31 Aug 2024 13:30:23 +0200 Subject: [PATCH 3/3] Fix escape char warning --- core/cli.py | 2 +- core/iw_parse/iw_parse.py | 2 +- core/wskeyloggerd/app.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/cli.py b/core/cli.py index bec1ca1..a386741 100644 --- a/core/cli.py +++ b/core/cli.py @@ -170,7 +170,7 @@ def set_options(): action='store_true', help=('Trigger Windows Defender on nearby ' 'devices by spawning an AP with SSID ' - 'set to C:\Temp\Invoke-Mimikatz.ps1')) + 'set to C:\\Temp\\Invoke-Mimikatz.ps1')) modes_group_.add_argument('--eap-spray', dest='eap_spray', diff --git a/core/iw_parse/iw_parse.py b/core/iw_parse/iw_parse.py index daabb70..8a42aae 100644 --- a/core/iw_parse/iw_parse.py +++ b/core/iw_parse/iw_parse.py @@ -10,7 +10,7 @@ import re import subprocess -VERSION_RGX = re.compile("version\s+\d+", re.IGNORECASE) +VERSION_RGX = re.compile(r"version\s+\d+", re.IGNORECASE) def get_name(cell): """ Gets the name / essid of a network / cell. diff --git a/core/wskeyloggerd/app.py b/core/wskeyloggerd/app.py index 1f99ce8..79e9d9e 100755 --- a/core/wskeyloggerd/app.py +++ b/core/wskeyloggerd/app.py @@ -25,7 +25,7 @@ from settings import settings -''' +r''' . . . =O=== . _ %- - %%%