mirror of
https://github.com/byReqz/conn.git
synced 2024-11-22 00:53:14 +00:00
prepare skeleton
This commit is contained in:
parent
cb324fe66c
commit
260bd37608
46
conn.sh
Executable file
46
conn.sh
Executable file
@ -0,0 +1,46 @@
|
||||
#!/bin/bash
|
||||
# license: gpl-3
|
||||
|
||||
show_help="conn: a quick and dirty server availability check
|
||||
|
||||
usage:
|
||||
"$0" <args> [IP(s)/hostname(s)]
|
||||
|
||||
arguments:
|
||||
-h / --help show help page (this)
|
||||
-6 / --force-ipv6 force ipv6 portscanning (also forces portscanning)
|
||||
-4 / --force-ipv4 force ipv4 portscanning (also forces portscanning)
|
||||
-y / --yes portscan without asking
|
||||
-n / --no dont portscan
|
||||
-w / --wait wait for active connection
|
||||
-u / --update update the script
|
||||
-f / --fast disable os check
|
||||
-s / --simple simplyfy output"
|
||||
|
||||
show_notfound="[error] argument not found
|
||||
|
||||
available arguments:
|
||||
-h / --help show help page (this)
|
||||
-6 / --force-ipv6 force ipv6 portscanning (also forces portscanning)
|
||||
-4 / --force-ipv4 force ipv4 portscanning (also forces portscanning)
|
||||
-y / --yes portscan without asking
|
||||
-n / --no dont portscan
|
||||
-w / --wait wait for active connection
|
||||
-u / --update update the script
|
||||
-f / --fast disable os check
|
||||
-s / --simple simplify output"
|
||||
|
||||
function prepare {
|
||||
true
|
||||
}
|
||||
|
||||
function main {
|
||||
true
|
||||
}
|
||||
|
||||
if [[ -n $1 ]];then
|
||||
prepare
|
||||
main
|
||||
else
|
||||
echo "$show_help"
|
||||
fi
|
Loading…
Reference in New Issue
Block a user