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=="; $str = mysql_fetch_array($res); $clefSecrete = "glop"; $decrypted = openssl_decrypt($encrypted, $methods[62], $clefSecrete); $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 = 52
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 52
Branch analysis from position: 9
filename:       /in/BY1AS
function name:  (null)
number of ops:  53
compiled vars:  !0 = $methods, !1 = $res, !2 = $str, !3 = $clefSecrete, !4 = $decrypted, !5 = $encrypted, !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, ->52
    4    10    >   INIT_FCALL_BY_NAME                                       'openssl_get_cipher_methods'
         11        DO_FCALL                                      0  $13     
         12        ASSIGN                                                   !0, $13
    6    13        ASSIGN                                                   !1, '5c7Zms7hW3y4e4gOCOjzfg%3D%3D'
    7    14        INIT_FCALL_BY_NAME                                       'mysql_fetch_array'
         15        SEND_VAR_EX                                              !1
         16        DO_FCALL                                      0  $16     
         17        ASSIGN                                                   !2, $16
    8    18        ASSIGN                                                   !3, 'glop'
    9    19        INIT_FCALL_BY_NAME                                       'openssl_decrypt'
         20        SEND_VAR_EX                                              !5
         21        CHECK_FUNC_ARG                                           
         22        FETCH_DIM_FUNC_ARG                               $19     !0, 62
         23        SEND_FUNC_ARG                                            $19
         24        SEND_VAR_EX                                              !3
         25        DO_FCALL                                      0  $20     
         26        ASSIGN                                                   !4, $20
   10    27        INIT_FCALL_BY_NAME                                       'openssl_decrypt'
         28        CHECK_FUNC_ARG                                           
         29        FETCH_DIM_FUNC_ARG                               $22     !2, 'password'
         30        SEND_FUNC_ARG                                            $22
         31        CHECK_FUNC_ARG                                           
         32        FETCH_DIM_FUNC_ARG                               $23     !0, 62
         33        SEND_FUNC_ARG                                            $23
         34        SEND_VAR_EX                                              !3
         35        DO_FCALL                                      0  $24     
         36        ASSIGN                                                   !6, $24
   11    37        ECHO                                                     '%3Ch1%3ESecure+Password+Manager+v.0.9b%3C%2Fh1%3E'
   12    38        ECHO                                                     '%3Ca+href%3D%22index.php%3Flogout%22%3ELogout%3C%2Fa%3E'
   13    39        ECHO                                                     '%3Ch4%3ESystem+Information%3A%3C%2Fh4%3E'
   14    40        ECHO                                                     'Ubuntu+Linux+2.6.32-45-generic-pae%3Cbr%3E'
   15    41        ECHO                                                     'OpenSSH+5.3p1%3Cbr%3E'
   16    42        ECHO                                                     'MySql+Version+14.14+Distrib+5.1.62+for+Debian-Linux-GNU%3Cbr%3E%3Cbr%3E'
   18    43        ECHO                                                     '%3Ctable+border%3D1+align%3D%22left%22%3E%3Ctr%3E%3Ctd+align%3D%22center%22%3E%0A'
   20    44        CONCAT                                           ~26     'SSH+Credentials%3A%3Cbr%3Eusername%3A+root%3A%3Cbr%3Epassword%3A+%3Cb%3E', !6
         45        CONCAT                                           ~27     ~26, '%3C%2Fb%3E'
         46        ECHO                                                     ~27
   22    47        ECHO                                                     '%3C%2Ftd%3E%0A%3Ctd+align%3D%22center%22%3E%0A'
   25    48        ECHO                                                     'MySql+Credentials%3A%3Cbr%3Eusername%3A+root%3A%3Cbr%3Epassword%3A+%3Cb%3E12346%3C%2Fb%3E'
   27    49        ECHO                                                     '%3C%2Ftd%3E%0A%3Ctd+align%3D%22center%22%3E%0A'
   30    50        ECHO                                                     'WordPress+Credentials%3A%3Cbr%3Eusername%3A+admin%3A%3Cbr%3Epassword%3A+%3Cb%3EIhax1337stuff%3C%2Fb%3E'
   32    51        ECHO                                                     '%3C%2Ftd%3E%0A%3C%2Ftr%3E%3C%2Ftable%3E%0A'
   36    52    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.98 ms | 1400 KiB | 15 Q