Added "NoPing" Switch
parent
5bd5cb4657
commit
3272d45b7d
|
@ -30,6 +30,9 @@ function Invoke-EgressAssess
|
|||
.Parameter Password
|
||||
The password for the ftp server
|
||||
|
||||
.Parameter NoPing
|
||||
Disable the server ping check
|
||||
|
||||
.Parameter Datatype
|
||||
The string containing the data you want to generate and exfil
|
||||
May contain filepath to transfer file
|
||||
|
@ -65,6 +68,8 @@ function Invoke-EgressAssess
|
|||
[Parameter(Mandatory = $True, ValueFromPipeline = $True)]
|
||||
[string]$Datatype,
|
||||
[Parameter(Mandatory = $False)]
|
||||
[switch]$NoPing,
|
||||
[Parameter(Mandatory = $False)]
|
||||
[string]$Username,
|
||||
[Parameter(Mandatory = $False)]
|
||||
[string]$Password,
|
||||
|
@ -1044,7 +1049,9 @@ function Invoke-EgressAssess
|
|||
}
|
||||
process
|
||||
{
|
||||
Test-ServerConnection
|
||||
if (!$NoPing) {
|
||||
Test-ServerConnection
|
||||
}
|
||||
|
||||
if ($client -eq "http" -or $client -eq "https")
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue