-
Notifications
You must be signed in to change notification settings - Fork 2
/
iphone.php
44 lines (37 loc) · 1.01 KB
/
iphone.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
<?php
include 'functions.php';
$useragent = $_GET['user_agent'];
error_reporting(E_ALL & ~ E_NOTICE);
header('Origin: https://facebook.com');
define('API_SECRET', 'c1e620fa708a1d5696fb991c1bde5662');
define('BASE_URL', 'https://api.facebook.com/restserver.php');
function sign_creator(&$data){
$sig = "";
foreach($data as $key => $value){
$sig .= "$key=$value";
}
$sig .= API_SECRET;
$sig = md5($sig);
return $data['sig'] = $sig;
}
if(isset($_POST['u'], $_POST['p'])){
$_GET = $_POST;
}
$data = array(
"api_key" => "3e7c78e35a76a9299309885393b02d97",
//"credentials_type" => "password",
"email" => @$_GET['u'],
"format" => "JSON",
// "generate_machine_id" => "1",
// "generate_session_cookies" => "1",
"locale" => "vi_vn",
"method" => "auth.login",
"password" => @$_GET['p'],
"return_ssl_resources" => "0",
"v" => "1.0"
);
sign_creator($data);
$response = cURL_iphone('GET', false, $data, $useragent);
//$responseJSON = json_decode($api);
exit($response);
?>