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
This commit is contained in:
Andrew Rioux
2023-05-12 17:33:22 -04:00
parent 5ab43a10fe
commit a03b50ead4
3 changed files with 50 additions and 14 deletions

View File

@@ -11,13 +11,9 @@ tmux -2 attach -t bindshell
workspace = false
dependencies = ["build"]
script = '''
set -eux
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}')
echo $IP
sleep 1
COMMAND="target/debug/ex-revshell-beacon $IP"
tmux split-window -h "$COMMAND"
tmux split-window -h "target/debug/ex-revshell-beacon $IP"
tmux -2 attach -t revshell
'''