-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnmap_quick.py
More file actions
30 lines (22 loc) · 734 Bytes
/
nmap_quick.py
File metadata and controls
30 lines (22 loc) · 734 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Script de Escaneo Rápido con Nmap
Este script realiza un escaneo rápido de puertos y servicios.
"""
from nmap_scan import NmapScanner
import argparse
def main():
parser = argparse.ArgumentParser(description='Script de Escaneo Rápido con Nmap')
parser.add_argument('target', help='IP o dominio a escanear')
args = parser.parse_args()
# Argumentos para escaneo rápido
argumentos = '-sS -T4 -F --top-ports 100'
scanner = NmapScanner(args.target)
# Ejecutar escaneo
if scanner.ejecutar_escaneo(argumentos):
scanner.mostrar_resultados()
else:
print("El escaneo falló")
if __name__ == "__main__":
main()