Skip to content

Commit bf8ea78

Browse files
committed
1 parent 28f5a6b commit bf8ea78

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Powerful asynchronus Port-Scanner which returns a custom PowerShell-Object with
66

77
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.
88

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.
9+
This script also work fine along with my [asychronus IP-Scanner](https://github.com/BornToBeRoot/PowerShell_Async-IPScanner) published on GitHub too. You can easily pipe the output of the IP-Scanner result in this script.
1010

1111
![Screenshot of Working Scanner and Result](https://github.com/BornToBeRoot/PowerShell_Async-PortScanner/blob/master/Images/Working_and_Result.png?raw=true)
1212

Scripts/ScanPortsAsync.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,10 @@ Process{
218218
foreach($Job in $Jobs)
219219
{
220220
$Jobs_Result += $Job.Pipe.EndInvoke($Job.Result)
221-
}
221+
$Job.Pipe.Dispose()
222+
}
223+
224+
$RunspacePool.Close()
222225

223226
# Only get open ports (others are closed -.- )
224227
$Ports_Open = $Jobs_Result | Where-Object {$_.Status -eq "open"}

0 commit comments

Comments
 (0)