12 Commits

Author SHA1 Message Date
cobbr ce9eb555d0 Various TOKEN bug fixes, cross-platform compatibility, PS 6.0 compatible 2017-10-08 12:26:29 -07:00
Daniel Bohannon 63e694fa6a Fixed OutputType param bind error (thanks @cobbr!)
Fixed OutputType param bind error (thanks @cobbr!)
2017-03-13 08:00:56 -04:00
Daniel Bohannon e6b01edbb2 Variable and String token fix
Variable token fix: Some variables were being obfuscated without trimming out double quotes (i.e. ${"var`Name"} instead of ${varName})

String token fix: ParameterSetName strings (but not DefaultParameterSetName) string values now error when trying to concatenate or reorder even when encapsulated with curly braces. This fix downgrades these parameter binding scenarios with double quotes and tick markes, same as a member token obfuscation. This was causing errors when obfuscating, for example, Invoke-Mimikatz with any kind of STRING token obfuscation (Token\String\* or Token\All\1).
2017-02-12 15:31:28 -05:00
Daniel Bohannon cba7dd3ef7 Variable and String token fix
Variable token fix: Some variables were being obfuscated without trimming out double quotes (i.e. ${"var`Name"} instead of ${varName})

String token fix: ParameterSetName strings (but not DefaultParameterSetName) string values now error when trying to concatenate or reorder even when encapsulated with curly braces. This fix downgrades these parameter binding scenarios with double quotes and tick markes, same as a member token obfuscation. This was causing errors when obfuscating, for example, Invoke-Mimikatz with any kind of STRING token obfuscation (Token\String\* or Token\All\1).
2017-02-12 15:26:09 -05:00
Daniel Bohannon 3d9758bca1 v1.6 - Added CLI + Regex + Much More + Variable Fix
v1.6 - Added CLI + Regex + Much More + Variable Fix
2017-02-12 11:03:16 -05:00
Daniel Bohannon d419d0b4a0 v1.6 - Added CLI + Regex + Much More
v1.6 - Added CLI + Regex + Much More
2017-01-24 03:28:08 -05:00
Daniel Bohannon 599e268269 Fixed string obfuscation bug when $ or ` are present
Fixed string obfuscation bug when $ or ` are present  in strings encapsulated by double quotes. Also removed white space obfuscation from TOKEN/ALL/1 to dramatically reduce the time required to obfuscate large scripts.
2016-12-07 18:16:05 -05:00
Daniel Bohannon 33cf2fbbca v1.4 - Added BXOR encoding + shorthand -Win syntax
v1.4 - 2016-10-28 BruCON, Ghent: Added new BXOR ENCODING function. Also enhanced 
randomized case for all components of all ENCODING functions as well as for 
PowerShell execution flags for all LAUNCHERs. Finally, added -EP shorthand option 
for -ExecutionPolicy to all LAUNCHERs as well as the optional integer representation 
of the -WindowStyle PowerShell execution flag: Normal (0), Hidden (1), Minimized (2), 
Maximized (3).
2016-10-28 05:25:54 -04:00
Daniel Bohannon 27dbdd2d28 Added Type Token obfuscation 2016-10-19 13:23:18 -04:00
Daniel Bohannon 8a75ef8da8 Add files via upload
v1.1 Release: Introducing -f format operator for re-ordering obfuscation options for the following TOKEN level obfuscation functions: Command, (Command) Argument, String and Member. 

Detailed explanation with example and DFIR implications can be found at: http://www.danielbohannon.com/blog-1/2016/10/1/invoke-obfuscation-v11-release-sunday-oct-9
2016-10-08 18:03:06 -04:00
Daniel Bohannon 191a1f0178 Fixed Member obfuscation bug
Fixed Member obfuscation bug when type casting was present in the Member's arguments.
2016-09-28 21:39:11 -04:00
Daniel Bohannon 381b28b362 Add files via upload
Invoke-Obfuscation v1.0
2016-09-25 10:39:28 -04:00