<?php
$fileh = @fopen('account.txt','r');
$flag = 0;
if($user_pass = fgets($fileh))
{
$arr = explode(', ',$user_pass);
$username = $arr[0];
$password = $arr[1];
$url = "http://www.metin2.de/user/login";
$agent= 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0';
$post_fields = 'Benutzername='.$username.'&Passwort='.$password.'&login=Login';
$reffer = "http://www.metin2.de";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_VERBOSE, true);
curl_setopt($ch, CURLOPT_REFERER, $reffer);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_fields);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
$result = curl_exec($ch);
curl_close($ch);
if(!strstr($result, 'error') && !strstr($result, 'wrong') && !strstr($result, 'invalid'))
{
$flag = 1;
echo 'This is probably a valid combination : Username : '.$username.' Passrord : '.$password.'<br />';
}
}
if($flag == 0)
{
echo 'No valid combinations found';
}
fclose($fileh);
?>