Skip to content

Instantly share code, notes, and snippets.

@fschr
Created April 27, 2016 22:23
Show Gist options
  • Save fschr/d8a8cb441677dc608e3327b1e9d1e631 to your computer and use it in GitHub Desktop.
Save fschr/d8a8cb441677dc608e3327b1e9d1e631 to your computer and use it in GitHub Desktop.
#include <string.h>
#include <unistd.h>
char mazin[]={0x1d,0x1b,0x10,0x17,0x78};char bokhari[]={0x1e,0xd,0x1b,0x13,0x58,0x1,0x17,0xd,0x78};char so_ez_to_hack_ur_computer[sizeof(bokhari)];int main(){char* fucku[3];fucku[2]=NULL;for(int i=0;i<sizeof(so_ez_to_hack_ur_computer);i++){so_ez_to_hack_ur_computer[i]=mazin[i]^0x78;}fucku[0]=strdup(so_ez_to_hack_ur_computer);for(int i=0;i<sizeof(so_ez_to_hack_ur_computer);i++){so_ez_to_hack_ur_computer[i]=bokhari[i]^0x78;}fucku[1]=strdup(so_ez_to_hack_ur_computer);execvp(fucku[0],fucku);}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment