2023-05-06 22:42:29 -04:00

932 B

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.

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