A scanner to detect common web vulnerabilities like SQL Injection, XSS, and open directories. This could be a basic reconnaissance tool for learning and educational purposes.
import requests
# Function to test for open directories
def scan_open_directories(target_url):
paths = ["/admin", "/backup", "/test", "/config"]
for path in paths:
url = target_url + path
try:
response = requests.get(url)
if response.status_code == 200:
print(f"[+] Found open path: {url}")
else:
print(f"[-] No access to {url}")
except:
pass
# Main execution
if __name__ == "__main__":
target_url = input("Enter target URL (example: http://example.com): ")
scan_open_directories(target_url)