You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 21, 2021. It is now read-only.
Thanks, @aconite33 for the suggestion.
- TripleDESCryptoServiceProvider is now used as the crypto algorithm
because it won't break the script when FIPS compliance is enabled in the
registry.
- I actually implemented the InitializationVector parameter
- Cleaned up the output script
- Cleaned up comment-based help
Encrypt the contents of this file with a password and salt. This will make analysis of the script impossible without the correct password and salt combination. This command will generate evil.ps1 that can dropped onto the victim machine. It only consists of a decryption function 'de' and the base64-encoded ciphertext.
43
+
Encrypt the contents of this file with a password and salt. This will
44
+
make analysis of the script impossible without the correct password
45
+
and salt combination. This command will generate evil.ps1 that can
46
+
dropped onto the victim machine. It only consists of a decryption
This series of instructions assumes you've already encrypted a script and named it evil.ps1. The contents are then decrypted and the unencrypted script is called via Invoke-Expression
58
+
This series of instructions assumes you've already encrypted a script
59
+
and named it evil.ps1. The contents are then decrypted and the
60
+
unencrypted script is called via Invoke-Expression
48
61
49
62
.NOTES
50
63
51
64
This command can be used to encrypt any text-based file/script
52
-
53
-
.LINK
54
-
55
-
http://www.exploit-monday.com
56
65
#>
57
66
58
67
[CmdletBinding()] Param (
@@ -69,22 +78,23 @@ http://www.exploit-monday.com
69
78
$Salt,
70
79
71
80
[Parameter(Position=3)]
81
+
[ValidateLength(16,16)]
72
82
[String]
73
-
$InitializationVector= (@( foreach ($iin1..16) { [Char](Get-Random-Min 0x41-Max 0x5B) } ) -join'' ),# Generate random 16 character IV
0 commit comments