1
mirror of https://github.com/rapid7/metasploit-payloads synced 2025-01-02 11:36:22 +01:00
metasploit-payloads/python/meterpreter
2023-06-14 22:21:53 +01:00
..
tests Fix false negatives on files existing python meterpreter on windows 2023-06-14 13:21:53 +01:00
.gitignore Fix python meterpreter network method exceptions 2023-06-05 11:44:32 +01:00
ext_server_stdapi.py Update python meterpreter to include hex error code when format message fails 2023-06-14 22:21:53 +01:00
meterpreter.py Add fix up tracking the process handle 2023-03-02 15:54:37 -05:00
README.md Fix false negatives on files existing python meterpreter on windows 2023-06-14 13:21:53 +01:00

Python Meterpreter

Running unit tests:

# Only required if less than python 3.3
python -m pip install mock

# Run the tests
python -m unittest discover -v ./tests

Running a single test failure:

python3 ./tests/test_file.py class_name
python3 ./tests/test_file.py class_name.method_name

# For example
python3 ./tests/test_ext_server_stdapi.py TestExtServerStdApi.test_stdapi_net_config_get_interfaces_via_osx_ifconfig

# Or:
python3 -m unittest tests.test_ext_server_stdapi.ExtServerStdApiFileSystemTest.test_stdapi_fs_stat