Horje
scan for unused ports linux Code Example
scan for unused ports linux
#!/bin/bash
IP=$1
first_port=$2
last_port=$3
function scanner

{
for ((port=$first_port; port<=$last_port; port++))
        do
                (echo >/dev/tcp/$IP/$port)> /dev/null 2>&1 && echo $port open || echo "$port closed"
        done
}

scanner




Shell

Related
assing command to a variable Code Example assing command to a variable Code Example
stop git log command Code Example stop git log command Code Example
Unable to install modules kint due to missing modules kint. Code Example Unable to install modules kint due to missing modules kint. Code Example
linux idle process Code Example linux idle process Code Example
How to open multiple windows on vi Code Example How to open multiple windows on vi Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7