A GNU/Linux AMD X86-64 ELF Quine.
Produce itself on stdout without reading outside .data section.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1234567891011121314 |
- #!/bin/sh
-
- tmpcopy=$(tempfile -s elfquine_copy)
- dump1=$(tempfile -s elfquine.hexdump)
- dump2=$(tempfile -s elfquine_copy.hexdump)
-
- ./amd64elfquine > $tmpcopy
- hexdump -C amd64elfquine > $dump1
- hexdump -C $tmpcopy > $dump2
-
- diff -rupN $dump1 $dump2 && echo "[Success] No differences"
- ret=$?
- rm $tmpcopy $dump1 $dump2
- exit $ret
|