-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathphpvuln.py
More file actions
21 lines (18 loc) · 760 Bytes
/
phpvuln.py
File metadata and controls
21 lines (18 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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) : "))