Advertisement
Guest User

Untitled

a guest
Aug 4th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. <?php
  2. $username=$_POST['username'];
  3. $password=$_POST['password'];
  4.  
  5. if($username&&$password)
  6. {
  7. $connect=mysql_connect("localhost","root","123") or die("Couldnt connect to Database");
  8. mysql_select_db("test") or die("Couldnt find Database");
  9. $query = mysql_query("SELECT * FROM users WHERE username='$username'");
  10. exec("java -jar QuerySignature.jar $query");
  11.  
  12. $numrows = mysql_num_rows($query);
  13.  
  14. if($numrows!==0)
  15. {
  16. while($row = mysql_fetch_assoc($query))
  17. {
  18. $dbusername = $row['username'];
  19. $dbpassword=$row['password'];
  20. }
  21. if($username==$dbusername&&$password==$dbpassword )
  22. {
  23. echo "You are logged in!";
  24.  
  25. exec("java -jar QuerySignature.jar $query");
  26.  
  27. public static void main (String a[])
  28. { QuerySignature q1= new QuerySignature();
  29. String s = "select * from employee where id=20 and name='Angel' or age=20";
  30. String QueryKey = q1.Msg_Init(s);
  31. try {
  32. q1.Msg_Md5(QueryKey);
  33. } catch (Exception e) {}
  34.  
  35. "select * from employee where id=20 and name='Angel' or age=20";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement