Advertisement
Guest User

Untitled

a guest
Nov 8th, 2017
2,060
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.19 KB | None | 0 0
  1. <?php
  2. include "config.php";
  3. $username = htmlspecialchars(mysqli_real_escape_string($connection, $_GET['username']));
  4. $password = htmlspecialchars(mysqli_real_escape_string($connection, $_GET['password']));
  5. $IP = (mysqli_real_escape_string($connection, $_GET['IP']));
  6. $query = "SELECT * FROM `users` WHERE username='$username' and password='$password'";
  7. $fp = fopen('logs.txt', 'a');
  8.  
  9. $result = mysqli_query($connection, $query) or die(mysqli_error($connection));
  10. $count = mysqli_num_rows($result);
  11.  
  12. if ($count == 1){
  13.  
  14. if (isset($_GET['action']))
  15. {
  16. $action = $_GET["action"];
  17.  
  18. if($action == "spotify") {
  19. $f_contents = file("list.txt");
  20. $line = $f_contents[rand(0, count($f_contents) - 1)];
  21. $logtext = "$username, $IP, $action. /n";
  22. fwrite($fp, $logtext);
  23. echo "$line";
  24. }
  25. elseif($action == "netflix") {
  26. $f_contents = file("nflixlist.txt");
  27. $line = $f_contents[rand(0, count($f_contents) - 1)];
  28. $logtext = "$username, $IP, $action. /n";
  29. fwrite($fp, $logtext);
  30. echo "$line";
  31. }
  32. elseif($action == "hulu") {
  33. $f_contents = file("hululist.txt");
  34. $line = $f_contents[rand(0, count($f_contents) - 1)];
  35. $logtext = "$username, $IP, $action. /n";
  36. fwrite($fp, $logtext);
  37. echo "$line";
  38. }
  39. elseif($action == "hma") {
  40. $f_contents = file("hmalist.txt");
  41. $line = $f_contents[rand(0, count($f_contents) - 1)];
  42. $logtext = "$username, $IP, $action. /n";
  43. fwrite($fp, $logtext);
  44. echo "$line";
  45. }
  46. elseif($action == "chaturbate") {
  47. $f_contents = file("chaturbatelist.txt");
  48. $line = $f_contents[rand(0, count($f_contents) - 1)];
  49. $logtext = "$username, $IP, $action. /n";
  50. fwrite($fp, $logtext);
  51. echo "$line";
  52. }
  53. elseif($action == "deezer") {
  54. $f_contents = file("deezerlist.txt");
  55. $line = $f_contents[rand(0, count($f_contents) - 1)];
  56. $logtext = "$username, $IP, $action. /n";
  57. fwrite($fp, $logtext);
  58. echo "$line";
  59. }
  60. elseif($action == "origins") {
  61. $f_contents = file("originslist.txt");
  62. $line = $f_contents[rand(0, count($f_contents) - 1)];
  63. $logtext = "$username, $IP, $action. /n";
  64. fwrite($fp, $logtext);
  65. echo "$line";
  66. }
  67. elseif($action == "ebay") {
  68. $f_contents = file("ebaylist.txt");
  69. $line = $f_contents[rand(0, count($f_contents) - 1)];
  70. $logtext = "$username, $IP, $action. /n";
  71. fwrite($fp, $logtext);
  72. echo "$line";
  73. }
  74. elseif($action == "roblox") {
  75. $f_contents = file("robloxlist.txt");
  76. $line = $f_contents[rand(0, count($f_contents) - 1)];
  77. $logtext = "$username, $IP, $action. /n";
  78. fwrite($fp, $logtext);
  79. echo "$line";
  80. }
  81. elseif($action == "hbo") {
  82. $f_contents = file("hbolist.txt");
  83. $line = $f_contents[rand(0, count($f_contents) - 1)];
  84. $logtext = "$username, $IP, $action. /n";
  85. fwrite($fp, $logtext);
  86. echo "$line";
  87. }
  88. elseif($action == "amazon") {
  89. $f_contents = file("amazonlist.txt");
  90. $line = $f_contents[rand(0, count($f_contents) - 1)];
  91. $logtext = "$username, $IP, $action. /n";
  92. fwrite($fp, $logtext);
  93. echo "$line";
  94. }
  95. elseif($action == "gmail") {
  96. $f_contents = file("gmaillist.txt");
  97. $line = $f_contents[rand(0, count($f_contents) - 1)];
  98. $logtext = "$username, $IP, $action. /n";
  99. fwrite($fp, $logtext);
  100. echo "$line";
  101. }
  102. elseif($action == "yahoo") {
  103. $f_contents = file("yahoolist.txt");
  104. $line = $f_contents[rand(0, count($f_contents) - 1)];
  105. $logtext = "$username, $IP, $action. /n";
  106. fwrite($fp, $logtext);
  107. echo "$line";
  108. }
  109. elseif($action == "mc") {
  110. $f_contents = file("mclist.txt");
  111. $line = $f_contents[rand(0, count($f_contents) - 1)];
  112. $logtext = "$username, $IP, $action. /n";
  113. fwrite($fp, $logtext);
  114. echo "$line";
  115. }
  116. elseif($action == "proxies") {
  117. $f_contents = file("proxies.txt");
  118. $line = $f_contents[rand(0, count($f_contents) - 1)];
  119. $logtext = "$username, $IP, $action. /n";
  120. fwrite($fp, $logtext);
  121. echo "$line";
  122. }
  123. else {
  124. echo "No Action Specified";
  125. }
  126. }
  127. }
  128. else {
  129. echo "Login.Failed";
  130. }
  131.  
  132. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement