环境
win10
apache
php
thinkphp5
$vsh = EXTEND_PATH."silk-v3-decoder-master/converter.sh";
$re = is_executable($vsh);
$re2 = is_writable($vsh);
$re3 = is_readable($vsh);
dump($re);
dump($re2);
dump($re3);
结果为:$re为false,$re2为true,也就是说这个脚本文件是可读写的,但不可执行.
exec("whoami",$out,$re);
上面这段的结果为
array(1) {
[0] => string(19) "nt authoritysystem"
}
也就是说我的用户为nt authoritysystem。
现在的问题是怎样让我获得那个脚本的执行权限。