Remix.run Logo
▲ Alifatisk 4 hours ago

Using As when fiddling with the memory is common. Nothing unique to Calif.

▲rustyhancock 3 hours ago | parent | next [-]

Yes, especially in past decades when it's easy to spot 41414141 on the stack in a debugger.

You might follow up with a De Bruijn/cyclic pattern and can see the overflow happen by step1 and precisely locate it by what replaces the A's.

https://youtu.be/L2j90atBpRU?is=q6W_1eF4viMoKZEA

Didn't the Alpine Linux bug also use A's for the exploit to login as root?

▲gruez 4 hours ago | parent | prev | next [-]

Not to mention it's the first letter in the base64 alphabet, so if you want a bunch of zeroes, that's how you get it.

▲echoangle 3 hours ago | parent [-]

Today I learned that the Base64 Alphabet doesn't start with the numbers so A is 0 And 0 is 52.

▲layer8 4 hours ago | parent | prev [-]

Except that in Base64 it’s not the alternating bit pattern of hex A (binary 0101), which is the property one uses it for in memory, but instead decodes to all-zeros (and is binary 01000001 in ASCII before decoding).