CC Pentesting
https://tryhackme.com/room/ccpentesting
Open Ports:
- 21: ssh
- 80: HTTP
Port 80:
- find sub-doamisn and directories usind dirb
- ip/secret
- Run dirbuster with txt as file extension
- ip/secret/secret.txt
Gaining Access:
- use the username and password found in secret.txt
ssh nyan:xxxxxxxxxxxxxxxxxxxxxxx@ip
- The password is sha1 and can be cracked in crackstation.com
USER Flag:
Privilege Escalation:
- sudo -l
- found no password for /bin/su
sudo su
- found no password for /bin/su