I'm experimenting with sample shellcode, but kind of bumped into a problem.
How do you normally convert from one format to another?
char shellcode = "\x31\xd2\xb2\x30\x64\x8b\x12\x8b\x52\x0c\x8b\x52\x1c\x8b\x42"
To 0x00, 0x00, 0x00-something? With badchars in mind.
Right now I do it with my text editor -> "Search and replace", but its obviously the
most inconvenient method.