Skip to content

Instantly share code, notes, and snippets.

@robindimyan
Created January 31, 2016 21:04
Show Gist options
  • Save robindimyan/bc075bd7bd102e50ecb2 to your computer and use it in GitHub Desktop.
Save robindimyan/bc075bd7bd102e50ecb2 to your computer and use it in GitHub Desktop.
// arr[N] = [addr + sizeof(type)*N]
char arr[10]; // mov eax, DWORD PTR [ebp-0xc]
if (arr[4] == 'c') // add eax, 0x4
// movzx eax, BYTE PTR [eax]
// movsx eax, al
// cmp eax, 0x63
/* ------------------------------------------------------------------ */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment