shellcode

package module
v0.0.0-...-a8a90e7 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

README

shellcode

Shellcode library as a Go package.

go build github.com/Binject/shellcode

./shellcode -a arm -b 32 -o linux

2019/01/08 03:15:40 {Os:linux Arch:arm Bit:32 Name:reverse_tcp_shell Function:0x4a7720}

2019/01/08 03:15:40 {Os:linux Arch:arm Bit:32 Name:reverse_tcp_stager Function:0x4a7bd0}

2019/01/08 03:15:40 {Os:linux Arch:arm Bit:32 Name:user_shellcode Function:0x4a8080}

Read more about the project here:

https://www.symbolcrash.com/2019/02/23/introducing-symbol-crash/

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(src, dst string) (int64, error)

CopyFile - copies a file

func DirExists

func DirExists(dirname string) bool

DirExists - returns true iff a directory exists

func Generate

func Generate(os api.Os, arch api.Arch, name string, params api.Parameters) ([]byte, error)

Generate - makes a shellcode from a registered template module

func WalkMatch

func WalkMatch(root, pattern string) ([]string, error)

WalkMatch - returns all files matching a pattern recursively

Types

type Repo

type Repo struct {
	Directory string
}

Repo - Shellcode Repository, directory-backed

func NewRepo

func NewRepo(dirName string) *Repo

NewRepo - create a new Repo object, if dirName is provided, directory structure will be created if it doesn't exist

func (*Repo) Lookup

func (r *Repo) Lookup(os api.Os, arch api.Arch, pattern string) ([]byte, error)

Lookup - fetches a completed shellcode from the filesystem

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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