Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // ?start=0
- @session_start();
- @set_time_limit(0);
- @ignore_user_abort(TRUE);
- if(@ob_get_level() == 0)
- @ob_start();
- # Gerekli Dosyalar
- include "config.php";
- # POST
- $appID = 1;
- $saniye = 2;
- $accounts = file_get_contents('sifre.txt'); //file($_SERVER['DOCUMENT_ROOT'].'/admin/json/accs.txt');
- $accounts = addslashes(trim($accounts));
- $arrayx = explode("\n", $accounts);
- if ( $appID && $accounts )
- {
- $appDetay = DB::getRow("SELECT * FROM applications WHERE id = '$appID'");
- $_SESSION['appID'] = appID;
- DB::query("UPDATE applications SET uStatus = '0'");
- DB::query("UPDATE applications SET uStatus = '1' WHERE id = '$appID'");
- # İnstagram API
- $instagram = new Instagram(array(
- 'apiKey' => $appDetay->clientID,
- 'apiSecret' => $appDetay->clientSecret,
- 'apiCallback' => $appDetay->callbackURL
- ));
- # İnstagram Oauth
- $auth = new instaAuth;
- $auth->setCacheFolder("../../cookies/");
- $auth->setCacheExtension(".selco");
- $auth->setProxy(json_decode($siteAyarlari->proxy, TRUE));
- $auth->setAuthURL($instagram->getLoginUrl());
- $start = (!isset($_GET['start']) ? 0 : (int)$_GET['start']);
- $end = (!isset($_GET['start']) ? count($arrayx) : (int)$_GET['start'] + (250));
- echo "<font color='green'>başlandı $start - $end</font><br/>";
- ob_flush(); flush();
- $success = 0;
- for($i=$start;$i<$end;$i++) {
- try {
- $list = str_replace("\r", "", $arrayx[$i]);
- $parcala = explode(":", $list);
- $username = trim($parcala[0]);
- $password = trim($parcala[1]);
- if ( $username && $password ) {
- $login = $auth->_login($username, $password, TRUE);
- if ( $login->login == TRUE ) {
- # İnstagram Oauth 2
- $auth2 = new instaAuth;
- $auth2->setCacheFolder("../../api_cookies/");
- $auth2->setCacheExtension(".selco");
- $auth2->setProxy(json_decode($siteAyarlari->proxy, TRUE));
- $auth2->_authLogin($username, $password);
- $a = curl_get_file_contents($login->code);
- ob_flush(); flush();
- if ( stripos($a, "./home") !== FALSE ) {
- $userKontrol = DB::getVar("SELECT count(id) FROM members WHERE appID = '" . $appDetay->id . "' AND iUserName = '" . $login->data->username . "'");
- if ( $userKontrol > 0 ) {
- ( $login->data->gender == 'female' ) ? $genderID = 2 : $genderID = 1;
- DB::query("UPDATE members SET iPassword = '$password', iGender = '$genderID', iCookie = '1' WHERE appID = '" . $appDetay->id . "' AND iUserName = '" . $login->data->username . "'");
- echo "<font color='green'>$i - $username:$password - $success</font><br/>";
- ob_flush(); flush();
- $success++;
- if ( $success % 2 == 0 ) sleep($saniye);
- }
- }
- }
- } else {
- echo "<font color='red'>$i - boş veri - $success</font><br/>";
- ob_flush(); flush();
- }
- } catch (Exception $e ) {
- echo "<font color='red'>$i - {$e->getMessage()} - $success</font><br/>";
- ob_flush(); flush();
- }
- }
- DB::query("UPDATE applications SET uStatus = '0'");
- DB::query("UPDATE applications SET uStatus = '1' WHERE id = '{$_SESSION['appID']}'");
- echo '<font color="green">$İsteğiniz doğrultusunda <strong>' . count($arrayx) .'</strong> hesaptan <strong>' . $success . '</strong> adeti sisteminize eklenebilmiştir.</font>';
- ob_flush(); flush();
- if(isset($_GET['start'])) {
- echo '<script>document.location.href="ayiklayici.php?start='.$end.'";</script>
- <meta http-equiv="refresh" content="0;url=ayiklayici.php?start='.$end.'"/>';
- }
- } else {
- echo "<font color='red'>HATA</font>";
- ob_flush(); flush();
- }
- @ob_end_flush();
Advertisement
Add Comment
Please, Sign In to add comment