-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathscanpuerto
More file actions
28 lines (26 loc) · 1.01 KB
/
Copy pathscanpuerto
File metadata and controls
28 lines (26 loc) · 1.01 KB
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
#!/bin/sh
# Esaneo de puertos/servicios rapido sobre IP, rango o fqdn en fichero todas.txt.
# Escanea 100000 activos en una hora, pero puede tener una fiabilidad del 50%.
# Para maxima fiabilidad de los resultados del escaneo, eliminar el parametro --min-rate 99
# (R) hackingyseguridad.com 2025
echo
echo "..."
cat << "INFO"
(:`--..___...-''``-._ |`._
```--...--. . `-..__ .`/ _\
`\ ' ```--`. />
: : : `:`-'
`.:. `.._--...___ ``--...__
``--..,) ```----....__,) http://www.hackingyseguridad.com
INFO
if [ -z "$1" ]; then
echo
echo "Esaneo rapido de puertos/servicios, IP, rango o fqdn"
echo "Requiere nmap y listado de IP, todas.txt"
echo "Uso.: sh scanpuerto <puerto1,puerto2>"
echo
exit 0
fi
echo
echo
nmap -e eth0 -Pn -iL todas.txt --open -n -p$1 --randomize-hosts --defeat-rst-ratelimit --max-retries 2 --host-timeout 99s --min-rate 99 -oG resultado.txt