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
No comments:
Post a Comment