예제 #1
0
def uart_challenge():
    subprocess.check_output(
        [f'(cd uart_challenge && make CHALLENGE=uart_challenge)'], shell=True)
    resp0, resp1, resp2 = embsec.grade_emulated(
        f'./uart_challenge/gcc/main.bin', f'/embsec/uart_c/uart_challenge')
    stdout, stdin = resp2
    return (extract_flag(stdout))
예제 #2
0
def write_example():
    subprocess.check_output(
        [f'(cd write_example && make CHALLENGE=write_example)'], shell=True)
    resp0, resp1, resp2 = embsec.grade_emulated(
        f'./write_example/gcc/main.bin', f'/embsec/intro_c/write_example')
    stdout, stdin = resp2
    return (extract_flag(stdout))