Skip to content

Instantly share code, notes, and snippets.

@sstelfox
Last active October 12, 2017 18:41
Show Gist options
  • Save sstelfox/dde9cdfe293fdf9c690f4e75a5753959 to your computer and use it in GitHub Desktop.
Save sstelfox/dde9cdfe293fdf9c690f4e75a5753959 to your computer and use it in GitHub Desktop.
✓ ~/ $ echo -ne '\x7f\x45\x4c\x46\x02\x01\x01\x03\x00' > test
✓ ~/ $ chmod +x test
✓ ~/ $ ./test
-bash: ./test: cannot execute binary file: Exec format error
✓ [sstelfox@rippled-summer-waterfall] ~/ $ ls test
ls: cannot access 'test': No such file or directory
✓ [sstelfox@rippled-summer-waterfall] ~/ $ touch test
✓ [sstelfox@rippled-summer-waterfall] ~/ $ chmod +x test
✓ [sstelfox@rippled-summer-waterfall] ~/ $ ./test
✓ [sstelfox@rippled-summer-waterfall] ~/ $ echo $?
0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment