3v4l.org

run code in 300+ PHP versions simultaneously
<?php ?><?php $methods = openssl_get_cipher_methods(); $str = mysql_fetch_array("5c7Zms7hW3y4e4gOCOjzfg=="); $clefSecrete = "glop"; $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>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RM664
function name:  (null)
number of ops:  34
compiled vars:  !0 = $methods, !1 = $str, !2 = $clefSecrete, !3 = $bla
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'openssl_get_cipher_methods'
          1        DO_FCALL                                      0  $4      
          2        ASSIGN                                                   !0, $4
    5     3        INIT_FCALL_BY_NAME                                       'mysql_fetch_array'
          4        SEND_VAL_EX                                              '5c7Zms7hW3y4e4gOCOjzfg%3D%3D'
          5        DO_FCALL                                      0  $6      
          6        ASSIGN                                                   !1, $6
    6     7        ASSIGN                                                   !2, 'glop'
    8     8        INIT_FCALL_BY_NAME                                       'openssl_decrypt'
          9        CHECK_FUNC_ARG                                           
         10        FETCH_DIM_FUNC_ARG                               $9      !1, 'password'
         11        SEND_FUNC_ARG                                            $9
         12        CHECK_FUNC_ARG                                           
         13        FETCH_DIM_FUNC_ARG                               $10     !0, 62
         14        SEND_FUNC_ARG                                            $10
         15        SEND_VAR_EX                                              !2
         16        DO_FCALL                                      0  $11     
         17        ASSIGN                                                   !3, $11
    9    18        ECHO                                                     '%3Ch1%3ESecure+Password+Manager+v.0.9b%3C%2Fh1%3E'
   10    19        ECHO                                                     '%3Ca+href%3D%22index.php%3Flogout%22%3ELogout%3C%2Fa%3E'
   11    20        ECHO                                                     '%3Ch4%3ESystem+Information%3A%3C%2Fh4%3E'
   12    21        ECHO                                                     'Ubuntu+Linux+2.6.32-45-generic-pae%3Cbr%3E'
   13    22        ECHO                                                     'OpenSSH+5.3p1%3Cbr%3E'
   14    23        ECHO                                                     'MySql+Version+14.14+Distrib+5.1.62+for+Debian-Linux-GNU%3Cbr%3E%3Cbr%3E'
   16    24        ECHO                                                     '%3Ctable+border%3D1+align%3D%22left%22%3E%3Ctr%3E%3Ctd+align%3D%22center%22%3E%0A'
   18    25        CONCAT                                           ~13     'SSH+Credentials%3A%3Cbr%3Eusername%3A+root%3A%3Cbr%3Epassword%3A+%3Cb%3E', !3
         26        CONCAT                                           ~14     ~13, '%3C%2Fb%3E'
         27        ECHO                                                     ~14
   20    28        ECHO                                                     '%3C%2Ftd%3E%0A%3Ctd+align%3D%22center%22%3E%0A'
   23    29        ECHO                                                     'MySql+Credentials%3A%3Cbr%3Eusername%3A+root%3A%3Cbr%3Epassword%3A+%3Cb%3E12346%3C%2Fb%3E'
   25    30        ECHO                                                     '%3C%2Ftd%3E%0A%3Ctd+align%3D%22center%22%3E%0A'
   28    31        ECHO                                                     'WordPress+Credentials%3A%3Cbr%3Eusername%3A+admin%3A%3Cbr%3Epassword%3A+%3Cb%3EIhax1337stuff%3C%2Fb%3E'
   30    32        ECHO                                                     '%3C%2Ftd%3E%0A%3C%2Ftr%3E%3C%2Ftable%3E'
   31    33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.82 ms | 1395 KiB | 13 Q