diff --git a/Invoke-EgressAssess.ps1 b/Invoke-EgressAssess.ps1 index 6ce6e4e..77559eb 100644 --- a/Invoke-EgressAssess.ps1 +++ b/Invoke-EgressAssess.ps1 @@ -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") {