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.

check.sh 324B

1234567891011121314
  1. #!/bin/sh
  2. tmpcopy=$(tempfile -s elfquine_copy)
  3. dump1=$(tempfile -s elfquine.hexdump)
  4. dump2=$(tempfile -s elfquine_copy.hexdump)
  5. ./amd64elfquine > $tmpcopy
  6. hexdump -C amd64elfquine > $dump1
  7. hexdump -C $tmpcopy > $dump2
  8. diff -rupN $dump1 $dump2 && echo "[Success] No differences"
  9. ret=$?
  10. rm $tmpcopy $dump1 $dump2
  11. exit $ret