From 3272d45b7d14ef745197b9e220ecc3478f9ea835 Mon Sep 17 00:00:00 2001 From: rvrsh3ll Date: Sat, 10 Oct 2015 00:28:52 -0400 Subject: [PATCH] Added "NoPing" Switch --- Invoke-EgressAssess.ps1 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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") {