A simple Python script that prompts you for a root folder name and creates a standard folder structure for penetration testing projects.
- Automatically creates nested directories for different stages of an engagement.
- Separates EPT (External Penetration Test) and IPT (Internal Penetration Test) folders.
- Helps keep logs, evidence, tools, and scans organized in one place.
- Python 3 (3.6 or later recommended)
- A UNIX-like environment (Linux, macOS, WSL on Windows) for best compatibility
- Download the python script:
curl -O https://raw.githubusercontent.com/MegaByteKnight/penTestFileSetup/main/penTestFileSetup.py
- Make the script executable (optional, but convenient):
chmod +x penTestFileSetup.py ./penTestFileSetup.py
- Or
python3 penTestFileSetup.py
- When prompted, enter the name of the directory (e.g.,
Pen Test Company
), and the script will create a structured set of folders under that root.
Let's create a directory for penetration testing Enter the name of the directory you would like to create (i.e. Pen Test Company): Pen Test Company
Pen Test Company/
├── EPT
│ ├── evidence
│ │ ├── credentials
│ │ ├── data
│ │ └── screenshots
│ ├── logs
│ ├── scans
│ ├── scope
│ └── tools
└── IPT
├── evidence
│ ├── credentials
│ ├── data
│ └── screenshots
├── logs
├── scans
├── scope
└── tools
If you'd like a different folder structure, simply open the penTestFileSetup.py
file in your favorite text editor and modify the subdirectories
list. Adjust, add, or remove entries as needed to fit your project requirements. Save your changes and run the script again to generate the updated folder structure.
Feel free to submit issues or pull requests if you have ideas for improving this script. All contributions are welcome!