Skip to content

Commit 1dba159

Browse files
committed
Script is in process 😄
1 parent 2db519f commit 1dba159

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

ScanPortsAsync.ps1

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
###############################################################################################################
2+
# Language : PowerShell 4.0
3+
# Script Name : ScanNetworkAsync.ps1
4+
# Autor : BornToBeRoot (https://github.com/BornToBeRoot)
5+
# Description : Asynchronus Port Scanner
6+
# Repository : https://github.com/BornToBeRoot/PowerShell-Async-PortScanner
7+
###############################################################################################################
8+
9+
<#
10+
.SYNOPSIS
11+
12+
.DESCRIPTION
13+
14+
.EXAMPLE
15+
16+
.LINK
17+
Github Profil: https://github.com/BornToBeRoot
18+
Github Repository: https://github.com/BornToBeRoot/PowerShell-Async-PortScanner
19+
#>
20+
21+
[CmdletBinding()]
22+
Param(
23+
[Parameter(
24+
Position=0,
25+
Mandatory=$true,
26+
HeldMessage='Enter IP-Address of the device which you want to scan')]
27+
[IPAddress]$IPv4Address,
28+
29+
[Parameter(
30+
Position=1,
31+
Mandatory=$false,
32+
HelpMessage='')]
33+
[Int32]$StartPort=1,
34+
35+
[Parameter(
36+
Position=2,
37+
Mandatory=$false,
38+
HelpMessage='Enter the Start Port')]
39+
[Int32]$EndPort=65535
40+
)
41+
42+
Begin{
43+
# Time when the script starts
44+
$StartTime = Get-Date
45+
46+
# Script FileName
47+
$ScriptFileName = $MyInvocation.MyCommand.Name
48+
49+
# Validate Port-Range
50+
if($StartPort -gt $EndPort)
51+
{
52+
53+
}
54+
55+
# Some User-Output about the selected or default settings
56+
57+
}
58+
59+
Process{
60+
61+
62+
}
63+
64+
65+
End{
66+
67+
68+
}

0 commit comments

Comments
 (0)