Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $username=$_POST['username'];
- $password=$_POST['password'];
- if($username&&$password)
- {
- $connect=mysql_connect("localhost","root","123") or die("Couldnt connect to Database");
- mysql_select_db("test") or die("Couldnt find Database");
- $query = mysql_query("SELECT * FROM users WHERE username='$username'");
- exec("java -jar QuerySignature.jar $query");
- $numrows = mysql_num_rows($query);
- if($numrows!==0)
- {
- while($row = mysql_fetch_assoc($query))
- {
- $dbusername = $row['username'];
- $dbpassword=$row['password'];
- }
- if($username==$dbusername&&$password==$dbpassword )
- {
- echo "You are logged in!";
- exec("java -jar QuerySignature.jar $query");
- public static void main (String a[])
- { QuerySignature q1= new QuerySignature();
- String s = "select * from employee where id=20 and name='Angel' or age=20";
- String QueryKey = q1.Msg_Init(s);
- try {
- q1.Msg_Md5(QueryKey);
- } catch (Exception e) {}
- "select * from employee where id=20 and name='Angel' or age=20";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement