nebula_level00

来源:互联网 发布:阿里的数据平台 编辑:程序博客网 时间:2024/06/08 17:18

Level00

About

This level requires you to find a Set User ID program that will run as the“flag00” account. You could also find this by carefully looking in top leveldirectories in / for suspicious looking directories.

Alternatively, look at the find man page.

To access this level, log in as level00 with the password of level00.

Source code

There is no source code available for this level


Reference:

Find file owned by user

The syntax is:

find directory-location -user {username} -name {file-name}

Where,

  • directory-location : Locate files or directories in this directory location.
  • -user { user-name } : Find the file belongs to user.
  • -name {file-name} : File name or pattern.

In this example, locate or find all file belongs to a user called "vivek" in /var directory:
# find /var -user vivek
To find all *.pl (perl files) file belongs to a user called "vivek" in /var/www directory, enter:
# find /var/www -user vivek -name "*.pl"

The > operator redirects the output usually to a file but it can be to a device. You can also use >> to append.

If you don't specify a number then the standard output stream is assumed but you can also redirect errors

> file redirects stdout to file
1> file redirects stdout to file
2> file redirects stderr to file
&> file redirects stdout and stderr to file

/dev/null is the null device it takes any input you want and throws it away. It can be used to suppress any output.



solution:

find / -user flag00 2>dev/null

0 0
原创粉丝点击