-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexploit_web.py
More file actions
23 lines (20 loc) · 781 Bytes
/
exploit_web.py
File metadata and controls
23 lines (20 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import subprocess
from termcolor import colored
from urllib.parse import urlparse
def scan_web_vulnerabilities(target):
# Escanear con Nikto
print(colored(f"Escaneando con Nikto el sitio web: {target}", "blue"))
nikto_cmd = f"nikto -h {target}"
subprocess.run(nikto_cmd, shell=True)
print("\n")
# Escanear con WhatWeb
print(colored(f"Escaneando con WhatWeb el sitio web: {target}", "blue"))
whatweb_cmd = f"whatweb {target}"
subprocess.run(whatweb_cmd, shell=True)
print("\n")
def search_web_exploits(target):
# Buscar exploits en Searchsploit
print(colored(f"Buscando exploits para el sitio web: {target}", "blue"))
searchsploit_cmd = f"searchsploit {target}"
subprocess.run(searchsploit_cmd, shell=True)
print("\n")