sparse/examples/Makefile.toml
Andrew Rioux a03b50ead4
fix: added a default route for MAC addresses
there were issues with MAC addresses not having a valid route when it
couldn't find the right route
2023-05-12 17:33:22 -04:00

19 lines
643 B
TOML

[tasks.examples-bindshell-run]
workspace = false
dependencies = ["build"]
script = '''
tmux new-session -d -s bindshell 'docker-compose up examples_bindshell_target'
tmux split-window -h 'docker-compose run examples_bindshell_client'
tmux -2 attach -t bindshell
'''
[tasks.examples-revshell-run]
workspace = false
dependencies = ["build"]
script = '''
tmux new-session -d -s revshell 'docker-compose up examples_revshell_server'
sleep 1
IP=$(docker-compose exec examples_revshell_server ip a show eth0 | awk '/inet/{print $2}' | awk -F'/' '{print $1}')
tmux split-window -h "target/debug/ex-revshell-beacon $IP"
tmux -2 attach -t revshell
'''