mirror of
https://github.com/byReqz/netdiscover-docker.git
synced 2024-11-22 01:21:16 +00:00
17 lines
328 B
Bash
17 lines
328 B
Bash
#!/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
|
|
if [[ "$passive" == "true" ]];then
|
|
passivearg="-p"
|
|
fi
|
|
|
|
./gotty -p "$port" $creds --title-format "$title" tmux new-session -A -s netdiscover netdiscover $passivearg
|