3v4l.org

run code in 300+ PHP versions simultaneously
<?php //echo date("H"); //echo date("i"); /* ESPERO QUE ESTE PROBLEMA ME CUENTE EL DOBLE, PORQUE MI MAQUINA CUENTA CON UN IVI BRIDGE QUE UTILIZA GENERACION POR HARDWARE, Y CASI ME VUELVO LOCO PARA DESHABILITARLA Y QUE FUNCIONARA CORRECTAMENTE */ //Evitamos que muestre los Warnings error_reporting(E_ERROR | E_PARSE); //echo $http_response_header[5]; // echo $hora." "; // echo $minuto." "; // echo date("H")." "; // echo date("i")." "; //$server = 'http://127.0.0.1/probe.php'; $server = 'http://random.contest.tuenti.net/'; //$contents = file_get_contents('http://random.contest.tuenti.net/?password=2036317783'); $contents = file_get_contents($server.'?password=2036317783&input=326b5d287a'); //var_dump($http_response_header); for ($ppid = 1; $ppid <= 100; $ppid++){ $pos = strpos($contents, "wrong!"); if ($pos !== false){ //$pos2 = strpos( //echo $http_response_header[1]; //Buscamos el header en que se encuentra 'Date' $nHeaders = count($http_response_header); for ($i = 0; $i <= $nHeaders; $i++){ if(strpos($http_response_header[$i], "Date") !== false){ //echo $i." "; break; } //echo $http_response_header[$i]." "; } //echo $i." "; $hora = substr($http_response_header[$i], 23, -10); $minuto = substr($http_response_header[$i], 26, -7); //echo $hora." ".$minuto; //echo mktime(date("H"),date("i"),0)." "; //echo mktime($hora, $minuto, 0)." "; srand(mktime($hora, $minuto, 0) * $ppid); $rand = rand(); echo $rand." "; $contents = file_get_contents($server.'?password='.$rand.'&input=326b5d287a'); //$contents = file_get_contents('http://random.contest.tuenti.net/?password='.$rand); }else{ echo "El ppid valido era ".($ppid-1)." fecha:".$hora." ".$minuto. "<br/>"; echo $contents; break; } } //echo $contents;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 80
Branch analysis from position: 80
2 jumps found. (Code = 44) Position 1 = 82, Position 2 = 11
Branch analysis from position: 82
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 69
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 22
Branch analysis from position: 33
1 jumps found. (Code = 42) Position 1 = 79
Branch analysis from position: 79
2 jumps found. (Code = 44) Position 1 = 82, Position 2 = 11
Branch analysis from position: 82
Branch analysis from position: 11
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 30
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 22
Branch analysis from position: 33
Branch analysis from position: 22
Branch analysis from position: 69
1 jumps found. (Code = 42) Position 1 = 82
Branch analysis from position: 82
filename:       /in/gZqvd
function name:  (null)
number of ops:  83
compiled vars:  !0 = $server, !1 = $contents, !2 = $ppid, !3 = $pos, !4 = $nHeaders, !5 = $http_response_header, !6 = $i, !7 = $hora, !8 = $minuto, !9 = $rand
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 5
          2        DO_ICALL                                                 
   23     3        ASSIGN                                                   !0, 'http%3A%2F%2Frandom.contest.tuenti.net%2F'
   26     4        INIT_FCALL                                               'file_get_contents'
          5        CONCAT                                           ~12     !0, '%3Fpassword%3D2036317783%26input%3D326b5d287a'
          6        SEND_VAL                                                 ~12
          7        DO_ICALL                                         $13     
          8        ASSIGN                                                   !1, $13
   30     9        ASSIGN                                                   !2, 1
         10      > JMP                                                      ->80
   33    11    >   INIT_FCALL                                               'strpos'
         12        SEND_VAR                                                 !1
         13        SEND_VAL                                                 'wrong%21'
         14        DO_ICALL                                         $16     
         15        ASSIGN                                                   !3, $16
   35    16        TYPE_CHECK                                  1018          !3
         17      > JMPZ                                                     ~18, ->69
   42    18    >   COUNT                                            ~19     !5
         19        ASSIGN                                                   !4, ~19
   43    20        ASSIGN                                                   !6, 0
         21      > JMP                                                      ->31
   44    22    >   INIT_FCALL                                               'strpos'
         23        FETCH_DIM_R                                      ~22     !5, !6
         24        SEND_VAL                                                 ~22
         25        SEND_VAL                                                 'Date'
         26        DO_ICALL                                         $23     
         27        TYPE_CHECK                                  1018          $23
         28      > JMPZ                                                     ~24, ->30
   46    29    > > JMP                                                      ->33
   43    30    >   PRE_INC                                                  !6
         31    >   IS_SMALLER_OR_EQUAL                                      !6, !4
         32      > JMPNZ                                                    ~26, ->22
   52    33    >   INIT_FCALL                                               'substr'
         34        FETCH_DIM_R                                      ~27     !5, !6
         35        SEND_VAL                                                 ~27
         36        SEND_VAL                                                 23
         37        SEND_VAL                                                 -10
         38        DO_ICALL                                         $28     
         39        ASSIGN                                                   !7, $28
   53    40        INIT_FCALL                                               'substr'
         41        FETCH_DIM_R                                      ~30     !5, !6
         42        SEND_VAL                                                 ~30
         43        SEND_VAL                                                 26
         44        SEND_VAL                                                 -7
         45        DO_ICALL                                         $31     
         46        ASSIGN                                                   !8, $31
   59    47        INIT_FCALL                                               'srand'
         48        INIT_FCALL                                               'mktime'
         49        SEND_VAR                                                 !7
         50        SEND_VAR                                                 !8
         51        SEND_VAL                                                 0
         52        DO_ICALL                                         $33     
         53        MUL                                              ~34     !2, $33
         54        SEND_VAL                                                 ~34
         55        DO_ICALL                                                 
   60    56        INIT_FCALL                                               'rand'
         57        DO_ICALL                                         $36     
         58        ASSIGN                                                   !9, $36
   62    59        CONCAT                                           ~38     !9, '+'
         60        ECHO                                                     ~38
   64    61        INIT_FCALL                                               'file_get_contents'
         62        CONCAT                                           ~39     !0, '%3Fpassword%3D'
         63        CONCAT                                           ~40     ~39, !9
         64        CONCAT                                           ~41     ~40, '%26input%3D326b5d287a'
         65        SEND_VAL                                                 ~41
         66        DO_ICALL                                         $42     
         67        ASSIGN                                                   !1, $42
         68      > JMP                                                      ->79
   68    69    >   SUB                                              ~44     !2, 1
         70        CONCAT                                           ~45     'El+ppid+valido+era+', ~44
         71        CONCAT                                           ~46     ~45, '+fecha%3A'
         72        CONCAT                                           ~47     ~46, !7
         73        CONCAT                                           ~48     ~47, '+'
         74        CONCAT                                           ~49     ~48, !8
         75        CONCAT                                           ~50     ~49, '%3Cbr%2F%3E'
         76        ECHO                                                     ~50
   69    77        ECHO                                                     !1
   70    78      > JMP                                                      ->82
   30    79    >   PRE_INC                                                  !2
         80    >   IS_SMALLER_OR_EQUAL                                      !2, 100
         81      > JMPNZ                                                    ~52, ->11
   74    82    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.3 ms | 1404 KiB | 27 Q