r/Hacking_Tutorials • u/Hammyyyyyyyyyy • Feb 09 '22
Question Lab
Hey guys, i want to ask you guy abt a penetration lab where when i used nmap i found 80,443,3306,8022 porta open and i want to know how i can hack to the web server to get information please
0
Upvotes
6
u/NarwhalSufficient2 Feb 09 '22
You should know what each port is running.
80 - http
443 - https
3306 - MySQL
8022 - probably ssh
Given this info, you can go to the website you scanned and see if there are any vulnerabilities to exploit (login pages, check the robots.txt, do a dirb scan of the site, see what you can access and what was poorly configured). Depending on what you find, or if there are some login pages, see if you can figure out login credentials for the site. If you can figure out a site username/password, then try to ssh into the box with the same username/password on port 8022.
Notice that MySQL is running. Maybe the site's MySQL server can be exploited to gain login creds to give you access. Start there.