Created
February 10, 2023 15:57
-
-
Save R3DHULK/5df64ba330b1700c91619262275ba839 to your computer and use it in GitHub Desktop.
PHP Vulnerability Scanner In Python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
print ('''\033[93m | |
********************************************** | |
* Simple PHP Vulnerability Scanner * | |
* github page : https://github.com/r3dhulk * | |
********************************************** | |
''') | |
def scan_vulnerabilities(url): | |
response = requests.get(url) | |
if response.status_code == 200: | |
if 'X-Powered-By: PHP' in response.headers: | |
print('\033[92m [INFO] Target is using PHP') | |
# Add vulnerability checks here | |
else: | |
print('\033[92m [ERROR] Target is not using PHP') | |
else: | |
print('\033[92m [ERROR] Could not connect to target') | |
scan_vulnerabilities(input("\033[92m [+] Enter Url (i.e. https://example.com) : ")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment