mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-12-04 05:43:27 +01:00
crypto/windows and utils/injector were the last public packages, against the no-library-API rule, and utils/ named nothing. They move as one unit; only import paths and Makefile variables change, and the built payload is byte-identical.
16 lines
439 B
Go
16 lines
439 B
Go
//go:build windows && !abe_embed
|
|
|
|
package payload
|
|
|
|
import "fmt"
|
|
|
|
// Get returns an error in non-release builds so feature code that needs
|
|
// the payload fails fast with a clear message. Release builds (built
|
|
// with -tags abe_embed) replace this with the //go:embed'd binary.
|
|
func Get(arch string) ([]byte, error) {
|
|
return nil, fmt.Errorf(
|
|
"abe: payload not embedded in this build (rebuild with -tags abe_embed; arch=%s)",
|
|
arch,
|
|
)
|
|
}
|