Exemple #1
0
def stage_flag_24():
    # Deliberately only obfuscate part of this script
    common.create_script(common.get_script_path(24), generate_flag_24_script_contents())
Exemple #2
0
def stage_flag_25():
    common.create_script(common.FLAG_25_PROCESS_SCRIPT, obfuscate_shell_script(generate_flag_25_start_process_script_contents()))
    os.chmod(common.FLAG_25_PROCESS_SCRIPT, 0111) # Make the script executable
    subprocess.Popen([common.FLAG_25_PROCESS_SCRIPT], stdin=None, stdout=None, stderr=None, close_fds=True) # Run the script
    common.create_script(common.FLAG_25_SCRIPT, obfuscate_shell_script(generate_flag_25_script_contents()))
Exemple #3
0
def stage_flag_17():
    common.create_script(common.get_script_path(17), obfuscate_shell_script(generate_flag_17_script_contents()))
    common.write_to_file(common.FLAG_FILE_17_INPUT_FILE, "Here is the 'typo'.\nPlease remove it to get to the flag.")
Exemple #4
0
def stage_flag_13():
    common.write_to_file(common.FLAG_13_THING_1, "This is a Thing")
    common.create_script(common.get_script_path(13), obfuscate_shell_script(generate_flag_13_script_contents()))
Exemple #5
0
def stage_flag_12():
    common.mkdir(common.FLAG_12_DIRECTORY)
    common.create_script(common.get_script_path(12), obfuscate_shell_script(generate_flag_12_script_contents()))
Exemple #6
0
def stage_flag_11():
    common.write_to_file(common.FLAG_11_BOULDER, "This is a boulder")
    common.create_script(common.get_script_path(11), obfuscate_shell_script(generate_flag_11_script_contents()))
Exemple #7
0
def stage_flag_10():
    common.mkdir(common.FLAG_10_DIRECTORY)
    common.write_to_file(common.FLAG_FILE_10_ORIGINAL_PATH, get_hint_for_flag(10))
    common.create_script(common.get_script_path(10), obfuscate_shell_script(generate_flag_10_script_contents()))