????JFIF??x?x????'403WebShell
403Webshell
Server IP : 79.136.114.73  /  Your IP : 216.73.216.116
Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f
System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64
User : www-data ( 33)
PHP Version : 5.5.9-1ubuntu4.29
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/self/root/home/b8009/php-5.6.22/ext/pcre/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/home/b8009/php-5.6.22/ext/pcre/tests/004.phpt
--TEST--
abusing pcre
--FILE--
<?php

var_dump(preg_match_all('/((?:(?:unsigned|struct)\s+)?\w+)(?:\s*(\*+)\s+|\s+(\**))(\w+(?:\[\s*\w*\s*\])?)\s*(?:(=)[^,;]+)?((?:\s*,\s*\**\s*\w+(?:\[\s*\w*\s*\])?\s*(?:=[^,;]+)?)*)\s*;/S', 'unsigned int xpto = 124; short a, b;', $m, PREG_SET_ORDER));
var_dump($m);

var_dump(preg_match_all('/(?:\([^)]+\))?(&?)([\w>.()-]+(?:\[\w+\])?)\s*,?((?:\)*\s*=)?)/S', '&a, b, &c', $m, PREG_SET_ORDER));
var_dump($m);

var_dump(preg_match_all('/zend_parse_parameters(?:_ex\s*\([^,]+,[^,]+|\s*\([^,]+),\s*"([^"]*)"\s*,\s*([^{;]*)/S', 'zend_parse_parameters( 0, "addd|s/", a, b, &c);', $m, PREG_SET_ORDER | PREG_OFFSET_CAPTURE));
var_dump($m);

var_dump(preg_replace(array('@//.*@S', '@/\*.*\*/@SsUe'), array('', 'preg_replace("/[^\r\n]+/S", "", \'$0\')'), "hello\n//x \n/*\ns\n*/"));

var_dump(preg_split('/PHP_(?:NAMED_)?(?:FUNCTION|METHOD)\s*\((\w+(?:,\s*\w+)?)\)/S', "PHP_FUNCTION(s, preg_match)\n{\nlalala", -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_OFFSET_CAPTURE));
?>
--EXPECTF--
int(2)
array(2) {
  [0]=>
  array(7) {
    [0]=>
    string(24) "unsigned int xpto = 124;"
    [1]=>
    string(12) "unsigned int"
    [2]=>
    string(0) ""
    [3]=>
    string(0) ""
    [4]=>
    string(4) "xpto"
    [5]=>
    string(1) "="
    [6]=>
    string(0) ""
  }
  [1]=>
  array(7) {
    [0]=>
    string(11) "short a, b;"
    [1]=>
    string(5) "short"
    [2]=>
    string(0) ""
    [3]=>
    string(0) ""
    [4]=>
    string(1) "a"
    [5]=>
    string(0) ""
    [6]=>
    string(3) ", b"
  }
}
int(3)
array(3) {
  [0]=>
  array(4) {
    [0]=>
    string(3) "&a,"
    [1]=>
    string(1) "&"
    [2]=>
    string(1) "a"
    [3]=>
    string(0) ""
  }
  [1]=>
  array(4) {
    [0]=>
    string(2) "b,"
    [1]=>
    string(0) ""
    [2]=>
    string(1) "b"
    [3]=>
    string(0) ""
  }
  [2]=>
  array(4) {
    [0]=>
    string(2) "&c"
    [1]=>
    string(1) "&"
    [2]=>
    string(1) "c"
    [3]=>
    string(0) ""
  }
}
int(1)
array(1) {
  [0]=>
  array(3) {
    [0]=>
    array(2) {
      [0]=>
      string(46) "zend_parse_parameters( 0, "addd|s/", a, b, &c)"
      [1]=>
      int(0)
    }
    [1]=>
    array(2) {
      [0]=>
      string(7) "addd|s/"
      [1]=>
      int(27)
    }
    [2]=>
    array(2) {
      [0]=>
      string(9) "a, b, &c)"
      [1]=>
      int(37)
    }
  }
}

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in %s on line %d
string(9) "hello



"
array(3) {
  [0]=>
  array(2) {
    [0]=>
    string(0) ""
    [1]=>
    int(0)
  }
  [1]=>
  array(2) {
    [0]=>
    string(13) "s, preg_match"
    [1]=>
    int(13)
  }
  [2]=>
  array(2) {
    [0]=>
    string(9) "
{
lalala"
    [1]=>
    int(27)
  }
}

Youez - 2016 - github.com/yon3zu
LinuXploit