You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Powerful asynchronus Port-Scanner which returns a custom PowerShell-Object with basic informations about the scanned Port-Range include Port and Status.
3
+
Powerful asynchronus Port-Scanner which returns a custom PowerShell-Object with basic informations about the scanned Port-Range include port number, protocol, service name, service description and status.
4
4
5
5
## Description
6
6
7
-
This is a powerful asynchronus Port-Scanner working with the PowerShell RunspacePool. You can scan any Port-Range you want.
7
+
This is a powerful asynchronus Port-Scanner working with the PowerShell RunspacePool. You can scan any Port-Range you want. The Result will show you all open ports port number, protocol, service name, service description and status.
8
8
9
9
This script also work fine along with my asychronus IP-Scanner published on GitHub too. You can easily pipe the output of the IP-Scanner result in this script.
You may want to update the official Service Name and Transport Protocol Port Number Registry from IANA... Just add the parameter "-UpdateListFromIANA".
and if no port list is available (should never happend, because it's uploaded on Github)
51
+
52
+
```powershell
53
+
Port Protocol Status
54
+
---- -------- ------
55
+
21 tcp open
56
+
53 tcp open
57
+
80 tcp open
58
+
139 tcp open
59
+
445 tcp open
40
60
```
41
-
61
+
62
+
## Offical Port List
63
+
64
+
*[Service Name and Transport Protocol Port Number Registry - IANA.org](https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xml)
65
+
42
66
## ToDo
43
-
- Integrate Port-List
44
-
like: 80 (http), 443 (https) ...
67
+
[x] Integrate Port-List like: 80 (http), 443 (https), etc.
HelpMessage='Enter the End-Port (Default=65535)')]
52
54
[Int32]$EndPort=65535,
53
55
54
56
[Parameter(
55
57
Position=3,
56
-
Mandatory=$false,
57
58
HelpMessage='Set the maximum number of threads at the same time (Default=100)')]
58
59
[Int32]$Threads=100,
59
60
60
61
[Parameter(
61
62
Position=4,
62
-
Mandatory=$false,
63
-
HelpMessage='Show closed Ports in result')]
64
-
[Switch]$IncludeClosed
63
+
HelpMessage='Update Service Name and Transport Protocol Port Number Registry from IANA.org (https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xml)')]
# Port list can be updated from IANA.org with the parameter "-UpdatePortList
91
+
if($UpdateListFromIANA)
92
+
{
93
+
try
94
+
{
95
+
Write-Host"Updating Service Name and Transport Protocol Port Number Registry from IANA...`t"-ForegroundColor Gray -NoNewline
96
+
97
+
[xml]$New_XML_PortList=Invoke-WebRequest-Uri $IANA_PortList_WebUri# Download latest xml-file from IANA
98
+
99
+
Remove-Item$XML_PortList_Path-Force -ErrorAction SilentlyContinue # Don`t show errors if there is no old file
100
+
101
+
$New_XML_PortList.Save($XML_PortList_Path) # Save xml-file
102
+
103
+
Write-Host"OK"-ForegroundColor Green
104
+
}
105
+
catch
106
+
{
107
+
$ErrorMsg=$_.Exception.Message
108
+
109
+
Write-Host"Update Service Name and Transport Protocol Port Number Registry from IANA failed with the follwing error message: $ErrorMsg"-ForegroundColor Red
Write-Host'No XML-File to assign service name with port number found! Use the parameter "-UpdateListFromIANA" to download the latest version from IANA.org. This warning doesn`t affect the scanning procedure.'-ForegroundColor Yellow
0 commit comments