Search code examples
shellcode

what's difference between 0x61 and \x61 in shellcodes?


Hi what's difference between these two shell code :

char code[] = "0xb0,0x01,0x31,0xdb,0xcd,0x80";  
char code[] = "\xb0\x01\x31\xdb\xcd\x80";

Solution

  • No difference... 0x is the hexadecimal presentation but \x is shellcode. If you wanna use it as shellcode use \x.