File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed
Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change 1717
1818 This script also work fine along with my asychronus IP-Scanner published on GitHub too. You can easily
1919 pipe the output of the IP-Scanner result in this script.
20-
2120 If you found a bug or have some ideas to improve this script... Let me know. You find my Github profile in
2221 the links below.
23-
2422 . EXAMPLE
2523 .\ScanPortsAsync.ps1 -IPv4Address 172.16.0.1 -StartPort 1 -EndPort 1000
26-
2724 . EXAMPLE
2825 .\ScanPortsAsync.ps1 -IPv4Address 192.168.1.100 -IncludeClosed
29-
3026 . LINK
3127 Github Profil: https://github.com/BornToBeRoot
3228 Github Repository: https://github.com/BornToBeRoot/PowerShell-Async-PortScanner
@@ -75,14 +71,6 @@ Begin{
7571 # Validate Port-Range
7672 if ($StartPort -gt $EndPort )
7773 {
78- <<<<<<< HEAD
79- Write-Host " Check your input! Invalid Port-Range (-StartPort can't be lower than -EndPort)" - ForegroundColor Red
80- exit
81- }
82-
83- # Some User-Output about the selected or default settings
84-
85- =======
8674 Write-Host " Check your input! Invalid Port-Range... (-StartPort can't be lower than -EndPort)" - ForegroundColor Red
8775 exit
8876 }
@@ -102,7 +90,6 @@ Begin{
10290 Write-Host " | Port-Range:`t $StartPort -$EndPort "
10391 Write-Host " | Threads:`t`t $Threads "
10492 Write-Host " |`n +---------------------------------------------------------------------------------------`n "
105- >>>>>>> origin/ master
10693}
10794
10895Process {
202189
203190 # Return custom psobject with Port status
204191 if ($IncludeClosed ) { return $Results } else { return $Results | Where-Object {$_.Status -eq " Open" } }
205- }
192+ }
You can’t perform that action at this time.
0 commit comments