Saint92

Simple patch bug sqli

Oct 21st, 2015
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.76 KB | None | 0 0
  1. <?
  2. if (ereg("%20union%20", $_GET['id'])||ereg("union",$_GET['id']) || ereg("\*union\*",$_GET['id']) || ereg("\+union\+",$_GET[id]) || ereg("\*",$_GET['id']))
  3. {
  4. ob_start();
  5. header("location: index.php");
  6. ob_flush();
  7. }
  8. ?>
  9.  
  10.  
  11. note:
  12. save dgn nama apa saja dan taro di directory yg sama dgn script yg ada bug sqli nya
  13. contoh bug ada di file index.php dan script di atas kita smpen dgn nm patch.php lalu edit file index.php dan msukan query berikut ..
  14. include'patch.php';
  15.  
  16. header location bisa di rubah sesuai injector mau di direct kemana
  17.  
  18. belum sempurna sih tp tak apalah lumayan buat belajar :D
  19.  
  20. kegunaan:
  21. jika sang injector menambahkan string otomatis dia akan di direct yaps query di atas lbh condong maen di string dan union
  22.  
  23. sumber:hacker-newbie.org
Advertisement
Add Comment
Please, Sign In to add comment