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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174 ms | 1400 KiB | 15 Q