- nghttpx (for HTTP/2 and HTTP/3 tests)
- An available `en_US.UTF-8` locale
-### Installation of python-impacket
+### Installation of impacket
- The Python-based test servers support both recent Python 2 and 3.
- You can figure out your default Python interpreter with python -V
+ The Python-based test servers support Python 3.
Please install python-impacket in the correct Python environment.
You can use pip or your OS' package manager to install 'impacket'.
- On Debian/Ubuntu the package names are:
+ On Debian/Ubuntu the package name is 'python3-impacket'
- - Python 2: 'python-impacket'
- - Python 3: 'python3-impacket'
+ On FreeBSD the package name is 'py311-impacket'
- On FreeBSD the package names are:
-
- - Python 2: 'py27-impacket'
- - Python 3: 'py37-impacket'
-
- On any system where pip is available:
-
- - Python 2: 'pip2 install impacket'
- - Python 3: 'pip3 install impacket'
+ On any system where pip is available: 'python3 -m pip install impacket'
You may also need to manually install the Python package 'six'
- as that may be a missing requirement for impacket on Python 3.
+ as that may be a missing requirement for impacket.
## Event-based
try:
import impacket
except ImportError:
- sys.stderr.write('Python package impacket needs to be installed!\n')
- sys.stderr.write('Use pip or your package manager to install it.\n')
+ sys.stderr.write(
+ 'Warning: Python package impacket is required for smb testing; '
+ 'use pip or your package manager to install it\n')
sys.exit(1)
from impacket import smb as imp_smb
from impacket import smbserver as imp_smbserver