\x38\x12\x08\xab
- Bash:
echo -ne "\x38\x12\x08\xab" > b.bin
- Perl:
perl -e 'print "\x38\x12\x08\xab"' > p.bin
- online tools such as http://sandsprite.com/shellcode_2_exe.php
On the screenshot above, the "\x0a" was added by xxd command, if it was opened with a hex editor, it didn't exist. To save the modification, need to convert it back from Hexdump first, ":%!xxd -r", and then save it.
The python command below could also convert hex to binary file, but the annoying thing is it will add a newline character, "\n"(ASCII 0A) at the end of the file. Haven't figured out how to avoid it yet.
python -c 'print "\x38\x12\x08\xab"' >py.bin
This comment has been removed by the author.
ReplyDelete