The Clickjacking Detector is a Python utility that checks websites for clickjacking vulnerabilities by analyzing HTTP headers and checking for iframes in the HTML. It utilizes the requests and BeautifulSoup libraries to perform its checks and provides a user-friendly interface with color-coded output.
- Checks for the presence of
X-Frame-OptionsandContent-Security-Policyheaders. - Analyzes the HTML for any
iframeelements. - Provides clear and color-coded output for easy understanding of vulnerability status.
- Allows users to scan multiple websites in a single session.
- Python 3.x
requestslibrarybeautifulsoup4librarycoloramalibrary
You can install the required libraries using pip:
pip3 install requests beautifulsoup4 coloramaClone the repository:
git clone https://github.com/MrMihasha/clickjacking-detector
cd clickjacking-detectorRun the script:
python3 cjdetector.pyEnter the URL of the site you want to check when prompted.