3v4l.org

run code in 300+ PHP versions simultaneously
<?php ?><?php session_start(); if (isset($_SESSION['logged_in']) && $_SESSION['logged_in'] == true) { $methods = openssl_get_cipher_methods(); $res = "5c7Zms7hW3y4e4gOCOjzfg=="; $encrypted = "FdsfDFwfdfs23C4DSF32Fs0ozkbHI8mDIUxjEqT/oJCm32Ly2Rjs5vzU/Sg9do0X1tE7CC0pQZg9MiSHrZVdXlMuy6VclOhPdLU5pHRKaTu/"; $str = mysql_fetch_array($res); $clefSecrete = "glop"; $decrypted = openssl_decrypt($encrypted, $methods[62], "25c5850100451f12"); $bla = openssl_decrypt($str['password'], $methods[62], $clefSecrete); print "<h1>Secure Password Manager v.0.9b</h1>"; print '<a href="index.php?logout">Logout</a>'; print "<h4>System Information:</h4>"; print "Ubuntu Linux 2.6.32-45-generic-pae<br>"; print "OpenSSH 5.3p1<br>"; print "MySql Version 14.14 Distrib 5.1.62 for Debian-Linux-GNU<br><br>"; ?> <table border=1 align="left"><tr><td align="center"> <?php print "SSH Credentials:<br>username: root:<br>password: <b>" . $bla . "</b>"; ?> </td> <td align="center"> <?php print "MySql Credentials:<br>username: root:<br>password: <b>12346</b>"; ?> </td> <td align="center"> <?php print "WordPress Credentials:<br>username: admin:<br>password: <b>Ihax1337stuff</b>"; ?> </td> </tr></table> <?php } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 5, Position 2 = 9
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 53
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 53
Branch analysis from position: 9
filename:       /in/EsOJH
function name:  (null)
number of ops:  54
compiled vars:  !0 = $methods, !1 = $res, !2 = $encrypted, !3 = $str, !4 = $clefSecrete, !5 = $decrypted, !6 = $bla
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'session_start'
          1        DO_ICALL                                                 
    3     2        FETCH_IS                                         ~8      '_SESSION'
          3        ISSET_ISEMPTY_DIM_OBJ                         0  ~9      ~8, 'logged_in'
          4      > JMPZ_EX                                          ~9      ~9, ->9
          5    >   FETCH_R                      global              ~10     '_SESSION'
          6        FETCH_DIM_R                                      ~11     ~10, 'logged_in'
          7        BOOL                                             ~12     ~11
          8        BOOL                                             ~9      ~12
          9    > > JMPZ                                                     ~9, ->53
    4    10    >   INIT_FCALL_BY_NAME                                       'openssl_get_cipher_methods'
         11        DO_FCALL                                      0  $13     
         12        ASSIGN                                                   !0, $13
    5    13        ASSIGN                                                   !1, '5c7Zms7hW3y4e4gOCOjzfg%3D%3D'
    6    14        ASSIGN                                                   !2, 'FdsfDFwfdfs23C4DSF32Fs0ozkbHI8mDIUxjEqT%2FoJCm32Ly2Rjs5vzU%2FSg9do0X1tE7CC0pQZg9MiSHrZVdXlMuy6VclOhPdLU5pHRKaTu%2F'
    7    15        INIT_FCALL_BY_NAME                                       'mysql_fetch_array'
         16        SEND_VAR_EX                                              !1
         17        DO_FCALL                                      0  $17     
         18        ASSIGN                                                   !3, $17
    8    19        ASSIGN                                                   !4, 'glop'
    9    20        INIT_FCALL_BY_NAME                                       'openssl_decrypt'
         21        SEND_VAR_EX                                              !2
         22        CHECK_FUNC_ARG                                           
         23        FETCH_DIM_FUNC_ARG                               $20     !0, 62
         24        SEND_FUNC_ARG                                            $20
         25        SEND_VAL_EX                                              '25c5850100451f12'
         26        DO_FCALL                                      0  $21     
         27        ASSIGN                                                   !5, $21
   10    28        INIT_FCALL_BY_NAME                                       'openssl_decrypt'
         29        CHECK_FUNC_ARG                                           
         30        FETCH_DIM_FUNC_ARG                               $23     !3, 'password'
         31        SEND_FUNC_ARG                                            $23
         32        CHECK_FUNC_ARG                                           
         33        FETCH_DIM_FUNC_ARG                               $24     !0, 62
         34        SEND_FUNC_ARG                                            $24
         35        SEND_VAR_EX                                              !4
         36        DO_FCALL                                      0  $25     
         37        ASSIGN                                                   !6, $25
   11    38        ECHO                                                     '%3Ch1%3ESecure+Password+Manager+v.0.9b%3C%2Fh1%3E'
   12    39        ECHO                                                     '%3Ca+href%3D%22index.php%3Flogout%22%3ELogout%3C%2Fa%3E'
   13    40        ECHO                                                     '%3Ch4%3ESystem+Information%3A%3C%2Fh4%3E'
   14    41        ECHO                                                     'Ubuntu+Linux+2.6.32-45-generic-pae%3Cbr%3E'
   15    42        ECHO                                                     'OpenSSH+5.3p1%3Cbr%3E'
   16    43        ECHO                                                     'MySql+Version+14.14+Distrib+5.1.62+for+Debian-Linux-GNU%3Cbr%3E%3Cbr%3E'
   18    44        ECHO                                                     '%3Ctable+border%3D1+align%3D%22left%22%3E%3Ctr%3E%3Ctd+align%3D%22center%22%3E%0A'
   20    45        CONCAT                                           ~27     'SSH+Credentials%3A%3Cbr%3Eusername%3A+root%3A%3Cbr%3Epassword%3A+%3Cb%3E', !6
         46        CONCAT                                           ~28     ~27, '%3C%2Fb%3E'
         47        ECHO                                                     ~28
   22    48        ECHO                                                     '%3C%2Ftd%3E%0A%3Ctd+align%3D%22center%22%3E%0A'
   25    49        ECHO                                                     'MySql+Credentials%3A%3Cbr%3Eusername%3A+root%3A%3Cbr%3Epassword%3A+%3Cb%3E12346%3C%2Fb%3E'
   27    50        ECHO                                                     '%3C%2Ftd%3E%0A%3Ctd+align%3D%22center%22%3E%0A'
   30    51        ECHO                                                     'WordPress+Credentials%3A%3Cbr%3Eusername%3A+admin%3A%3Cbr%3Epassword%3A+%3Cb%3EIhax1337stuff%3C%2Fb%3E'
   32    52        ECHO                                                     '%3C%2Ftd%3E%0A%3C%2Ftr%3E%3C%2Ftable%3E%0A'
   36    53    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
282.25 ms | 1400 KiB | 16 Q