{"id":16779761,"url":"https://github.com/petermosmans/python_pentest_utils","last_synced_at":"2026-03-04T13:32:20.975Z","repository":{"id":37693867,"uuid":"493096486","full_name":"PeterMosmans/python_pentest_utils","owner":"PeterMosmans","description":"Several Python scripts to test a web application for security issues using Python","archived":false,"fork":false,"pushed_at":"2022-06-22T06:54:41.000Z","size":23,"stargazers_count":6,"open_issues_count":0,"forks_count":5,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-10T20:56:37.890Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PeterMosmans.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-17T04:39:26.000Z","updated_at":"2024-09-12T14:52:58.000Z","dependencies_parsed_at":"2022-08-27T06:02:16.425Z","dependency_job_id":null,"html_url":"https://github.com/PeterMosmans/python_pentest_utils","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/PeterMosmans/python_pentest_utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterMosmans%2Fpython_pentest_utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterMosmans%2Fpython_pentest_utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterMosmans%2Fpython_pentest_utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterMosmans%2Fpython_pentest_utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PeterMosmans","download_url":"https://codeload.github.com/PeterMosmans/python_pentest_utils/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterMosmans%2Fpython_pentest_utils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30081437,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T13:22:36.021Z","status":"ssl_error","status_checked_at":"2026-03-04T13:20:45.750Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T07:32:11.371Z","updated_at":"2026-03-04T13:32:20.941Z","avatar_url":"https://github.com/PeterMosmans.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"####################\nPython Pentest Utils\n####################\n\nThis repository contains several code examples for penetration testing using\nPython. These samples are explained and used in the corresponding Pluralsight\ncourse\n\n::\n\n   Web Application Pen Testing with Python\n\nhttps://app.pluralsight.com/library/courses/web-application-pentesting-python/table-of-contents\n\nIt contains:\n\n+ A ``docker-compose.yml`` file to spin up vulnerable demo web sites\n+ Several Python console application files, one for each corresponding module.\n  Each module builds on top of the previous one, therefore ``demo_5.py`` is the\n  most complete:\n\n  + Analyze HTML page and display framework and version numbers\n  + Brute-force file and directory names\n  + Find a form in a page, and print form details\n  + Print the domain registrant's name and organization\n  + Brute-force password logins using a wordlist\n  + Perform a port scan against a target\n\n+ Several Burp Python extensions\n\nDemo Web Sites\n==============\n\n.. code-block:: console\n\n   docker-compose up --detach\n\nThis spins up sites listening on:\n\n+ http://127.0.0.1:3000/\n+ http://127.0.0.1:8000/WebGoat\n+ http://127.0.0.1:9090/\n\nPython command-line interface script\n====================================\n\ndemo_2.py\n\n   + Perform a WHOIS lookup\n   + Perform an nmap port scan and print out open ports and services\n\nInstallation\n============\n\n.. code-block:: console\n\n   pip install -r requirements.txt\n\nBurp Python extensions\n======================\n\nminimal.py\n   A minimal Burp Python extension, to test the configuration\n\njavascript_includes.py\n   Extract and print JavaScript include references from HTML files\n\njavascript_includes_scanner.py\n   Extract and print JavaScript include references from HTML files, extends the\n   passive scanner (audit checks).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetermosmans%2Fpython_pentest_utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpetermosmans%2Fpython_pentest_utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetermosmans%2Fpython_pentest_utils/lists"}