Andrew Rioux bd31c6457d
feat: added a docker breakout feature
if the bind shell example is compiled with the right feature and is run
inside a(n) (im)properly configured Docker container, it is now able to
break out and run some commands on the host

for some reason, under this breakout mode, it runs a little weird with
networking commands, but does fine with file system or IPC based commands
2023-05-12 17:41:20 -04:00
..
2023-05-10 21:54:19 -04:00

Example bind shell proof of concept

This bind shell works through local host firewalls on Linux systems using UDP to receive messages, verify them against a public key, run the commands specified, and return the results and display it over the network.

Running the code

In a dev containers terminal, run:

cargo make examples-bindshell-run

This will build the code, generate the keys, create the environment, and run the service and the client in parallel. To verify the execution of the environment, try running iptables -nL and see that the firweall tries to block all packets.