netdiscover-docker/run.sh

17 lines
328 B
Bash
Raw Normal View History

2021-05-29 16:18:29 +00:00
#!/bin/bash
if [[ -z "$port" ]];then
port=8080
fi
if [[ -n "$userpass" ]];then
creds="-c "$userpass""
fi
if [[ -z "$title" ]];then
title=netdiscover-docker
fi
2021-05-31 09:55:54 +00:00
if [[ "$passive" == "true" ]];then
passivearg="-p"
fi
2021-05-29 18:26:21 +00:00
2021-05-31 09:55:54 +00:00
./gotty -p "$port" $creds --title-format "$title" tmux new-session -A -s netdiscover netdiscover $passivearg