Nebula Level 04

Nebula 04

This level requires you to read the token file, but the code restricts the files that can be read. Find a way to bypass it 🙂

if(strstr(argv[1], "token") != NULL) {
printf("You may not access '%s'\n", argv[1]);
exit(EXIT_FAILURE);

The above code checks to see if the word token appears in the argument passed in. If the word token appears, it exits. However, the file we want to read is called Token.

flag04-back

We can get around this restriction by creating a symbolic link the file token, and calling it flag instead. This satisfies the string check used by the program.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s