HavocFramework / Havoc

The Havoc Framework.
GNU General Public License v3.0
6.3k stars 905 forks source link

CreateProcess implementation #493

Open clspejd opened 1 week ago

clspejd commented 1 week ago

Contact Details

No response

What is the idea?

Let's say I want to execute some binary present on system. So I need to use "shell notepad" Which opens cmd.exe as parent process and then notepad as it's child process

Isn't CreateProcessA would be good for that. Like use "CreateProcess notepad" which simple use winapi to open the binayr specified ???

Or directly use NTCreateUserProcess. what u think ?

Is_it_already_in?

No (You checked and it doesn't.)

Relevant code samples

No response

Are-You-Trolling?

Cracked5pider commented 1 week ago

it does use CreateProcessW to execute the specified command tho the shell specifically is targeted to execute a cmd.exe command. I admit that I should have implemented and added a command similar to CS run to simply create process the specified executable.