2021-01-15 15:00:57 +00:00
|
|
|
# conn
|
|
|
|
quick and dirty server availability check <br>
|
2021-01-16 23:19:56 +00:00
|
|
|
### features: <br>
|
|
|
|
- multi-input detection
|
|
|
|
- ipv4 input detection
|
|
|
|
- ipv6 input detection
|
|
|
|
- waiting for availability
|
|
|
|
- send notification on availability
|
2021-01-15 15:00:57 +00:00
|
|
|
|
|
|
|
requires fping and nmap (and bash)
|
2021-01-16 01:43:39 +00:00
|
|
|
|
|
|
|
# usage
|
|
|
|
Usage: conn (options) [ip] <br>
|
|
|
|
Options: <br>
|
2021-01-16 17:09:15 +00:00
|
|
|
-m/--multi -- test multiple ips / disable portscan <br>
|
|
|
|
-h/--help -- show help <br>
|
|
|
|
-6/--force-ipv6 -- force ipv6 portscanning (also forces portscanning) <br>
|
2021-01-16 23:19:56 +00:00
|
|
|
-4/--force-ipv4 -- force ipv4 portscanning (also forces portscanning) <br>
|
2021-01-16 17:09:15 +00:00
|
|
|
-y/--yes -- portscan without asking <br>
|
|
|
|
-n/--no -- dont portscan <br>
|
|
|
|
-p/--portscan -- same as -y <br>
|
|
|
|
-w/--wait -- wait for active connection <br>
|
2021-01-17 16:15:15 +00:00
|
|
|
|
|
|
|
# installation
|
|
|
|
1. download the script: <br>
|
|
|
|
```bash
|
|
|
|
wget https://git.byreqz.de/byreqz/conn/raw/branch/main/conn.sh
|
|
|
|
```
|
|
|
|
2. run it with <br>
|
|
|
|
``
|
|
|
|
bash conn.sh
|
|
|
|
``
|
|
|
|
or <br>
|
|
|
|
``
|
|
|
|
chmod +x && ./conn.sh
|
|
|
|
``
|
|
|
|
3. optionally alias it <br>
|
|
|
|
``alias conn="~/conn.sh"``
|