Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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
Comment

PREVIOUS NEXT
Code Example
Shell :: printing in capital letter linux 
Shell :: linux up command multiple level of directory 
Shell :: splunk error can not create trial 
Shell :: how to commit a file in git and never commit it again 
Shell :: thinderbird download linux mint 
Shell :: how to git stash with spesific file 
Shell :: you need to install the imagick extension to use this back end xampp 
Shell :: sigin failed for rsa github signing 
Shell :: online linux terminal for c programming 
Shell :: http get cli 
Shell :: store all terminal output in a file 
Shell :: find directories not contain specific file 
Shell :: reverse serach linux 
Shell :: permission denied while doing set-executionpolicy 
Shell :: no matches found: *.dmg 
Shell :: git ftp empty string is not a valid pathspec. please use . instead if you meant to match all paths 
Shell :: back4app cli tool install mac 
Shell :: diff between user variables and system variables 
Shell :: rhel 8 docker 19.03 
Shell :: linux audacity installieren 
Shell :: vscode hangs ubuntu 
Shell :: composer install repo from tar 
Shell :: how to generate a resolver in the cli 
Shell :: remove entry in iptables 
Shell :: docker-compose microservices 
Shell :: git clone with new name 
Shell :: scp send folder 
Shell :: bash scripting tutorial 
Shell :: grep regular expression repeat same character 
Shell :: how to teamviewer host debian 11 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =