View difference between Paste ID: WVpwHPeH and jJfuFz7q
SHOW: | | - or go back to the newest paste.
1
<?php
2
/*
3
* SCRIPT REFRESH ACCESS TOKEN 
4
* Works 25, Agustus 2016
5
* Token HTC Sense Dan Token Account Nokia
6
* Script By Danz Ze
7
* Modif By ENDO SULISTIO
8
* http://facebook.com/100002167444279
9
* Cukup Edit Bagian Email Dan Password !!
10
* Salam Facebooker :v
11
12
13
*/
14
15
16
class bot{
17
//private $dataLog;
18
function __construct(){
19
   $this->pass = 'PASSWORD';
20
   $this->email ='EMAIL';
21
    }
22
23
24
private function _req($url,$type=null,$fields=null){
25
   $opts = array(
26
            19913 => 1,
27
            10002 => $url,
28
            10018 => 'Opera/9.80 (Series 60; Opera Mini/6.5.27309/34.1445; U; en) Presto/2.8.119 Version/11.10',
29
            );
30
   $ch=curl_init();
31
   if($type){
32
       if($type == 1){
33
              $opts[10082] = 'coker_log';
34
              }
35
       if($type == 3){
36
              $opts[42] = 1;
37
             }
38
       $opts[10031] = 'coker_log';
39
    }
40
  if($fields){
41
      $opts[47] = true;
42
      $opts[10015] = $fields;
43
      }
44
   curl_setopt_array($ch,$opts);
45
   $result = curl_exec($ch);
46
   curl_close($ch);
47
   return $result;
48
  }
49
50
51
public function HtcToken(){
52
   $url = $this->getUrl('developers','tools/debug/accesstoken/',array(
53
             'app_id' => '41158896424',
54
             'refid' => '18',
55
          )
56
       );
57
   $getToken = $this->_req($url,3); 
58
   if(ereg('name="q" value="',$getToken)){
59
$accessToken= $this->cut($getToken,'name="q" value="','"');
60
       }
61
   if($accessToken){
62
       $this->saveFile('my_token_htc.txt',$accessToken);
63
       return'Token Htc True..: <input value="'.$accessToken.'">';
64
       }else{
65
       return false;
66
       }
67
 }
68
public function NokiaToken(){
69
     $url = $this->getUrl('developers','tools/debug/accesstoken/',array(
70
             'app_id' => '200758583311692',
71
             'refid' => '18',
72
          )
73
       );
74
   $getToken = $this->_req($url,3); 
75
   if(ereg('name="q" value="',$getToken)){
76
$accessToken= $this->cut($getToken,'name="q" value="','"');
77
       }
78
   if($accessToken){
79
       $this->saveFile('my_token_nokia.txt',$accessToken);
80
       return'Token Nokia True..: <input value="'.$accessToken.'">';
81
       }else{
82
       return false;
83
       }
84
 }
85
86
87
private function cut($content,$start,$end){
88
if($content && $start && $end) {
89
$r = explode($start, $content);
90
if (isset($r[1])){
91
$r = explode($end, $r[1]);
92
return $r[0];
93
}
94
return '';
95
}
96
}
97
private function saveFile($x,$y){
98
   $f = fopen($x,'w');
99
        fwrite($f,$y);
100
        fclose($f);
101
   }
102
private function getUrl($domain,$dir,$uri=null){
103
    if($uri){
104
         foreach($uri as $key =>$value){
105
             $parsing[] = $key . '=' . $value;
106
                }
107
             $parse = '?' . implode('&',$parsing);
108
                }
109
     return 'https://' . $domain . '.facebook.com/' . $dir . $parse; 
110
       }
111
112
113
public function login(){
114
  $login = array(
115
     'pass' => $this -> pass,
116
     'email' => $this -> email,
117
     'login'  => 'Login',
118
             );
119
  $this->_req($this->getUrl('m','login.php'),1,$login);
120
   }
121
122
}
123
124
$bot = new bot;
125
if($bot->HtcToken()){
126
    echo $bot->HtcToken();
127
    echo'<br>';
128
    echo $bot->NokiaToken();
129
    }else{
130
    $bot->login();
131
    }
132
133
?>