jm33-m0 / emp3r0r

Linux/Windows post-exploitation framework made by linux user
https://infosec.exchange/@jm33
MIT License
1.26k stars 232 forks source link

Unable to use shell commands in Windows #157

Closed c0okB closed 1 year ago

c0okB commented 2 years ago

获取windows权限后,执行type命令查看文本信息,type命令无效

image
jm33-m0 commented 2 years ago

type是一个cmd shell的命令而不是内置程序(所以不存在type.exe),不像Linux环境中的cat,emp3r0r默认只能执行%PATH%中已有的程序。

如果shell窗口可用的话,建议使用shell窗口。

jm33-m0 commented 1 year ago

如有疑问可以继续留言,issue暂时关闭

jm33-m0 commented 1 year ago

Here's a solution if you can't use the shell window: cmd.exe /C 'type file.txt'

jm33-m0 commented 1 year ago

I used to implement cmd.exe /C in emp3r0r Windows version, but then I found it's unnecessary and quite alarming for anti-virus.