Skip to content

BornToBeRoot/PowerShell_IPv4PortScanner

main
Switch branches/tags
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Dec 30, 2015

PowerShell | IPv4 port scanner

Powerful asynchronus IPv4 port scanner for PowerShell.

Description

This powerful asynchronus IPv4 port scanner allows you to scan every port range you want (500 to 2600 would work). Only TCP ports are scanned.

The result will contain the port number, protocol, service name, description and the status.

Screenshot

To reach the best possible performance, this script uses a RunspacePool. As you can see in the following screenshot, the individual tasks are distributed across all cpu cores:

Screenshot

If you are looking for a module containing this script as function... you can find it here!

Maybe you're also interested in my asynchronus IPv4 Network Scanner.

Syntax

.\IPv4PortScan.ps1 [-ComputerName] <String> [[-StartPort] <Int32>] [[-EndPort] <Int32>] [[-Threads] <Int32>] [[-Force]] [<CommonParameters>]

Example

PS> .\IPv4PortScan.ps1 -ComputerName fritz.box -EndPort 500

Port Protocol ServiceName  ServiceDescription               Status
---- -------- -----------  ------------------               ------
  53 tcp      domain       Domain Name Server               open
  80 tcp      http         World Wide Web HTTP              open