您的位置:首页 > 其它

nebula_level00

2015-01-24 01:21 232 查看

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: