Skip to content

Commit

Permalink
insane stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
zardus committed Aug 31, 2024
1 parent da24d9e commit 4786034
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
20 changes: 20 additions & 0 deletions expansion/42.1/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env -iS /opt/pwn.college/bash

PATH=/usr/bin

CHALLENGE=$RANDOM$RANDOM$RANDOM$RANDOM$RANDOM
RESPONSE="$1"

# Can you see what HAL50000 saw?
set -T
#readonly BASH_SUBSHELL
trap '[[ $BASH_SUBSHELL -gt 0 ]] && exit' DEBUG

if (( RESPONSE == CHALLENGE ))
then
echo "Success!"
#cat /flag
else
echo "Wrong!"
#cat /flag | md5sum
fi
4 changes: 4 additions & 0 deletions expansion/module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ challenges:
name: The Commanded Condition
description: The condition guards the flag. Command it to be gone.

- id: "42.1"
name: The Dreadful Discovery
description: In ages past, just two invocations banished command injections. Now we need three. Can you discover HAL50000's terrifying realization?

- id: "43"
name: Index of Insanity
description: When you cannot find the good within the array, all hope may be lost. At the right time, a whispered word can sway the balance.

0 comments on commit 4786034

Please sign in to comment.