Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $DosyaAdi="aa_c2c2.txt";
- $username=rastgele(8);
- $password="crazyblade";
- $email=$username."@gmail.com";
- $uuid=generateUUID(true);
- $data = array(
- 'email' => $email,
- 'username' => $username,
- 'password' => "crazyblade",
- "first_name"=> "Red Phoenix222",
- 'device_id' => "android-".$uuid,
- 'guid' => $uuid
- );
- $veri=generateSignature(json_encode($data));
- $header=array("Content-Type:application/json");
- $isi = VeriGonder("https://i.instagram.com/api/v1/accounts/create/", $veri,$DosyaAdi,$Tarayici,$header,$prox);
- echo $isi;
- function rastgele($uzunluk){
- $a="ABCDEFGHIJKLMNOPRSTUVYZXabcdefghijklmnoprstuvyzx0123456789";
- $b="";
- for($i=0;$i<$uzunluk;$i++){
- $b.=$a[rand(0,56)];
- }
- return $b;
- }
- function VeriGonder($VeriYolu,$Veri,$CookieDosyasi = 'Cookie.txt',$Tarayici = false,$header){
- if(!$Tarayici)
- $Tarayici = 'Instagram 7.13.1 Android (23/6.0.1; 515dpi; 1440x2416; huawei/google; Nexus 6P; angler; angler; en_US)';
- $Curl = curl_init();
- curl_setopt($Curl ,CURLOPT_URL, $VeriYolu);
- curl_setopt($Curl, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($Curl, CURLOPT_FOLLOWLOCATION, true);
- curl_setopt($Curl, CURLOPT_VERBOSE, false);
- if(isset($header))
- @curl_setopt($Curl, CURLOPT_HTTPHEADER, $header);
- curl_setopt($Curl ,CURLOPT_USERAGENT, $Tarayici);
- curl_setopt($Curl ,CURLOPT_COOKIEJAR, $CookieDosyasi);
- curl_setopt($Curl ,CURLOPT_COOKIEFILE, $CookieDosyasi);
- curl_setopt($Curl ,CURLOPT_POST, 1);
- curl_setopt($Curl ,CURLOPT_POSTFIELDS, $Veri);
- curl_setopt($Curl ,CURLOPT_REFERER ,'https://i.instagram.com');
- /*curl_setopt($Curl ,CURLOPT_TIMEOUT, 2500);*/
- curl_setopt($Curl ,CURLOPT_SSL_VERIFYPEER, false);
- $Sonuc = curl_exec($Curl);
- curl_close($Curl);
- return $Sonuc;
- }
- function generateUUID($type)
- {
- $uuid = sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x',
- mt_rand(0, 0xffff), mt_rand(0, 0xffff),
- mt_rand(0, 0xffff),
- mt_rand(0, 0x0fff) | 0x4000,
- mt_rand(0, 0x3fff) | 0x8000,
- mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff)
- );
- return $type ? $uuid : str_replace('-', '', $uuid);
- }
- function generateSignature($data)
- {
- $IG_SIG_KEY = '8b46309eb680f272cc770d214b7dbe5f0c5d26b6cb82b0b740257360b43618f0';
- $SIG_KEY_VERSION = '4';
- $hash = hash_hmac('sha256', $data, $IG_SIG_KEY);
- return 'ig_sig_key_version=' . $SIG_KEY_VERSION .'&signed_body=' . $hash . '.' . urlencode($data);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement