Closed Shimon03 closed 8 months ago
try to remove pyreadline as it is not intended to be used in linux environments. Also pyreadline is not supported in python > 3.5, as mentioned in https://github.com/fortra/impacket/pull/1681. So by removing pyreadline, code will fallback into readline and work ok. Thanks
yes, by removing pyreadline I meant , uninstall the package
linked with #1800
┌──(kurn㉿read)-[/usr/share/doc/python3-impacket/examples] └─$ ntlmrelayx.py Impacket v0.12.0.dev1+20231130.165011.d370e63 - Copyright 2023 Fortra
[] Protocol Client DCSYNC loaded.. [] Protocol Client RPC loaded.. [] Protocol Client IMAP loaded.. [] Protocol Client IMAPS loaded.. [] Protocol Client MSSQL loaded.. [] Protocol Client LDAPS loaded.. [] Protocol Client LDAP loaded.. [] Protocol Client SMB loaded.. [] Protocol Client HTTP loaded.. [] Protocol Client HTTPS loaded.. [*] Protocol Client SMTP loaded.. Traceback (most recent call last): File "/usr/local/bin/ntlmrelayx.py", line 417, in
from impacket.examples.ntlmrelayx.attacks import PROTOCOL_ATTACKS
File "/home/kali/.local/lib/python3.11/site-packages/impacket/examples/ntlmrelayx/attacks/init.py", line 56, in
import(package + '.' + os.path.splitext(file)[0])
File "/home/kali/.local/lib/python3.11/site-packages/impacket/examples/ntlmrelayx/attacks/smbattack.py", line 23, in
from impacket.examples.smbclient import MiniImpacketShell
File "/home/kali/.local/lib/python3.11/site-packages/impacket/examples/smbclient.py", line 40, in
import pyreadline as readline
File "/home/kali/.local/lib/python3.11/site-packages/pyreadline/init.py", line 12, in
from . import logger, clipboard, lineeditor, modes, console
File "/home/kali/.local/lib/python3.11/site-packages/pyreadline/clipboard/init.py", line 13, in
from .win32_clipboard import GetClipboardText, SetClipboardText
File "/home/kali/.local/lib/python3.11/site-packages/pyreadline/clipboard/win32_clipboard.py", line 39, in
from pyreadline.keysyms.winconstants import CF_UNICODETEXT, GHND
File "/home/kali/.local/lib/python3.11/site-packages/pyreadline/keysyms/init.py", line 24
raise ImportError("Could not import keysym for local pythonversion", x)
^
IndentationError: unindent does not match any outer indentation level