Advertisement
shadowc0de

hm

Jan 19th, 2017
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.46 KB | None | 0 0
  1. <?php
  2.  
  3. $DosyaAdi="aa_c2c2.txt";
  4.  
  5. $username=rastgele(8);
  6. $password="crazyblade";
  7. $email=$username."@gmail.com";
  8.  
  9. $uuid=generateUUID(true);
  10. $data = array(
  11. 'email' => $email,
  12. 'username' => $username,
  13. 'password' => "crazyblade",
  14. "first_name"=> "Red Phoenix222",
  15. 'device_id' => "android-".$uuid,
  16. 'guid' => $uuid
  17. );
  18. $veri=generateSignature(json_encode($data));
  19.  
  20. $header=array("Content-Type:application/json");
  21. $isi = VeriGonder("https://i.instagram.com/api/v1/accounts/create/", $veri,$DosyaAdi,$Tarayici,$header,$prox);
  22. echo $isi;
  23. function rastgele($uzunluk){
  24. $a="ABCDEFGHIJKLMNOPRSTUVYZXabcdefghijklmnoprstuvyzx0123456789";
  25. $b="";
  26. for($i=0;$i<$uzunluk;$i++){
  27. $b.=$a[rand(0,56)];
  28. }
  29. return $b;
  30. }
  31.  
  32. function VeriGonder($VeriYolu,$Veri,$CookieDosyasi = 'Cookie.txt',$Tarayici = false,$header){
  33.  
  34. if(!$Tarayici)
  35. $Tarayici = 'Instagram 7.13.1 Android (23/6.0.1; 515dpi; 1440x2416; huawei/google; Nexus 6P; angler; angler; en_US)';
  36.  
  37. $Curl = curl_init();
  38. curl_setopt($Curl ,CURLOPT_URL, $VeriYolu);
  39. curl_setopt($Curl, CURLOPT_RETURNTRANSFER, true);
  40. curl_setopt($Curl, CURLOPT_FOLLOWLOCATION, true);
  41. curl_setopt($Curl, CURLOPT_VERBOSE, false);
  42. if(isset($header))
  43. @curl_setopt($Curl, CURLOPT_HTTPHEADER, $header);
  44. curl_setopt($Curl ,CURLOPT_USERAGENT, $Tarayici);
  45. curl_setopt($Curl ,CURLOPT_COOKIEJAR, $CookieDosyasi);
  46. curl_setopt($Curl ,CURLOPT_COOKIEFILE, $CookieDosyasi);
  47. curl_setopt($Curl ,CURLOPT_POST, 1);
  48. curl_setopt($Curl ,CURLOPT_POSTFIELDS, $Veri);
  49. curl_setopt($Curl ,CURLOPT_REFERER ,'https://i.instagram.com');
  50.  
  51. /*curl_setopt($Curl ,CURLOPT_TIMEOUT, 2500);*/
  52. curl_setopt($Curl ,CURLOPT_SSL_VERIFYPEER, false);
  53. $Sonuc = curl_exec($Curl);
  54. curl_close($Curl);
  55. return $Sonuc;
  56. }
  57. function generateUUID($type)
  58. {
  59. $uuid = sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x',
  60. mt_rand(0, 0xffff), mt_rand(0, 0xffff),
  61. mt_rand(0, 0xffff),
  62. mt_rand(0, 0x0fff) | 0x4000,
  63. mt_rand(0, 0x3fff) | 0x8000,
  64. mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff)
  65. );
  66.  
  67. return $type ? $uuid : str_replace('-', '', $uuid);
  68. }
  69. function generateSignature($data)
  70. {
  71. $IG_SIG_KEY = '8b46309eb680f272cc770d214b7dbe5f0c5d26b6cb82b0b740257360b43618f0';
  72. $SIG_KEY_VERSION = '4';
  73. $hash = hash_hmac('sha256', $data, $IG_SIG_KEY);
  74.  
  75. return 'ig_sig_key_version=' . $SIG_KEY_VERSION .'&signed_body=' . $hash . '.' . urlencode($data);
  76. }
  77.  
  78. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement