Monday, August 1, 2022

Bandit6

 

Bandit6





bandit level6

ssh server: bandit.labs.overthewire.org port 2220

username: bandit6

password: DXjZPULLxYr17uwoI01bNLQbtFemEgo7



this time we need to find a file that it has the following characteristics:
1- owned by user bandit7
2- owned by group bandit6
3- 33 character only
somewhere into the server. So we will use the find command but on the root directory


$ find / -type f -size 33c -user bandit7 -group bandit6 


oups so many "permission denied" and we can not find our file through that listing, so we need to hid this "permission denied" to find out our target file. This would be done by redirecting the errors to the /dev/null and keep only non errors shown on the screen

find / -type f -size 33c -user bandit7 -group bandit6 2>/dev/null


here is our file all what we need to do is show the file contents


this is the password for the next level bandit7
tell we meet there


Your comments and feedback are highly appreciated

Thank You

No comments:

Post a Comment

Bandit26

  Bandit26 bandit level26 ssh server: bandit.labs.overthewire.org port 2220 username:  bandit26 password:  c7GvcKlw9mC7aUQaPx7nwFstuAIBw1o1 ...