Skip to content

Instantly share code, notes, and snippets.

@R3DHULK
Created February 10, 2023 15:57
Show Gist options
  • Save R3DHULK/5df64ba330b1700c91619262275ba839 to your computer and use it in GitHub Desktop.
Save R3DHULK/5df64ba330b1700c91619262275ba839 to your computer and use it in GitHub Desktop.
PHP Vulnerability Scanner In Python
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