This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import lief | |
binary = lief.parse('extract75') | |
stdin = next(filter(lambda e:e.name == "stdin", binary.symbols)) | |
errno = next(filter(lambda e:e.name == "errno", binary.symbols)) | |
errno.name = stdin.name | |
binary.write("extract75-hacked") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int main(void) | |
{ | |
const unsigned char _v[16] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
0x00, 0x00, 0x41, 0x41, 0x41, 0x41, 0x41, 0x41, 0x41, 0x5d}; | |
long double v; | |
memcpy(&v, _v, sizeof(v)); | |
/* Return the result so that gcc doesn't optimize everything away */ | |
return sinl(v); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if test -f .merlin; then | |
echo ".merlin already exists, bailing out ..." >&2 | |
exit 1 | |
else | |
# You could add your default EXT's and such to this list: |