AnsweredAssumed Answered

How do you convert shellcode across different notations?

Question asked by Venomous Snake on Jul 16, 2017

Hello everybody!

 

I'm experimenting with sample shellcode, but kind of bumped into a problem.

 

How do you normally convert from one format to another?

 

I.e this:

 

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.

Outcomes