我已经从软件包' winexe _4.13.0.1-1_amd64.deb‘安装了winexe(我从https://software.opensuse.org/download/package?package=winexe&project=home%3Auibmz%3Aopsi%3A4.1%3Aexperimental获得)
所以,我的winexe是:
$ winexe -V
winexe version 4.13winexe在从命令行调用时可以很好地执行,例如:
/usr/bin/winexe -U Administrador%xxxx //192.168.2.99 systeminfo我想从apache提供的php脚本执行winexe命令,因此我通过libapache2-mod-php8.0链接了php8.0.10和Apache2.4.1
出于这个原因,我有一个用system()和/或exec()和/或shell_exec()函数从上面执行命令的php脚本,我得到了错误,但当我从php脚本(使用system(),exec(),shell_exec())从网页(即,我连接到'https://...)运行相同的命令(添加了-d 5 --interactive=0选项)时,我得到了错误:
...
...
Bind RPC Pipe: host 192.168.2.99 auth_type 0, auth_level 1
rpc_api_pipe: host 192.168.2.99
rpc_read_send: data_to_read: 52
check_bind_response: accepted!
rpc_api_pipe: host 192.168.2.99
rpc_read_send: data_to_read: 32
rpc_api_pipe: host 192.168.2.99
rpc_read_send: data_to_read: 32
rpc_api_pipe: host 192.168.2.99
rpc_read_send: data_to_read: 40
rpc_api_pipe: host 192.168.2.99
rpc_read_send: data_to_read: 32
rpc_api_pipe: host 192.168.2.99
rpc_read_send: data_to_read: 32
samba_tevent: EPOLL_CTL_ADD failed (Operation not permitted) replay[0] - calling panic_fallback
main: cli_ctrl failed: NT_STATUS_CONNECTION_DISCONNECTED请注意。我已尝试准备“cat< /dev/null | /usr/bin/winexe ...”并且错误仍然存在
我们欢迎任何帮助,提前谢谢你,
G
发布于 2021-09-09 18:58:16
最后,我放弃了使用winexe,取而代之的是,我使用了来自impacket package的atexec.py,它工作起来非常棒
https://stackoverflow.com/questions/69092403
复制相似问题