diff options
| author | Louis Burda <quent.burda@gmail.com> | 2024-04-13 23:29:05 +0200 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2024-04-13 23:29:05 +0200 |
| commit | a04e881dd365292f065f3ce3e8bd2d9ec5a4bbbe (patch) | |
| tree | 0b4245c2765636cfeb6e83e6f22525d61e7c9845 /solve/notes | |
| parent | 77a174dce674e0a9bef862db68d45e83cbb778f6 (diff) | |
| download | cscg24-adventure-master.tar.gz cscg24-adventure-master.zip | |
Diffstat (limited to 'solve/notes')
| -rw-r--r-- | solve/notes | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/solve/notes b/solve/notes new file mode 100644 index 0000000..6e0966e --- /dev/null +++ b/solve/notes @@ -0,0 +1,12 @@ +fuck this challenge, no interesting concepts, only tricky details + +look into zsh source, sind out that RANDOM uses C srand / rand + +srand is called on zsh init with epoch sec+usec seed + +we can guess the seed, filter using known values and do trial decryptions +to find the right one + +tricky detail: subshell does not modify the rand state of the parent shell +so in the encoded piece generation the random value does not change.. +haha that did not cost me my sanity |
