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]);

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.


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.

Leave a Reply

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

You are commenting using your 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