Guest User

Untitled

a guest
Sep 16th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. MYSQL: inserting error
  2. INSERT INTO `Attacks_key`
  3. (`Event_Key` ,`Variable` ,`Value` ,`Impact` ,`Tags`)
  4. VALUES
  5. ('111', 'REQUEST', ' mysql_real_escape ', '222', 'xss, csrf, id, rfe, lfi');
  6.  
  7. INSERT INTO `Attacks_key`
  8. (`Event_Key` ,`Variable` ,`Value` ,`Impact` ,`Tags`)
  9. VALUES
  10. ('111', 'REQUEST', 'mysql_real_escape_string($_POST['username']); ', '222', 'xss, csrf, id, rfe, lfi');
  11.  
  12. $user="root";
  13. $password="*";
  14. $database="*";
  15. mysql_connect(localhost,$user,$password);
  16. @mysql_select_db($database) or die( "Unable to select database");
  17. $sql = "SELECT `Key_id` FROM `Event` ORDER BY `Key_id` DESC LIMIT 1";
  18. $result =mysql_query($sql);
  19. $row = mysql_fetch_assoc($result);
  20. $EventKey= $row['Key_id'];
  21. $query="INSERT INTO `PHPLOGS`.`Attacks_key` (`Event_Key` ,`Variable` ,`Value` ,`Impact` ,`Tags`) VALUES ('$EventKey', '$getname', '$getvalue', '$getimpec', '$gettags');";
  22. mysql_query($query);
  23. mysql_close();
  24.  
  25. INSERT INTO `Attacks_key`
  26. (`Event_Key` ,`Variable` ,`Value` ,`Impact` ,`Tags`)
  27. VALUES
  28. ('111', 'REQUEST', 'mysql_real_escape_string($_POST['username']); ', '222', 'xss, csrf, id, rfe, lfi');
Add Comment
Please, Sign In to add comment