docs: updated docs to use cargo make

This commit is contained in:
Andrew Rioux
2023-05-09 21:26:29 -04:00
parent f1e5b2d979
commit 57cd4aa2be
4 changed files with 25 additions and 20 deletions

View File

@@ -2,15 +2,12 @@
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.
* Setup
** libpcap
Follow the directions in the main README in order to pull in the libpcap dependency
** Generate keys
In order to build the example backdoor/client, generate public and private keys by going into ~/workspaces/sparse/examples/bind-shell/key-generator~ and run ~cargo run~
** Build the code
Once the previous steps are completed, run ~cargo build --release~ in a terminal.
* Running the code
First, open two shells. In one, run ~docker-compose up examples_bindshell_target~, and in the other run ~docker-compose run examples_bindshell_client~. It will be possible to type in commands to examples_bindshell_client and run them in the target container
In a dev containers terminal, run:
#+BEGIN_SRC shell
cargo make examples-bindshell-run
#+END_SRC
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.