Skip to content

Collection of scripts to automate boring penetration testing workflows

License

alechilczenko/pentest-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pentest Scripts

Collection of scripts to automate boring penetration testing workflows

Available Scripts

1. scope.py – FQDN Resolution & Scope Validation

Validates whether resolved FQDNs are in scope for an engagement.

Capabilities:

  • Reads a list of targets (--targets) containing FQDNs (e.g. api.example.com).
  • Resolves DNS A records for each target.
  • Compares each resolved IP against an engagement scope file (--scope) that currently supports exact IP matches (one IP per line).
  • Exports results to an Excel file (--output).

Example usage:

python3 scope.py -t subs.txt -s scope.txt -o results.xlsx

2. sort_ports.py – Organize IPs and ports from Nmap output

Capabilities:

  • Read a list of assets (IP:PORT format)
  • Exports results to an Excel file (--output).

Example usage:

python3 sort_ports.py -a assets.txt -o results.xlsx

Installation

Using a virtual environment (recommended)

# create venv
python3 -m venv .venv

# activate (Linux / macOS)
source .venv/bin/activate

# install dependencies
pip install -r requirements.txt

About

Collection of scripts to automate boring penetration testing workflows

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages