Skip to content

Commit

Permalink
kernelCTF: GHA: fix exploit output in summary
Browse files Browse the repository at this point in the history
  • Loading branch information
koczkatamas committed Sep 17, 2023
1 parent 4a6532e commit bb20865
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kernelctf/repro/init/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ if [[ " $* " == *" kaslr_leak=1 "* ]]; then
CMD="$CMD $KASLR_BASE"
fi

echo "running exploit, cmd=$CMD"
echo "running exploit, cmd='$CMD', ::EXPLOIT OUTPUT FROM HERE::"
su user -c "$CMD"
2 changes: 1 addition & 1 deletion kernelctf/repro_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def getLastLine(pattern):
if repro_error:
result += f"Error during reproduction: `{repro_error}`.\n\n"

expl_out = split('su user -c /tmp/exp/exploit')
expl_out = split('::EXPLOIT OUTPUT FROM HERE::')

m = re.search(r"exploit.*?: (segfault at.*)", expl_out)
if m:
Expand Down

0 comments on commit bb20865

Please sign in to comment.