useful

package
v0.0.0-...-493acbb Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2020 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MEM_COMMIT                = 0x1000
	MEM_RESERVE               = 0x2000
	PAGE_EXECUTE_READWRITE    = 0x40
	PROCESS_CREATE_THREAD     = 0x0002
	PROCESS_QUERY_INFORMATION = 0x0400
	PROCESS_VM_OPERATION      = 0x0008
	PROCESS_VM_WRITE          = 0x0020
	PROCESS_VM_READ           = 0x0010
)
View Source
const TH32CS_SNAPPROCESS = 0x00000002

Process Functions Needed to enum process to get pid of process we want to spoof

Variables

View Source
var (
	VirtualAllocEx      = kernel32.MustFindProc("VirtualAllocEx")
	WriteProcessMemory  = kernel32.MustFindProc("WriteProcessMemory")
	OpenProcess         = kernel32.MustFindProc("OpenProcess")
	WaitForSingleObject = kernel32.MustFindProc("WaitForSingleObject")
	CreateRemoteThread  = kernel32.MustFindProc("CreateRemoteThread")
	QueueUserAPC        = kernel32.MustFindProc("QueueUserAPC")
)

Functions

func Decrypt

func Decrypt(data []byte, passphrase string) []byte

func EBAPCQueue

func EBAPCQueue(R_Addr uintptr, victimHandle windows.Handle) error

EBAPCQueue spawns shellcode in a remote process using Early Bird APC Queue Code Injection

func Encrypt

func Encrypt(data []byte, passphrase string) []byte

func MoveFile

func MoveFile(source, destination string) (err error)

func ShellCodeCreateRemoteThread

func ShellCodeCreateRemoteThread(Proc uintptr, R_Addr uintptr, F int) error

ShellCodeCreateRemoteThread spawns shellcode in a remote process using CreateRemoteThread

func WriteShellcode

func WriteShellcode(PID int, Shellcode []byte) (uintptr, uintptr, int)

Types

type WindowsProcess

type WindowsProcess struct {
	ProcessID       int
	ParentProcessID int
	Exe             string
}

WindowsProcess is an implementation of Process for Windows.

func FindProcessByName

func FindProcessByName(processes []WindowsProcess, name string) *WindowsProcess

func Processes

func Processes() ([]WindowsProcess, error)

Jump to

Keyboard shortcuts

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