May 26, 2023 06:52 PM
(This post was last modified: May 26, 2023 06:56 PM by Smoky.)
Hi guys,
I'm currently working on Process Hollowing.
I use among others, NtCreateSection, NtMapViewOfSection, WriteProcessMemory and ResumeThread for this.
The code seems ok because I get a connection on my Meterpreter payload, so far, so good.
My problem occurs as soon as I try with a RAT, Loader or Miner instead of Metasploit, from then on, impossible to inject in the created process, I can see the exe launching in ProcessHacker but it fails systematically.
I think my problem comes either from the injected process, but I've tried with several user processes and it's always the same, it fails, or, what I think is more likely, from the shellcode.
To recover the shellcode, I push my binary into HexEditor(HxD) and import it into C, then recover the Hexadecimal values.
Is my way of retrieving the shellcode is ok, please?
Do you think it could be something other than shellcode?
I can post the code if needed
Thanks in advance ✌
I'm currently working on Process Hollowing.
I use among others, NtCreateSection, NtMapViewOfSection, WriteProcessMemory and ResumeThread for this.
The code seems ok because I get a connection on my Meterpreter payload, so far, so good.
My problem occurs as soon as I try with a RAT, Loader or Miner instead of Metasploit, from then on, impossible to inject in the created process, I can see the exe launching in ProcessHacker but it fails systematically.
I think my problem comes either from the injected process, but I've tried with several user processes and it's always the same, it fails, or, what I think is more likely, from the shellcode.
To recover the shellcode, I push my binary into HexEditor(HxD) and import it into C, then recover the Hexadecimal values.
Is my way of retrieving the shellcode is ok, please?
Do you think it could be something other than shellcode?
I can post the code if needed
Thanks in advance ✌

