


Required: name, description, inject, path / env name, contest
Optional: up to 3 per flag
Optional: folders and files
Optional: fully customizable tool


Use Cases: file discovery, reverse engineering, permission based access
Use Cases: hidden config, stealthy or logic based challenges, dynamic apps
bash
1#!/bin/bash
2
3for cmd in printenv env; do
4 echo -e "#!/bin/bash\necho \"$cmd has been removed\"" > /override/bin/$cmd
5 chmod 555 /override/bin/$cmd
6 ln -sf /override/bin/$cmd /usr/local/bin/$cmd
7done
8# this is where you start adding whatever you would like
shell
1 ===== Rotation Cipher =====
2
3 Goal:
4 rotate the characters of a string a specific amount
5
6 Usage:
7 rc <string | file_path> <shift_amount>
8
9 Examples:
10
11 rc "abc def" 2
12
13 Output:
14 cde fgh
15
16 rc "abc def" -2
17
18 Output:
19 yza bcd
text
1here is the flag: [FLAG]shell
1NKCTF@you:~$ cat flag.txt
2here is the flag: NKCTF$:{a9eR2}bash
1#!/bin/bash
2
3echo $FLAG_HASHshell
1NKCTF$:{a9eR2}
2NKCTF@you:~$cpp
1#include <iostream>
2#include <cstdlib>
3using namespace std;
4
5int main() {
6 const char* var = getenv("FLAG_HASH");
7 cout << "here is the flag: " << var << endl;
8}bash
1#!/bin/bash
2
3g++ SourceCode.cpp -o ExecutableFile
4rm SourceCode.cppshell
1NKCTF@you:~$ ls
2ExecutableFile
3NKCTF@you:~$ cat ExecutableFile
4Scrt1.o__abi_tagcrtstuff.cderegister_tm_clones__do_global_dtors_auxcompleted.0__do_global_dtors_aux_fini_array_entry
5NKCTF@you:~$ printenv
6printenv has been removed
7NKCTF@you:~$ ./ExecutableFile
8here is the flag: NKCTF$:{a9eR2}
