Advertisement
Guest User

Untitled

a guest
Aug 31st, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1. <?php
  2. $link = mysqli_connect("sql209.epizy.com", "epiz_22610950","5YJqsTGEoSN");
  3. $database = mysqli_select_db($link, "epiz_22610950_hozinum");
  4.  
  5. $user = $_GET['username'];
  6. $password = $_GET['password'];
  7. $hwid = $_GET['hwid'];
  8. $tables = "mybb_users";
  9. $cheatcode = file_get_contents('./forums/forum/eA5CN2KJyQGBS7xqLJfeBSnTWqC3yJ/gxLExfQEehVQ7vD5NnkX8QfCTzM4zp/AnvPRQMjKuyQjbNZ7j7KhgGgzn6qpD/bw5bF56GNnpJ8zNX9sFe5RdTMaFBkK/Rjn9XDTNCmE9XQnWRbv7KvD3SacLJb.txt');
  10.  
  11. $sql = "SELECT * FROM ". $tables ." WHERE username = '". mysqli_real_escape_string($link,$user) ."'" ;
  12. $result = $link->query($sql);
  13. if ($result->num_rows > 0) {
  14. // Outputting the rows
  15. while($row = $result->fetch_assoc())
  16. {
  17.  
  18. $password = $row['password'];
  19. $salt = $row['salt'];
  20. $plain_pass = $_GET['password'];
  21. $stored_pass = md5(md5($salt).md5($plain_pass));
  22.  
  23. function Redirect($url, $permanent = false)
  24. {
  25. if (headers_sent() === false)
  26. {
  27. header('Location: ' . $url, true, ($permanent === true) ? 301 : 302);
  28. }
  29. exit();
  30. }
  31.  
  32. if($stored_pass != $row['password'])
  33. {
  34. echo "p0<br>"; // Wrong pass, user exists
  35. }
  36. else
  37. {
  38. echo $cheatcode;
  39. }
  40.  
  41.  
  42. if (strlen($row['hwid']) > 1)
  43. {
  44. if ($hwid != $row['hwid'])
  45. {
  46. echo "ERROR"; // Wrong
  47. }
  48. else
  49. {
  50.  
  51. }
  52. }
  53. else
  54. {
  55. $sql = "UPDATE ". $tables ." SET hwid='$hwid' WHERE username='$user'";
  56. if(mysqli_query($link, $sql))
  57. {
  58. echo $row['hwid'];
  59. echo "RESTART"; // HWID Set
  60. }
  61. else
  62. {
  63. echo "ERROR"; // Else errors
  64. }
  65. }
  66. if ($row['usergroup'] == 7) {
  67. echo "ERRORGROUP" . $row['usergroup'] . "<br>";
  68. }else{
  69.  
  70. }
  71. }
  72. }
  73. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement