One command to see everything
I’m on challenge On which I have to display the entire directory of a server, I find the trick but not the command (it is a linux server)
The thing that works is:
ls -R
(On linux) do you know of commands that searches ALL directories even see hidden directories?
Because I only display
.: includes index.php ./includes: about.php contact.php home.php File does not exist
Thank in advance for your answers
Add me on hackthis
Or speak with me on IRC channel : https://www.hackthis.co.uk/irc/
Try to Ddos me, My ip : 127.0.0.1
.: . .. ._nginx.http-level.inc ._nginx.server-level.inc ._php-fpm.pool.inc .passwd includes index.php ./includes: . .. about.php contact.php home.php File does not exist
Thank R4v4 I can see .passwd
x)
Add me on hackthis
Or speak with me on IRC channel : https://www.hackthis.co.uk/irc/
Try to Ddos me, My ip : 127.0.0.1
Add me on hackthis
Or speak with me on IRC channel : https://www.hackthis.co.uk/irc/
Try to Ddos me, My ip : 127.0.0.1
If you only want an information on a specific file, you can do ls -Rla / | grep x
where x is the name or a part of the name of the file you’re looking for.
I just think of another command equivalent to ls -R which is tree. It’s a better command to do it. If you want the full path of a file on a server you can do tree -fa / | grep x
where x is the name or a part of the name of the file you’re looking for.
To explain, tree is equal to ls -R. The flag -f of tree means that you will print the full path for each file. the flag -a means that it will print all hidden files. the operator “|” means that you send the output of the first command to the second command. Grep by default will only returns you the lines that matches the regex you type as parameter to grep.
Add me on hackthis
Or speak with me on IRC channel : https://www.hackthis.co.uk/irc/
Try to Ddos me, My ip : 127.0.0.1
.: total 32 dr-xr-x--- 3 web-serveur-ch47 www-data 4096 Nov 27 2016 . drwxr-s--x 51 challenge www-data 4096 Dec 11 13:27 .. -r-------- 1 challenge challenge 90 Nov 20 2016 ._nginx.http-level.inc -r-------- 1 challenge challenge 727 Nov 20 2016 ._nginx.server-level.inc -r-------- 1 challenge challenge 197 Nov 20 2016 ._php-fpm.pool.inc -rw-r----- 1 web-serveur-ch47 www-data 192 May 7 16:06 .passwd drwxr-sr-x 2 web-serveur-ch47 www-data 4096 Nov 20 2016 includes -rw-r----- 1 web-serveur-ch47 www-data 789 Nov 20 2016 index.php ./includes: total 20 drwxr-sr-x 2 web-serveur-ch47 www-data 4096 Nov 20 2016 . dr-xr-x--- 3 web-serveur-ch47 www-data 4096 Nov 27 2016 .. -rw-r----- 1 web-serveur-ch47 www-data 54 Nov 20 2016 about.php -rw-r----- 1 web-serveur-ch47 www-data 159 Nov 20 2016 contact.php -rw-r----- 1 web-serveur-ch47 www-data 78 Nov 20 2016 home.php File does not exist
It works well in addition XDDDDDDDDDDD
Look :
#after ls -Rla | grep .passwd
-rw-r----- 1 web-serveur-ch47 www-data 192 May 7 16:06 .passwd File does not exist
Add me on hackthis
Or speak with me on IRC channel : https://www.hackthis.co.uk/irc/
Try to Ddos me, My ip : 127.0.0.1
Alway the probleme even, I cann’t open the file which contains the password
ls -afhltr
When I open with this command
ls -afhltr .passwd
or
ls -afhltr ./passwd
Are there commands to read the file like
chmod
Add me on hackthis
Or speak with me on IRC channel : https://www.hackthis.co.uk/irc/
Try to Ddos me, My ip : 127.0.0.1
@testing935 It’s probable that you don’t have the right to read this file.
Add me on hackthis
Or speak with me on IRC channel : https://www.hackthis.co.uk/irc/
Try to Ddos me, My ip : 127.0.0.1