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

Command Exec on Windows #139

Closed jm33-m0 closed 2 years ago

jm33-m0 commented 2 years ago

The goal is to achieve command exec without using any existing shells. Currently I use os/exec but it can't fully replace cmd.exe /C

jm33-m0 commented 2 years ago

This looks good enough, we can wait for a command to finish within 10s, if it exceeds 10s we kill it and return its output. If you are running a program that needs more time, append & to it.

image