3v4l.org

run code in 300+ PHP versions simultaneously
<?php # SET DATABASE VARIABLES $ROOT="/var/www/picardo/"; $DB_USER ="masscom"; $DB_PASSWORD="p1x1e1"; $DB_TYPE="mysql"; $DB_HOST="127.0.0.1"; $DBASE="lipsvc"; # Modified by nathan@webr3.org $port_open = shell_exec("netstat -tulpn | grep 3309"); // check if ssh tunnel is open if(!$port_open) { // if not open shell_exec("echo 'pixie1234' | sudo -S ssh -f -L 3309:127.0.0.1:3306 root@72.93.87.15 -p 8022 -N >> logfile"); // reopen ssh tunnel usleep(500000); // apply half second grace period to allow connection to be established } $STYLESHEET=$ROOT."/styles/style.css"; //transaction variables may be set here $apps= $_REQUEST[apps]; $acctid = $_REQUEST[acctid]; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 18
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/qBqFY
function name:  (null)
number of ops:  29
compiled vars:  !0 = $ROOT, !1 = $DB_USER, !2 = $DB_PASSWORD, !3 = $DB_TYPE, !4 = $DB_HOST, !5 = $DBASE, !6 = $port_open, !7 = $STYLESHEET, !8 = $apps, !9 = $acctid
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2Fvar%2Fwww%2Fpicardo%2F'
    4     1        ASSIGN                                                   !1, 'masscom'
    5     2        ASSIGN                                                   !2, 'p1x1e1'
    6     3        ASSIGN                                                   !3, 'mysql'
    7     4        ASSIGN                                                   !4, '127.0.0.1'
    8     5        ASSIGN                                                   !5, 'lipsvc'
   11     6        INIT_FCALL                                               'shell_exec'
          7        SEND_VAL                                                 'netstat+-tulpn+%7C+grep+3309'
          8        DO_ICALL                                         $16     
          9        ASSIGN                                                   !6, $16
   12    10        BOOL_NOT                                         ~18     !6
         11      > JMPZ                                                     ~18, ->18
   13    12    >   INIT_FCALL                                               'shell_exec'
         13        SEND_VAL                                                 'echo+%27pixie1234%27+%7C+sudo+-S+ssh+-f+-L+3309%3A127.0.0.1%3A3306+root%4072.93.87.15+-p+8022+-N+%3E%3E+logfile'
         14        DO_ICALL                                                 
   14    15        INIT_FCALL                                               'usleep'
         16        SEND_VAL                                                 500000
         17        DO_ICALL                                                 
   17    18    >   CONCAT                                           ~21     !0, '%2Fstyles%2Fstyle.css'
         19        ASSIGN                                                   !7, ~21
   19    20        FETCH_CONSTANT                                   ~24     'apps'
         21        FETCH_R                      global              ~23     '_REQUEST'
         22        FETCH_DIM_R                                      ~25     ~23, ~24
         23        ASSIGN                                                   !8, ~25
   20    24        FETCH_CONSTANT                                   ~28     'acctid'
         25        FETCH_R                      global              ~27     '_REQUEST'
         26        FETCH_DIM_R                                      ~29     ~27, ~28
         27        ASSIGN                                                   !9, ~29
   22    28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.8 ms | 1396 KiB | 17 Q