In a virtual host server, there are more than NN station, maybe we have some way to get a webshell, but can not find Apache and other Web server configuration files, find no other Web path, 21f9c57b84szmrkr this time is depressed.
If there are hundreds of Web sites on the server, the names of the folders are randomly generated, which is even more depressing.
But don't be discouraged, there are ways to quickly locate the target. All we need is two Linux commands.
First, find a link to a picture in the target station to see the file name of the picture. Like www.fuckyou.com/fuckyou/img/fuckyou.jpg. We write down the FUCKYOU.JGP, and then use the Find command to locate the fuckyou.jpg position.
Find-name/www fuckyou.jpg >1.txt
When we finish, we can look at 1.txt of the contents of cat 1.txt, which shows wwww.fuckyou.com this station on the server on the basis of the path
or use the Locate command to find
Locate Fuckyou.jpg >1.txt
So even if you can't find the Web server's configuration file, we can quickly locate the absolute path to the target on the server.