MCPcopy Index your code
hub / github.com/trustedsec/ptf

github.com/trustedsec/ptf @2.7.1 sqlite

repository ↗ · DeepWiki ↗ · release 2.7.1 ↗
46 symbols 170 edges 343 files 0 documented · 0%
README

Docker support for PTF

To be able to use the principle Security-in-a-box and run constantly penetration testing and vulnerability assessment against our applications and infrastructure, I developed a quick hack to be able to run PTF framework inside a Docker container.

First of all, build and compile all the tools and the image itself (~2 hours). Inside this folder run the following:

docker build --rm -t spinfoo/ptf:1.1 .

After, you can run PTF anytime with:

docker run --rm -it spinfoo/ptf:1.1 /bin/bash -c 'cd /root/ptf && ./ptf'

TODO

  • Run install checks after modules update/install (go through /usr/local/bin and check successful execution)
  • Check automatically for dependencies, improve efficiency

Credits

David Kennedy/Trustedsec PTF project and Jacobo Avariento (spinfoo) for the docker support.

Core symbols most depended-on inside this repo

print_status
called by 60
src/core.py
module_parser
called by 25
src/core.py
check_config
called by 12
src/core.py
after_commands
called by 9
src/core.py
print_warning
called by 8
src/core.py
print_error
called by 8
src/core.py
base_install_modules
called by 8
src/platforms/openbsd.py
definepath
called by 7
src/core.py

Shape

Function 45
Class 1

Languages

Python100%

Modules by API surface

src/core.py27 symbols
src/framework.py14 symbols
src/platforms/openbsd.py1 symbols
src/platforms/fedora.py1 symbols
src/platforms/debian.py1 symbols
src/platforms/archlinux.py1 symbols
src/commands.py1 symbols

For agents

$ claude mcp add ptf \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact