escaping

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultFolderPerm = 0755

Variables

This section is empty.

Functions

func AllDiskMount

func AllDiskMount() (error, []string)

print all device and mount them to random path under /tmp

func CapDacReadSearchExploit

func CapDacReadSearchExploit(target, ref string, chroot bool, cmd []string) error

func CheckDebugfs

func CheckDebugfs() bool

CheckDebugfs check if debugfs is installed

func CheckDockerRemoteAPI

func CheckDockerRemoteAPI(url string) bool

func CheckDockerSock

func CheckDockerSock(path string) error

APIs Ref https://github.com/AbsoZed/DockerPwn.py/blob/master/createContainer.py curl --unix-socket /var/run/docker.sock http://127.0.0.1/info

func CheckFdisk

func CheckFdisk()

add this to check if the container have device priv

func CheckPidInject

func CheckPidInject() bool

func ContainerdPwn

func ContainerdPwn(shellCmd string, rhost string, rport string) error

func DockerAPIPull

func DockerAPIPull(path string, image string) error

func DockerAPIRun

func DockerAPIRun(path string, cmd string) error

APIs Ref https://github.com/AbsoZed/DockerPwn.py/blob/master/createContainer.py curl --unix-socket /var/run/docker.sock http://127.0.0.1/info

func DockerRemoteAPIExploit

func DockerRemoteAPIExploit(api string, cmd string)

func DockerSockExploit

func DockerSockExploit(sock string, cmd string) bool

func EscapeCgroup

func EscapeCgroup(cmd string, subSystemName string) error

func ExploitLXCFS

func ExploitLXCFS() bool

func ExploitLXCFSCgroup

func ExploitLXCFSCgroup() bool

func FindDir

func FindDir(path string) string

FindDir will return the first dir's absolute path in the given path

func FindReleaseAgentSubSystem

func FindReleaseAgentSubSystem() string

func GetDockerAbsPath

func GetDockerAbsPath() string

func IsDir

func IsDir(path string) bool

IsDir return if the path is a dir

func MountToRandomTarget

func MountToRandomTarget(device string) (error, string)

func ProcfsExploit

func ProcfsExploit(procDir string, shellPayload string)

func UnprivUserNS

func UnprivUserNS(cmd string) error

Types

type CapDacReadSearch

type CapDacReadSearch struct{ base.BaseExploit }

plugin interface

func (CapDacReadSearch) Desc

func (p CapDacReadSearch) Desc() string

func (CapDacReadSearch) Run

func (p CapDacReadSearch) Run() bool

type DINDAttackDeployS

type DINDAttackDeployS struct{ base.BaseExploit }

plugin interface

func (DINDAttackDeployS) Desc

func (p DINDAttackDeployS) Desc() string

func (DINDAttackDeployS) Run

func (p DINDAttackDeployS) Run() bool

type DINDAttackS

type DINDAttackS struct{ base.BaseExploit }

plugin interface

func (DINDAttackS) Desc

func (p DINDAttackS) Desc() string

func (DINDAttackS) Run

func (p DINDAttackS) Run() bool

type DockerRemoteAPIS

type DockerRemoteAPIS struct{ base.BaseExploit }

plugin interface

func (DockerRemoteAPIS) Desc

func (p DockerRemoteAPIS) Desc() string

func (DockerRemoteAPIS) Run

func (p DockerRemoteAPIS) Run() bool

type ExploitCgroupS

type ExploitCgroupS struct{ base.BaseExploit }

plugin interface

func (ExploitCgroupS) Desc

func (p ExploitCgroupS) Desc() string

func (ExploitCgroupS) Run

func (p ExploitCgroupS) Run() bool

type ExploitUnprivUserNS

type ExploitUnprivUserNS struct{ base.BaseExploit }

func (ExploitUnprivUserNS) Desc

func (exp ExploitUnprivUserNS) Desc() string

func (ExploitUnprivUserNS) Run

func (exp ExploitUnprivUserNS) Run() bool

type PidInject

type PidInject struct{ base.BaseExploit }

plugin interface

func (PidInject) Desc

func (p PidInject) Desc() string

func (PidInject) Run

func (p PidInject) Run() bool

type VarLogEscape

type VarLogEscape struct{ base.BaseExploit }

func (VarLogEscape) Desc

func (p VarLogEscape) Desc() string

func (VarLogEscape) Run

func (p VarLogEscape) Run() bool

Jump to

Keyboard shortcuts

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