Skip to content

Instantly share code, notes, and snippets.

@dyama
Created June 4, 2015 14:02
Show Gist options
  • Save dyama/0bbf6bd343f951832cd6 to your computer and use it in GitHub Desktop.
Save dyama/0bbf6bd343f951832cd6 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <stdlib.h>
int main(int c, char** v)
{
int i;
qsort(v+1, c-1, sizeof(char*),
(int(*)(const void*, const void*))
"\x55\x89\xe5\x56\x8b\x75\x08\x53\x8b\x5d\x0c\xeb\x0f\x84\xc0\x75\x04\x31"
"\xd2\xeb\x1b\x8d\x41\x01\x89\x06\xff\x03\x8b\x0e\x8b\x03\x8a\x11\x8a\x00"
"\x38\xc2\x74\xe5\x0f\xbe\xd2\x0f\xbe\xd2\x0f\xbe\xc0\x29\xc2\x5b\x89\xd0"
"\x5e\x5d\xc3");
for(i=1; i<c; i++) {
puts(v[i]);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment