#netexec #smb #ActiveDirectory #writeup
Escaneos y nmap
bash
ifconfig
nxc smb 192.168.56.1/24bash
nxc smb 192.168.56.0/24 | grep -oP '(\d{1,3}\.){3}\d{1,3}' | sort -u > scope.txtbash
sudo nmap -sn 192.168.56.0/24 -oG - | awk '/Up$/{print $2}' >> ips.txtEs 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.txtbash
cat ips.txt | sort | uniq > scope.txtbash
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 '' --sharesProbamos a listar la política de contraseñas
bash
nxc smb 192.168.56.5 -u '' -p '' --pass-polbash
nxc smb 192.168.56.7 -u '' -p '' --pass-polTambién tratamos de listar usuarios pero no hubo suerte
FTP & MSSQL null session
Tratamos de listar FTP
bash
nxc ftp scope.txtMSSQL
bash
nxc mssql scope.txtNLA:False
bash
nxc rdp 192.168.56.6 --nla-screenshotbash
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.pngLDAP
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.txtWebs
Comprobamos que las webs están activas
bash
httpx -l urls.txt -sc -title -t 50 -timeout 5Fuzzeamos 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