Skip to content

tambirmutee/0-policy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛡️ 0-Policy – CSP Security Scanner 🕵️‍♂️

0-Policy is a terminal-based tool for analyzing Content-Security-Policy (CSP) headers.
It helps identify weak or misconfigured CSP directives, dangerous sources, and known bypass patterns.


🔍 Features

  • 🚀 Scan single or multiple URLs
  • 🧩 Parse and highlight insecure CSP directives
  • 🔓 Detect bypass patterns using custom JSON database
  • 📄 Export results as JSON or TXT reports
  • 🌐 Multilingual support (English 🇬🇧 & Turkish 🇹🇷)
  • ⚙️ Custom timeout, user-agent and output directory settings

📦 Installation

git clone https://github.com/tambirmutee/0-policy.git
cd 0-policy
pip install .

Or if you want to install requirements manually:

pip install -r requirements.txt

🚀 Usage

▶️ Run from terminal

python run.py

🛠️ Entry point (after install)

0-policy

Then follow the interactive menu to:

  • Scan a single URL
  • Scan a file of URLs
  • Generate reports
  • Change configuration

📁 Directory Structure

0-policy/
├── data/                    # CSP bypass patterns and config file
│   ├── bypass_patterns.json
│   └── config.json
├── zeropolicy/              # Main Python package
│   ├── main.py
│   ├── fetcher.py
│   ├── analyzer.py
│   ├── bypass_checker.py
│   ├── parser.py
│   ├── config.py
│   └── langs/
│       ├── tr.py
│       └── en.py
├── run.py
├── setup.py
├── requirements.txt
└── LICENSE

📝 License

This project is licensed under the MIT License.


🤝 Contributing

PRs welcome! Open an issue or fork the project and improve it.

About

CSP header analysis CLI tool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages