Skip to content

Commit

Permalink
removed pyreadline dependency (#1800)
Browse files Browse the repository at this point in the history
* removed pyreadline dependency

* replaced pyreadline by pyreadline3

* Update setup.py
  • Loading branch information
anadrianmanrique committed Aug 27, 2024
1 parent 27c196f commit 0630989
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 19 deletions.
6 changes: 0 additions & 6 deletions examples/mimikatz.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,6 @@
logging.critical("Warning: You don't have any crypto installed. You need pycryptodomex")
logging.critical("See https://pypi.org/project/pycryptodomex/")

# If you wanna have readline like functionality in Windows, install pyreadline
try:
import pyreadline as readline
except ImportError:
import readline


mimikatz_intro = r"""Type help for list of commands"""

Expand Down
5 changes: 0 additions & 5 deletions examples/ntfs-read.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@
import argparse
import cmd
import ntpath
# If you wanna have readline like functionality in Windows, install pyreadline
try:
import pyreadline as readline
except ImportError:
import readline
from six import PY2, text_type
from datetime import datetime
from impacket.examples import logger
Expand Down
6 changes: 0 additions & 6 deletions impacket/examples/smbclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,6 @@
import charset_normalizer as chardet


# If you wanna have readline like functionality in Windows, install pyreadline
try:
import pyreadline as readline
except ImportError:
import readline

class MiniImpacketShell(cmd.Cmd):
def __init__(self, smbClient, tcpShell=None, outputfile=None):
#If the tcpShell parameter is passed (used in ntlmrelayx),
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ pyOpenSSL==24.0.0
ldap3>=2.5,!=2.5.2,!=2.5.0,!=2.6
ldapdomaindump>=0.9.0
flask>=1.0
pyreadline;sys_platform == 'win32'
pyreadline3;sys_platform == 'win32'
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def read(fname):

install_requires=['pyasn1>=0.2.3', 'pyasn1_modules', 'pycryptodomex', 'pyOpenSSL==24.0.0', 'six', 'ldap3>=2.5,!=2.5.2,!=2.5.0,!=2.6',
'ldapdomaindump>=0.9.0', 'flask>=1.0', 'setuptools', 'charset_normalizer'],
extras_require={'pyreadline:sys_platform=="win32"': [],
extras_require={':sys_platform=="win32"': ['pyreadline3'],
},
classifiers=[
"Programming Language :: Python :: 3.12",
Expand Down

0 comments on commit 0630989

Please sign in to comment.