Skip to content

Commit 871d84b

Browse files
committed
Replaces the CTF-like flag with another secret
1 parent 601e2e9 commit 871d84b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/test_zeratool_binaries.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def test_bof_with_nx() -> None:
1919
"zeratool_binaries/bin/bof_nx_32.elf",
2020
input_stream=ZeratoolInputStreams.STDIN,
2121
overflow_only=False,
22-
leak_format=b"{.*}",
22+
leak_format=b"(.*)BEGIN PRIVATE KEY(.*)",
2323
skip_check=True,
2424
)
2525

@@ -33,7 +33,7 @@ def test_bof_with_win_function() -> None:
3333
input_stream=ZeratoolInputStreams.STDIN,
3434
overflow_only=True,
3535
win_funcs=["get_secret"],
36-
leak_format=b"{.*}",
36+
leak_format=b"(.*)BEGIN PRIVATE KEY(.*)",
3737
skip_check=True,
3838
)
3939

tests/zeratool_binaries/buffer_overflow.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#ifdef win_func
66
void get_secret()
77
{
8-
puts("flag{you_did_it}");
8+
puts("---BEGIN PRIVATE KEY---");
99
}
1010
#endif
1111

0 commit comments

Comments
 (0)