3v4l.org

run code in 300+ PHP versions simultaneously
<?php $methods = openssl_get_cipher_methods(); //mysql_connect("localhost", "root", "123456") or die(mysql_error()); //mysql_select_db('passman'); //$res = mysql_query('select password from passwd where user_name="root"'); //$str = mysql_fetch_array($res); $clefSecrete = "glop"; //$decrypted = openssl_decrypt($encrypted, $methods[62], $clefSecrete); foreach($methods as $m){ $bla = openssl_decrypt('5c7Zms7hW3y4e4gOCOjzfg==', $m, $clefSecrete); print "pass " . $bla; } 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>123456</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
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 15
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 15
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/3Jata
function name:  (null)
number of ops:  32
compiled vars:  !0 = $methods, !1 = $clefSecrete, !2 = $m, !3 = $bla
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'openssl_get_cipher_methods'
          1        DO_FCALL                                      0  $4      
          2        ASSIGN                                                   !0, $4
    7     3        ASSIGN                                                   !1, 'glop'
    9     4      > FE_RESET_R                                       $7      !0, ->15
          5    > > FE_FETCH_R                                               $7, !2, ->15
   10     6    >   INIT_FCALL_BY_NAME                                       'openssl_decrypt'
          7        SEND_VAL_EX                                              '5c7Zms7hW3y4e4gOCOjzfg%3D%3D'
          8        SEND_VAR_EX                                              !2
          9        SEND_VAR_EX                                              !1
         10        DO_FCALL                                      0  $8      
         11        ASSIGN                                                   !3, $8
   11    12        CONCAT                                           ~10     'pass+', !3
         13        ECHO                                                     ~10
    9    14      > JMP                                                      ->5
         15    >   FE_FREE                                                  $7
   13    16        ECHO                                                     '%3Ch1%3ESecure+Password+Manager+v.0.9b%3C%2Fh1%3E'
   14    17        ECHO                                                     '%3Ca+href%3D%22index.php%3Flogout%22%3ELogout%3C%2Fa%3E'
   15    18        ECHO                                                     '%3Ch4%3ESystem+Information%3A%3C%2Fh4%3E'
   16    19        ECHO                                                     'Ubuntu+Linux+2.6.32-45-generic-pae%3Cbr%3E'
   17    20        ECHO                                                     'OpenSSH+5.3p1%3Cbr%3E'
   18    21        ECHO                                                     'MySql+Version+14.14+Distrib+5.1.62+for+Debian-Linux-GNU%3Cbr%3E%3Cbr%3E'
   20    22        ECHO                                                     '%3Ctable+border%3D1+align%3D%22left%22%3E%3Ctr%3E%3Ctd+align%3D%22center%22%3E%0A'
   22    23        CONCAT                                           ~11     'SSH+Credentials%3A%3Cbr%3Eusername%3A+root%3A%3Cbr%3Epassword%3A+%3Cb%3E', !3
         24        CONCAT                                           ~12     ~11, '%3C%2Fb%3E'
         25        ECHO                                                     ~12
   24    26        ECHO                                                     '%0A%3C%2Ftd%3E%0A%3Ctd+align%3D%22center%22%3E%0A'
   28    27        ECHO                                                     'MySql+Credentials%3A%3Cbr%3Eusername%3A+root%3A%3Cbr%3Epassword%3A+%3Cb%3E123456%3C%2Fb%3E'
   30    28        ECHO                                                     '%3C%2Ftd%3E%0A%3Ctd+align%3D%22center%22%3E%0A'
   33    29        ECHO                                                     'WordPress+Credentials%3A%3Cbr%3Eusername%3A+admin%3A%3Cbr%3Epassword%3A+%3Cb%3EIhax1337stuff%3C%2Fb%3E'
   35    30        ECHO                                                     '%3C%2Ftd%3E%0A%3C%2Ftr%3E%3C%2Ftable%3E'
   36    31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.95 ms | 1012 KiB | 13 Q