Pentest-Tools.com Vulnerability Scanners Library
Project description
PTT-CLI
Command Line Interface for PentestTools.
Installing
PentestTools Python module is delivered through PyPI, so it can be installed directly via pip:
pip install pentesttools
Usage
The pentesttools
package provides a command line interface through the ptt
utility. Right
now it supports the Website Scanner service.
Example for the simplest scan:
ptt run website_scanner <url>
This runs a freemium Website Scanner scan on the <url>
. Unlike in the platform itself, you can omit the schema part from the url.
Global arguments, like a suitable key for a deep scan, have to be passed straight to ptt
. Tool arguments have to be passed to the tool.
ptt --key <key> run website_scanner --scan_type deep <url>
If you want the command to fail if the report contains vulnerabilities with a higher risk than some value, you can use the --fail argument
.
ptt --fail high run website_scanner <url>
You can also run ptt
using docker. The docker image has ptt
as an entrypoint, so you don't have to type it anymore. Note that the old ptt-scan
name is still used on docker.
docker run pentesttoolscom/ptt-scan:latest run website_scanner <url>
Development installation
If you want to easily modify the sources and your modifications:
pip install --edit .
Uninstalling
pip uninstall pentesttools
Testing and Coverage
You can run the tests and make coverage reports like this:
python3 -m pytest src/tests
coverage run -m pytest src/tests
coverage report -m
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pentesttools-0.0.7.tar.gz
.
File metadata
- Download URL: pentesttools-0.0.7.tar.gz
- Upload date:
- Size: 29.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ad4cb5694aace8fd94a0c2c95f30cbe76d9f3f0a80599568ee1e8934db9ab50 |
|
MD5 | ba8c9367a441695cbea9c504195b05cb |
|
BLAKE2b-256 | c37924a5f4ac021b648df0c2071b136654cf380fc649281a34fb26aff4caf5e4 |
File details
Details for the file pentesttools-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: pentesttools-0.0.7-py3-none-any.whl
- Upload date:
- Size: 30.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9c48ac9efa37bc70758f3d4edf386f75524a26c5c98e59be2c8134240b6cf09 |
|
MD5 | a37f1bbfa23adc1d52de3318f0d5798c |
|
BLAKE2b-256 | a3e93484530c2a796d94335a253f96572b6a6b0120d999d78be7b15fc03e356d |