Home   >>   Scripts   >>   Bash Script For Port Scanning
Bash Script For Port Scanning PDF Print E-mail
( 0 Votes )
How To - Scripts
Written by Christian Foronda   
Monday, 06 September 2010 19:19

Create script:

	# vi scanport.sh
	#!/bin/bash
	echo "Scanning TCP ports..."
	for p in {1..1023}
	do
	  (echo >/dev/tcp/localhost/$p) >/dev/null 2>&1 && echo "$p open"
	done
	# chmod +x scanport.sh



blog comments powered by Disqus
Last Updated on Wednesday, 17 November 2010 10:37