blob: 6e0966ec34603bcd50594db5605b7a6beb6e14a3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
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
|