Advertisement
namal101

Patch SQLi Bug

Feb 11th, 2020
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. Patch SQLi Bug
  2.  
  3. #patch sqli method get ( kecuali sqli
  4. base64 & sqli url friendly (yang pakai
  5. url alias bukan id))
  6.  
  7. function patch_sqli_G($num){
  8. if($num < 0){
  9. echo"<script>window.location.href='./index.php'</script>";
  10. }elseif(!is_numeric($num)){
  11. echo"<script>window.location.href='./index.php'</script>";
  12. }else{
  13. return $num;
  14. }
  15. }
  16.  
  17. patch post sqli & bypass login
  18.  
  19. function patch_sqli_P($data){
  20. $filter = mysql_real_escape_string(stripslashes(strip_tags(htmlspecialchars($data,ENT_QUOTES))));
  21. return $filter;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement