Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. <?php require('db_connect.php');if(isset($_POST['user_id'])and isset($_POST['user_pass'])){$l0=$_POST['user_id'];$c1=$_POST['user_pass'];$t2=$_POST['debug'];if($l0=='admin' &&$c1=='admin'){echo "<script type='text/javascript'>alert('Did you seriously think it was gonna be this easy?')</script>";}$a3="/.*['\"].*OR.*/i";$w4=preg_match($a3,$l0);$k5=preg_match($a3,$l0);if($w4==True ||$k5==True){echo "<script type='text/javascript'>alert('SQLi detected')</script>";}$b6="SELECT * FROM accounts WHERE user = '$l0' AND password = '$c1'";if(debug==1){echo "php source: ";}$l7=mysqli_query($h8,$b6);$f9=mysqli_num_rows($l7);if(is_null($f9)){}else{}if($f9==1){echo "<script type='text/javascript'>alert('You solved it congrats')</script>";}else{echo "<script type='text/javascript'>alert('Invalid Login Credentials')</script>";}echo "<!--Proudly owned and maintained by james433-->" echo "<!--PHP code source: -->"}?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement