mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-10-13 03:37:12 +02:00
* fix(windows): harden the ABE payload injection lifecycle The browser main thread is never resumed, so no window appears and the temp user-data-dir is unnecessary. Payload memory is RW then RX, with an explicit FlushInstructionCache before the remote thread executes it. * test(windows): use US spelling in offset test * fix(windows): validate bootstrap parameter encoding
53 lines
1.9 KiB
Go
53 lines
1.9 KiB
Go
//go:build ignore
|
|
|
|
// Code generation entry for scratch layout constants shared between the
|
|
// C payload and the Go injector. Regenerate with `make gen-layout`.
|
|
|
|
package bootstrap
|
|
|
|
/*
|
|
#include "../bootstrap_layout.h"
|
|
*/
|
|
import "C"
|
|
|
|
const (
|
|
MarkerOffset = C.BOOTSTRAP_MARKER_OFFSET
|
|
KeyStatusOffset = C.BOOTSTRAP_KEY_STATUS_OFFSET
|
|
KeyStatusReady = C.BOOTSTRAP_KEY_STATUS_READY
|
|
ExtractErrCodeOffset = C.BOOTSTRAP_EXTRACT_ERR_CODE_OFFSET
|
|
HResultOffset = C.BOOTSTRAP_HRESULT_OFFSET
|
|
ComErrOffset = C.BOOTSTRAP_COMERR_OFFSET
|
|
KeyOffset = C.BOOTSTRAP_KEY_OFFSET
|
|
KeyLen = C.BOOTSTRAP_KEY_LEN
|
|
|
|
ParamsSize = C.BOOTSTRAP_PARAMS_SIZE
|
|
ParamScratchBase = C.BOOTSTRAP_PARAM_SCRATCH_BASE
|
|
ParamLoadLibraryA = C.BOOTSTRAP_PARAM_LOAD_LIBRARY_A
|
|
ParamGetProcAddress = C.BOOTSTRAP_PARAM_GET_PROC_ADDRESS
|
|
ParamVirtualAlloc = C.BOOTSTRAP_PARAM_VIRTUAL_ALLOC
|
|
ParamVirtualProtect = C.BOOTSTRAP_PARAM_VIRTUAL_PROTECT
|
|
ParamNtFlushIC = C.BOOTSTRAP_PARAM_NT_FLUSH_IC
|
|
|
|
MarkMZFound = C.BOOTSTRAP_MARK_MZ_FOUND
|
|
MarkImportsOK = C.BOOTSTRAP_MARK_IMPORTS_OK
|
|
MarkAllocOK = C.BOOTSTRAP_MARK_ALLOC_OK
|
|
MarkCopied = C.BOOTSTRAP_MARK_COPIED
|
|
MarkRelocated = C.BOOTSTRAP_MARK_RELOCATED
|
|
MarkImportsFixed = C.BOOTSTRAP_MARK_IMPORTS_FIXED
|
|
MarkPermissions = C.BOOTSTRAP_MARK_PERMISSIONS
|
|
MarkCacheFlushed = C.BOOTSTRAP_MARK_CACHE_FLUSHED
|
|
MarkDone = C.BOOTSTRAP_MARK_DONE
|
|
MarkErrImports = C.BOOTSTRAP_MARK_ERR_IMPORTS
|
|
MarkErrAlloc = C.BOOTSTRAP_MARK_ERR_ALLOC
|
|
|
|
ErrOk = C.ABE_ERR_OK
|
|
ErrBasename = C.ABE_ERR_BASENAME
|
|
ErrBrowserUnknown = C.ABE_ERR_BROWSER_UNKNOWN
|
|
ErrEnvMissing = C.ABE_ERR_ENV_MISSING
|
|
ErrBase64 = C.ABE_ERR_BASE64
|
|
ErrBstrAlloc = C.ABE_ERR_BSTR_ALLOC
|
|
ErrComCreate = C.ABE_ERR_COM_CREATE
|
|
ErrDecryptData = C.ABE_ERR_DECRYPT_DATA
|
|
ErrKeyLen = C.ABE_ERR_KEY_LEN
|
|
)
|