cli

package
v1.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2024 License: GPL-3.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DJB2   apiHashTechnique = "DJB2"
	SHA1   apiHashTechnique = "SHA1"
	SHA256 apiHashTechnique = "SHA256"
	SHA512 apiHashTechnique = "SHA512"

	EncKindAES encKind = "AES"
	EncKindXOR encKind = "XOR"
	EncKindBLF encKind = "blowfish"
	EncKindC20 encKind = "chacha20"

	CRT               technique = "CRT"
	CRTx              technique = "CRTx"
	ETWP              technique = "Etwp"
	SYSCALL           technique = "Syscall"
	SYSCALLTEST       technique = "SyscallTest"
	NtCreateThreadEx  technique = "NtCreateThreadEx"
	CreateFiber       technique = "CreateFiber"
	CreateThread      technique = "CreateThread"
	ProcessHollowing  technique = "ProcessHollowing"
	EnumCalendarInfoA technique = "EnumCalendarInfoA"
)
View Source
const ASCII_ART = `` /* 1162-byte string literal not displayed */
View Source
const MYPH_TMP_DIR = "/tmp/myph-out"
View Source
const MYPH_TMP_WITH_PAYLOAD = "/tmp/myph-out/payload."

Variables

This section is empty.

Functions

func BuildLoader added in v1.2.0

func BuildLoader(opts *Options) *exec.Cmd

func GetParser

func GetParser(opts *Options) *cobra.Command

func RandBytes

func RandBytes(length int) []byte

Generate a random list of bytes

Types

type Options

type Options struct {

	// Shellcode encryption method
	Encryption encKind

	// Encryption key (if needed)
	Key string

	// Shellcode path
	ShellcodePath string

	// OutName path
	OutName string

	// os compilation target
	OS string

	// Arch compilation target
	Arch string

	// target process name to inject
	Target string

	// Shellcode loading method
	Technique string

	// Sleep time before running execution
	SleepTime uint

	// Registry-Persistence handler
	Persistence string

	// Goversion filepath
	VersionFilePath string

	// PE filepath
	PEFilePath string

	// Builds with debug symbol
	WithDebug bool

	// Use API-hashing
	UseAPIHashing bool

	// API hashing algorithm
	APIHashingType string

	// Build type
	BuildType string
}

func GetDefaultCLIOptions

func GetDefaultCLIOptions() Options

Get default value for Options struct

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL