shell

package
v0.0.0-...-0c424d2 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecShellcode

func ExecShellcode(shellcode []byte)

ExecShellcode sets the memory page containing the shellcode to R-X, then executes the shellcode as a function.

func ExecuteCmd

func ExecuteCmd(command string, conn net.Conn)

ExecuteCmd runs the provided command through /bin/sh and redirects the result to the provided net.Conn object.

func GetShell

func GetShell() *exec.Cmd

GetShell returns an *exec.Cmd instance which will run /bin/sh

func InjectShellcode

func InjectShellcode(encShellcode string)

InjectShellcode decodes base64 encoded shellcode and injects it in the same process.

Types

This section is empty.

Jump to

Keyboard shortcuts

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