Skip to content

Commit 939a4fd

Browse files
committed
Output changed
1 parent feef599 commit 939a4fd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Scripts/ScanPortsAsync.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@ Begin{
8888

8989
# Some User-Output about the selected or default settings
9090
Write-Host "`nScript ($ScriptFileName) started at $StartTime" -ForegroundColor Green
91-
Write-Host "`n+---------------------------------------Settings----------------------------------------`n|"
91+
Write-Host "`n+=-=-=-=-=-=-=-=-=-=-=-= Settings =-=-=-=-=-=-=-=-=-=-=-=`n|"
9292
Write-Host "| IP-Address:`t$IPv4Address"
9393
Write-Host "| Port-Range:`t$StartPort-$EndPort"
94-
Write-Host "| Threads:`t`t$Threads"
95-
Write-Host "|`n+---------------------------------------------------------------------------------------`n"
94+
Write-Host "| Threads:`t$Threads"
95+
Write-Host "|`n+========================================================`n"
9696
}
9797

9898
Process{
@@ -183,10 +183,10 @@ End{
183183
$ExecutionTimeSeconds = (New-TimeSpan -Start $StartTime -End $EndTime).Seconds
184184

185185
# Some User-Output with Device UP/Down and execution time
186-
Write-Host "`n+----------------------------------------Result-----------------------------------------`n|"
186+
Write-Host "`n+=-=-=-=-=-=-=-=-=-=-=-= Result =-=-=-=-=-=-=-=-=-=-=-=`n|"
187187
Write-Host "| Ports Open:`t`t$(@($Results | Where-Object {($_.Status -eq "Open")}).Count)"
188188
Write-Host "| Ports Closed:`t$(@($Results | Where-Object {($_.Status -eq "Closed")}).Count)"
189-
Write-Host "|`n+---------------------------------------------------------------------------------------`n"
189+
Write-Host "|`n+========================================================`n"
190190
Write-Host "Script duration:`t$ExecutionTimeMinutes Minutes $ExecutionTimeSeconds Seconds`n" -ForegroundColor Yellow
191191
Write-Host "Script ($ScriptFileName) exit at $EndTime`n" -ForegroundColor Green
192192

0 commit comments

Comments
 (0)