Conversation
|
the xkcd reference is Krazy |
|
a number had to be chosen (with a very secure rng) :p |
| // https://xkcd.com/221 | ||
| int cmd_size = 1273991571; |
There was a problem hiding this comment.
Is there really no reason behind this number? Could this at least be a product of powers of two or something? Or really just some clean-ish number, or something chosen through some reason, rather than literally random?
I propose 1073741824 (or 1024^3), it's exactly 1 GiB and close to this value.
There was a problem hiding this comment.
Is there really no reason behind this number? Could this at least be a product of powers of two or something? Or really just some clean-ish number, or something chosen through some reason, rather than literally random?
the number is patched out by the js code with the real cmd size (important that its exact! we need to seek to the place in the binary where the shell script is located), i had to pick a number that i know wouldnt appear in the binary
a pretty crude method but works and im proud of it