-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathapi.php
More file actions
67 lines (58 loc) · 2.61 KB
/
api.php
File metadata and controls
67 lines (58 loc) · 2.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
class igfind{
public $username;
public function userchecker($le){
error_reporting(0);
$lsayisi = "-$le";
$my_rand_strng = substr(str_shuffle("abcdefghijklmopqrstuwxyz0123456789_0123456789"), $lsayisi);
$this->username = $my_rand_strng;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://www.instagram.com/accounts/web_create_ajax/attempt/');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "enc_password=#PWD_INSTAGRAM_BROWSER:0:".time().":4l_pickrala&email=sallamasuphibaba@gmail.com&username=$this->username&first_name=picya&client_id=YmhXBwAEAAEZmK-T3ZQC2AmE16gD&seamless_login_enabled=1&opt_into_one_tap=false");
curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$headers = array();
$headers[] = 'Authority: www.instagram.com';
$headers[] = 'Accept: */*';
$headers[] = 'Accept-Language: tr-TR,tr;q=0.9';
$headers[] = 'Content-Type: application/x-www-form-urlencoded';
$headers[] = 'Cookie: ig_did=79160B26-05A1-4775-93DD-46BBF2CCE1BB; ig_nrcb=1; csrftoken=XkYUFcX0rvkYslx8v3PfE42t8XfaoCV2; mid=YmhXBwAEAAEZmK-T3ZQC2AmE16gD';
$headers[] = 'Origin: https://www.instagram.com';
$headers[] = 'Referer: https://www.instagram.com/accounts/emailsignup/';
$headers[] = 'Sec-Ch-Ua: \" Not A;Brand\";v=\"99\", \"Chromium\";v=\"100\", \"Google Chrome\";v=\"100\"';
$headers[] = 'Sec-Ch-Ua-Mobile: ?1';
$headers[] = 'Sec-Ch-Ua-Platform: \"Android\"';
$headers[] = 'Sec-Fetch-Dest: empty';
$headers[] = 'Sec-Fetch-Mode: cors';
$headers[] = 'Sec-Fetch-Site: same-origin';
$headers[] = 'User-Agent: Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Mobile Safari/537.36';
$headers[] = 'X-Asbd-Id: 198387';
$headers[] = 'X-Csrftoken: XkYUFcX0rvkYslx8v3PfE42t8XfaoCV2';
$headers[] = 'X-Ig-App-Id: 936619743392459';
$headers[] = 'X-Ig-Www-Claim: 0';
$headers[] = 'X-Instagram-Ajax: 20e2a5e214f4';
$headers[] = 'X-Requested-With: XMLHttpRequest';
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($ch);
echo "DENENIYOR... $this->username <br/>";
$kahka = json_decode($result, true);
//print_r($result);
$code = $kahka['errors']['username']['0']['code'];
if($code){
echo $code;
}else{
$myfile = fopen("checker.txt", "a") or die("Dosya Olusturulmadı PHP Surumu ile alakalı olabilir!");
$txt = "$this->username\r\n";
fwrite($myfile, $txt);
fclose($myfile);
echo "$this->username bingoo";
}
//print_r($kahka);
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
}
curl_close($ch);
}
}