Advertisement
Guest User

32

a guest
Oct 4th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. <?php
  2. $fileh = @fopen('account.txt','r');
  3. $flag = 0;
  4. if($user_pass = fgets($fileh))
  5. {
  6. $arr = explode(', ',$user_pass);
  7. $username = $arr[0];
  8. $password = $arr[1];
  9. $url = "http://www.metin2.de/user/login";
  10. $agent= 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0';
  11. $post_fields = 'Benutzername='.$username.'&Passwort='.$password.'&login=Login';
  12. $reffer = "http://www.metin2.de";
  13. $ch = curl_init();
  14. curl_setopt($ch, CURLOPT_URL, $url);
  15. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  16. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  17. curl_setopt($ch, CURLOPT_VERBOSE, true);
  18. curl_setopt($ch, CURLOPT_REFERER, $reffer);
  19. curl_setopt($ch, CURLOPT_POST, 1);
  20. curl_setopt($ch, CURLOPT_POSTFIELDS, $post_fields);
  21. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  22. curl_setopt($ch, CURLOPT_USERAGENT, $agent);
  23. $result = curl_exec($ch);
  24. curl_close($ch);
  25. if(!strstr($result, 'error') && !strstr($result, 'wrong') && !strstr($result, 'invalid'))
  26. {
  27. $flag = 1;
  28. echo 'This is probably a valid combination : Username : '.$username.' Passrord : '.$password.'<br />';
  29. }
  30. }
  31. if($flag == 0)
  32. {
  33. echo 'No valid combinations found';
  34. }
  35. fclose($fileh);
  36. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement