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

Support for Python 3.12 #221

Merged
merged 3 commits into from
Sep 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion core/iw_parse/iw_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
21 changes: 21 additions & 0 deletions core/strtobool.py
Original file line number Diff line number Diff line change
@@ -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))
2 changes: 1 addition & 1 deletion core/wskeyloggerd/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

from settings import settings

'''
r'''
. .
. =O===
. _ %- - %%%
Expand Down
3 changes: 1 addition & 2 deletions eaphammer
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down