Skip to content

#netexec #smb #ActiveDirectory #writeup

Escaneos y nmap

bash
ifconfig

nxc smb 192.168.56.1/24
bash
nxc smb 192.168.56.0/24 | grep -oP '(\d{1,3}\.){3}\d{1,3}' | sort -u > scope.txt
bash
sudo nmap -sn 192.168.56.0/24 -oG - | awk '/Up$/{print $2}' >> ips.txt

Es posible que las máquinas no respondan al ping por lo que renta hacer un arp-scan también

bash
sudo arp-scan 192.168.56.0/24 -I vboxnet0 | grep -oP '(\d{1,3}\.){3}\d{1,3}' >> ips.txt
bash
cat ips.txt | sort | uniq > scope.txt
bash
nxc rdp scope.txt  | grep 'nla:False'

SMB Null session

bash
nxc smb 192.168.56.1/24 -u '' -p '' | grep '[+]'
bash
nxc smb 192.168.56.1/24 -u '' -p '' --shares

Probamos a listar la política de contraseñas

bash
nxc smb 192.168.56.5 -u '' -p '' --pass-pol
bash
nxc smb 192.168.56.7 -u '' -p '' --pass-pol

También tratamos de listar usuarios pero no hubo suerte

FTP & MSSQL null session

Tratamos de listar FTP

bash
nxc ftp scope.txt

MSSQL

bash
nxc mssql scope.txt

NLA:False

bash
nxc rdp 192.168.56.6 --nla-screenshot
bash
scp  m0b@34.175.144.241:/home/m0b/.nxc/screenshots/MUSTAFAR_192.168.56.6_2026-04-13_194841.png MUSTAFAR_192.168.56.6_2026-04-13_194841.png

LDAP

Probamos login anónimo en ldap

bash
nxc ldap scope.txt -u '' -p ''

multi_nmap.sh

Hacemos un escaneo de los top puertos con nmap

bash
./multi_nmap.sh ../scope.txt

Webs

Comprobamos que las webs están activas

bash
httpx -l urls.txt -sc -title -t 50 -timeout 5

Fuzzeamos la web

bash
gobuster dir -u http://192.168.56.7:80 -w SecLists/Discovery/Web-Content/DirBuster-2007_directory-list-lowercase-2.3-medium.txt -t 100

Notas personales de seguridad ofensiva.