cscg ist super
This commit is contained in:
17
2026/cscg/web/innovation-at-work/run.sh
Executable file
17
2026/cscg/web/innovation-at-work/run.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
example_hash="$(echo example | shasum -a 256 | cut -d' ' -f 1)"
|
||||
echo '{ "name: "Max Mustermann", "age": 10 }' > /db/$example_hash:$example_hash
|
||||
|
||||
|
||||
flag_hash="$(echo flag | shasum -a 256 | cut -d' ' -f 1)"
|
||||
password_hash="$(head -n 32 /dev/random | shasum -a 256 | cut -d' ' -f 1)"
|
||||
echo 'dach2026{fake_flag}' > /db/$flag_hash:$password_hash
|
||||
chmod -R a+rwx /db
|
||||
|
||||
unset example_hash
|
||||
unset password_hash
|
||||
unset flag_hash
|
||||
|
||||
exec lighttpd -f /lighttpd.conf -D
|
||||
|
||||
Reference in New Issue
Block a user