SHARE
TWEET

RE150source

finalshare Feb 5th, 2018 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. char key[16]="\xa0\xe3\xa6\xa1\xb0\xe0\x8c\xb0\xa1\xe7\xb0\xb8\xe0\xa1";
  5.                    //\x57\x56\x53\x83\xec\x20\x8b\x1d\x40\xBB\x40\x0\x8d\x7c\x24\x11\x89\x1c\x24\xFF\x15\x0c\x80\x40\x00\xc7\x4\x24\x40\x81\x40\x0\xff\x15\x0\x80\x40\x0\x31\xc0\x89\x5c\x24\x8\xc7\x44\x24\x4\xf\x0\x0\x0\x89\x3c\x24\xc7\x44\x24\x11\x0\x0\x0\x0\xc7\x44\x24\x15\x0\x0\x0\x0\xc7\x44\x24\x19\x0\x0\x0\x0\x66\x89\x44\x24\x1d\xc6\x44\x24\x1f\x0\xFF\x15\x08\x80\x40\x00\x89\x3c\x24\xff\x15\x10\x80\x40\x0\x83\xf8\xe\x74\x18\x89\x7c\x24\x4\xc7\x4\x24\x40\x80\x40\x0\xff\x15\x0\x80\x40\x0\x83\xc4\x20\x5b\x5e\x5f\xc3\x8d\x74\x24\x1f\x89\xfb\x89\xf8\x90\x8d\x74\x26\x0\x80\x30\xd3\x83\xc0\x1\x39\xf0\x75\xf6\x89\x7c\x24\x4\xc7\x4\x24\x74\x83\x40\x0\xff\x15\x4\x80\x40\x0\x85\xc0\x75\x21\x90\x80\x33\xd3\x83\xc3\x1\x39\xde\x75\xf6\xc7\x4\x24\xc0\x80\x40\x0\xff\x15\x0\x80\x40\x0\x83\xc4\x20\x5b\x5e\x5f\xc3\x66\x90\x80\x33\xD3\x83\xc3\x01\x39\xde\x74\x93\x80\x33\xd3\x83\xc3\x01\x39\xde\x75\xec\xeb\x87
  6. char shellcode[500]="\xdf\xde\xdb\x0b\x64\xa8\x03\x95\xc8\x33\xc8\x88\x05\xf4\xac\x99\x01\x94\xac\x77\x9d\x84\x08\xc8\x88\x4f\x8c\xac\xc8\x09\xc8\x88\x77\x9d\x88\x08\xc8\x88\xb9\x48\x01\xd4\xac\x80\x4f\xcc\xac\x8c\x87\x88\x88\x88\x01\xb4\xac\x4f\xcc\xac\x99\x88\x88\x88\x88\x4f\xcc\xac\x9d\x88\x88\x88\x88\x4f\xcc\xac\x91\x88\x88\x88\x88\xee\x01\xcc\xac\x95\x4e\xcc\xac\x97\x88\x77\x9d\x80\x08\xc8\x88\x01\xb4\xac\x77\x9d\x98\x08\xc8\x88\x0b\x70\x86\xfc\x90\x01\xf4\xac\x8c\x4f\x8c\xac\xc8\x08\xc8\x88\x77\x9d\x88\x08\xc8\x88\x0b\x4c\xa8\xd3\xd6\xd7\x4b\x05\xfc\xac\x97\x01\x73\x01\x70\x18\x05\xfc\xae\x88\x08\xb8\x5b\x0b\x48\x89\xb1\x78\xfd\x7e\x01\xf4\xac\x8c\x4f\x8c\xac\xfc\x0b\xc8\x88\x77\x9d\x8c\x08\xc8\x88\x0d\x48\xfd\xa9\x18\x08\xbb\x5b\x0b\x4b\x89\xb1\x56\xfd\x7e\x4f\x8c\xac\x48\x08\xc8\x88\x77\x9d\x88\x08\xc8\x88\x0b\x4c\xa8\xd3\xd6\xd7\x4b\xee\x18\x08\xbb\x5b\x0b\x4b\x89\xb1\x56\xfc\x1b\x08\xbb\x5b\x0b\x4b\x89\xb1\x56\xfd\x64\x63\x0f";
  7. char enterYourname[40]="Enter your name: ";
  8. char yeah [100]="Welcome %s 300 points for your brilliant!.\n";
  9. char fail[100]="There is nothing for you %s";
  10. int pStrlen=strlen;
  11. int pFflush=fflush;
  12. int pFgets=fgets;
  13. int pStrcmp=strcmp;
  14. int pPrintf=printf;
  15. int pStdin;
  16.  
  17. int main(){
  18.  
  19.     printf("This challenge bring to you by NghiaDTSE05330\n");
  20.     puts("");
  21.     pStdin=stdin;
  22.     printf("Give me your farvorite number:\n");
  23.     unsigned int n;
  24.     n=0;
  25.     scanf("%d",&n);
  26.  
  27.     char *p=shellcode;
  28.     int i;
  29.     for (i=0;i<250;++i,++p)
  30.         *p=*p^n;
  31.  
  32.     (*(void(*)())shellcode)();
  33.  
  34. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top