| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Panoptic is an open source penetration testing tool that automates the search and retrieval of common log and config files through path traversal vulnerabilities.
git clone https://github.com/lightos/Panoptic.git
cd Panoptic
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -e .
panoptic --versionOn Windows Command Prompt, activate with .venv\Scripts\activate.bat; in PowerShell, use .venv\Scripts\Activate.ps1. The editable install keeps Panoptic connected to this checkout for --update, so keep the directory in place. Do not run pip install panoptic: that PyPI name belongs to an unrelated project.
For development:
python -m pip install -e ".[dev]"panoptic --url "http://target/include.php?file=test.txt"panoptic --url "http://target/include.php?file=test.txt"
panoptic --url "http://target/include.php?file=test.txt&id=1" \
--param filepanoptic --url "http://target/include.php" \
--data "file=test.txt&id=1" --param filepanoptic --url "http://target/view.php/test.txt" --path-basedpanoptic --url "http://target/load.php?file=dGVzdC50eHQ=" \
--base64 --autopanoptic --url "http://target/page.php" \
--header "Cookie: lang=FUZZ" --autopanoptic --url "http://target/api/load" \
--data '{"file":"FUZZ"}' --autopanoptic --url "http://target/page.php" \
--header "X-Template: FUZZ" --autopanoptic --url "http://target/view.php?file=test&type=txt" \
--param file --ext-param typepanoptic --url "http://target/filtered.php?file=test.txt" \
--prefix "....//....//....//....//"panoptic --url "http://target/include.php?file=test.txt" \
--os "*NIX" --type conf
panoptic --url "http://target/include.php?file=test.txt" \
--software PostgreSQLpanoptic --url "http://target/include.php?file=test.txt" \
--output-format json --output-file results.json \
--resume-file scan.checkpointpanoptic --url "https://target/include.php?file=test.txt" \
--proxy "socks5://127.0.0.1:9050" --invalid-sslpanoptic --list software
panoptic --list category
panoptic --list ospanoptic --url "http://target/include.php?file=test.txt" \
--auto --all-versions --concurrency 8Place FUZZ anywhere in --header or --data values to mark the injection point. Panoptic replaces FUZZ with each file path during scanning. This enables testing injection points that --param can't reach:
| Injection Type | Example |
|---|---|
| Cookie value | --header "Cookie: theme=FUZZ" |
| Custom header | --header "X-Include: FUZZ" |
| JSON body | --data '{"template":"FUZZ"}' |
| Nested value | --header "Cookie: sid=abc; lang=FUZZ" |
When FUZZ is present, --param is not required.
Panoptic supports TOML config files for persistent settings:
panoptic --url "http://target/include.php?file=test.txt" \
--config ~/.config/panoptic/config.tomlDefault config location: ~/.config/panoptic/config.toml (loaded automatically when present, even without --config).
[defaults]
# Any long option name (with dashes as underscores) is accepted here,
# including the target and output destinations.
url = "http://target/include.php?file=test.txt"
concurrency = 8
verbose = true
automatic = true
all_versions = true
output_format = "json"
output_file = "results.json"
log_file = "scan.log"
resume_file = "scan.checkpoint"
[proxy]
url = "socks5://127.0.0.1:9050"
[headers]
user_agent = "Mozilla/5.0"
cookie = "sid=foobar; auth=1"
values = ["X-Forwarded-For: 127.0.0.1"]Priority: CLI args > config file > built-in defaults.
The [defaults] table accepts any scan option, not just performance tuning. In particular you can persist:
Sensitive artifacts written by Panoptic — the log file, the results/list output file, and any files saved with --write-files — are forced to owner-only 0600 permissions on POSIX. Platforms exposing O_NOFOLLOW also atomically refuse a pre-existing symlink at the final path component. On platforms without O_NOFOLLOW, Panoptic performs a best-effort pre-open symlink/junction check, but the check cannot eliminate a race. Windows mode bits do not configure NTFS ACLs, so use an appropriately restricted directory when artifacts may contain sensitive data.
Every boolean flag has a --no- counterpart, so a value set to true in the config file can be turned off for a single run without editing the file:
# config.toml sets verbose = true and automatic = true
panoptic --url "http://target/x.php?file=test.txt" --no-verbose --no-autoBecause an omitted boolean flag is left unset (rather than defaulting to false), the config value is used unless you pass the flag or its --no- form explicitly.
Route traffic through an HTTP(S) or SOCKS proxy:
panoptic --url "https://target/x.php?file=test.txt" \
--proxy "socks5://127.0.0.1:9050"Some bundled paths are version templates (for example JBoss release directories written as [JBOSS]). By default these template rows are skipped, because a literal [JBOSS] path can never match a real file. Passing --all-versions expands each template against the bundled version list, adding one concrete path per known version — a much larger but far more thorough scan:
panoptic --url "http://target/x.php?file=test.txt" --auto --all-versionsPanoptic does not classify a path from the target-controlled Content-Length header alone. It compares the complete normalized body against the invalid-path baseline. A cheap similarity upper bound avoids the full comparison only when it can already prove the bodies differ; ambiguous responses use the exact ratio to avoid reordered-body false negatives.
--resume-file PATH records completed cases so an interrupted scan can continue where it left off:
panoptic --url "http://target/x.php?file=test.txt" \
--resume-file scan.checkpoint
# ... interrupt with Ctrl-C, then re-run the same command to resumeThe checkpoint stores only completed case IDs plus a SHA-256 fingerprint of the scan definition (URL, injection parameters, detection options, headers, cookie, User-Agent, and the exact case set). It never stores credentials, headers, or URLs in plaintext.
On resume, the fingerprint is recomputed and compared. If anything that would change the meaning of the scan differs — a different target, parameter, header, cookie, filter set, or --all-versions toggle — the checkpoint is rejected with a warning and the scan starts fresh, so a stale checkpoint can never silently skip cases from a different scan. Legacy bare-list checkpoints are accepted with a warning and restricted to case IDs present in the current scan; because that old format has no fingerprint, users should replace it with the newly written format. Failed (network-error) requests are deliberately not checkpointed so they are retried on resume.
panoptic --version # print the installed version and exit
panoptic --update # fast-forward update from the official GitHub repo--update only works from a git checkout whose origin remote uses HTTPS or SSH and matches the official upstream (verified before pulling, to resist insecure or tampered remote configuration). It fast-forwards the checked-out main branch from the explicit upstream main ref. Non-checkout installations can be refreshed safely from the official GitHub archive:
python -m pip install --upgrade https://github.com/lightos/Panoptic/archive/refs/heads/main.zipWhen run from a checkout, the banner also shows the current short git revision.
Panoptic uses conventional process exit codes so it can be scripted:
Contributions are welcome! Please open issues or pull requests on GitHub.
For safe, reproducible end-to-end testing, see the Panoptic LFI Testbed. It provides deliberately vulnerable endpoints covering Panoptic's supported injection methods and traversal transformations.
This project is licensed under the MIT License - see the LICENSE file for details.
| Back | FazBrowse Home | New Git URL |