Repaired function definition for generate()
parent
4a95b0d6e3
commit
de03f902ec
|
@ -1,4 +1,5 @@
|
|||
from lib.common import helpers
|
||||
import pdb
|
||||
|
||||
class Module:
|
||||
|
||||
|
@ -64,7 +65,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
script = """
|
||||
f = open("/etc/passwd")
|
||||
|
|
|
@ -69,7 +69,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
logFile = self.options['LogFile']['Value']
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
script = """
|
||||
from __future__ import print_function
|
||||
|
|
|
@ -75,7 +75,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
sleep = self.options['Sleep']['Value']
|
||||
allUsers = self.options['AllUsers']['Value']
|
||||
|
|
|
@ -93,7 +93,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
savePath = self.options['SavePath']['Value']
|
||||
inMemory = self.options['InMemory']['Value']
|
||||
|
|
|
@ -69,7 +69,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
number = self.options['Number']['Value']
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
outFile = self.options['OutFile']['Value']
|
||||
monitorTime = self.options['MonitorTime']['Value']
|
||||
|
|
|
@ -66,7 +66,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
script = """
|
||||
import os
|
||||
|
|
|
@ -84,7 +84,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
count = self.options['Messages']['Value']
|
||||
script = "count = " + str(count) + '\n'
|
||||
if self.options['Debug']['Value']:
|
||||
|
|
|
@ -68,7 +68,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
script = """
|
||||
import subprocess
|
||||
|
|
|
@ -74,7 +74,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
keyChain = self.options['KeyChain']['Value']
|
||||
tempDir = self.options['TempDir']['Value']
|
||||
|
|
|
@ -82,7 +82,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
keyChain = self.options['KeyChain']['Value']
|
||||
password = self.options['Password']['Value']
|
||||
|
|
|
@ -69,7 +69,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
logFile = self.options['LogFile']['Value']
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
script = """
|
||||
try:
|
||||
|
|
|
@ -78,7 +78,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
sleep = self.options['Sleep']['Value']
|
||||
allUsers = self.options['AllUsers']['Value']
|
||||
|
|
|
@ -82,7 +82,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
listApps = self.options['ListApps']['Value']
|
||||
appName = self.options['AppName']['Value']
|
||||
|
|
|
@ -81,7 +81,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
exitCount = self.options['ExitCount']['Value']
|
||||
verbose = self.options['Verbose']['Value']
|
||||
|
|
|
@ -67,7 +67,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
savePath = self.options['SavePath']['Value']
|
||||
|
||||
|
|
|
@ -71,7 +71,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
searchTerm = self.options['SearchTerm']['Value']
|
||||
|
||||
|
|
|
@ -99,7 +99,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
script = '\n'
|
||||
for item in self.info['Imports']:
|
||||
script += "import %s \n" % item
|
||||
|
|
|
@ -69,7 +69,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
tempDir = self.options['TempDir']['Value']
|
||||
if not tempDir.endswith("/"):
|
||||
|
|
|
@ -72,7 +72,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
url = self.options['URL']['Value']
|
||||
payload = self.options['Payload']['Value']
|
||||
|
|
|
@ -79,7 +79,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
login = self.options['Login']['Value']
|
||||
password = self.options['Password']['Value']
|
||||
command = self.options['Command']['Value']
|
||||
|
|
|
@ -89,7 +89,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
login = self.options['Login']['Value']
|
||||
password = self.options['Password']['Value']
|
||||
listenerName = self.options['Listener']['Value']
|
||||
|
|
|
@ -80,7 +80,7 @@ class Module:
|
|||
self.options[option]['Value'] = value
|
||||
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
keytab = self.options['Keytab']['Value']
|
||||
principal = self.options['Principal']['Value']
|
||||
ntlmhash = self.options['Hash']['Value']
|
||||
|
|
|
@ -77,7 +77,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
module_path = os.path.join(self.mainMenu.installPath,
|
||||
'data/module_source/python/lateral_movement/socks_source.py')
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
# extract all of our options
|
||||
listenerName = self.options['Listener']['Value']
|
||||
|
|
|
@ -73,7 +73,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
filePath = self.options['Path']['Value']
|
||||
filePath += '/'
|
||||
|
|
|
@ -74,7 +74,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -79,7 +79,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
|
||||
processID = self.options['PID']['Value']
|
||||
|
|
|
@ -82,7 +82,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
Remove = self.options['Remove']['Value']
|
||||
Hourly = self.options['Hourly']['Value']
|
||||
Hour = self.options['Hour']['Value']
|
||||
|
|
|
@ -95,7 +95,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
# the Python script itself, with the command to invoke
|
||||
# for execution appended to the end. Scripts should output
|
||||
|
|
|
@ -76,7 +76,7 @@ class Module:
|
|||
self.options[option]['Value'] = value
|
||||
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
plistpath = self.options['PlistPath']['Value']
|
||||
programpath = self.options['ProgramPath']['Value']
|
||||
|
|
|
@ -88,7 +88,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
daemonName = self.options['DaemonName']['Value']
|
||||
programname = self.options['DaemonLocation']['Value']
|
||||
|
|
|
@ -72,7 +72,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
loginhookScriptPath = self.options['LoginHookScript']['Value']
|
||||
password = self.options['Password']['Value']
|
||||
|
|
|
@ -90,7 +90,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
ruleName = self.options['RuleName']['Value']
|
||||
trigger = self.options['Trigger']['Value']
|
||||
|
|
|
@ -64,7 +64,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
###############################################################################################################
|
||||
## [Title]: linuxprivchecker.py -- a Linux Privilege Escalation Check Script
|
||||
## [Author]: Mike Czumak (T_v3rn1x) -- @SecuritySift
|
||||
|
|
|
@ -84,7 +84,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
ip = self.options['Ip']['Value']
|
||||
port = self.options['Port']['Value']
|
||||
serveCount = self.options['ServeCount']['Value']
|
||||
|
|
|
@ -76,7 +76,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
# extract all of our options
|
||||
listenerName = self.options['Listener']['Value']
|
||||
|
|
|
@ -84,7 +84,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
# extract all of our options
|
||||
listenerName = self.options['Listener']['Value']
|
||||
|
|
|
@ -95,7 +95,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
# the Python script itself, with the command to invoke
|
||||
# for execution appended to the end. Scripts should output
|
||||
|
|
|
@ -79,7 +79,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
# extract all of our options
|
||||
listenerName = self.options['Listener']['Value']
|
||||
|
|
|
@ -71,7 +71,7 @@ class Module:
|
|||
self.options[option]['Value'] = value
|
||||
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
# the Python script itself, with the command to invoke
|
||||
# for execution appended to the end. Scripts should output
|
||||
|
|
|
@ -71,7 +71,7 @@ class Module:
|
|||
self.options[option]['Value'] = value
|
||||
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
# the Python script itself, with the command to invoke
|
||||
# for execution appended to the end. Scripts should output
|
||||
|
|
|
@ -76,7 +76,7 @@ class Module:
|
|||
self.options[option]['Value'] = value
|
||||
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
# the Python script itself, with the command to invoke
|
||||
# for execution appended to the end. Scripts should output
|
||||
|
|
|
@ -75,7 +75,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
script = ''
|
||||
if self.options['Debug']['Value']:
|
||||
debug = self.options['Debug']['Value']
|
||||
|
|
|
@ -68,7 +68,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
group = self.options['Group']['Value']
|
||||
# the Python script itself, with the command to invoke
|
||||
|
|
|
@ -68,7 +68,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
domain = self.options['Domain']['Value']
|
||||
# the Python script itself, with the command to invoke
|
||||
|
|
|
@ -68,7 +68,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
domain = self.options['Domain']['Value']
|
||||
# the Python script itself, with the command to invoke
|
||||
|
|
|
@ -80,7 +80,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
LDAPAddress = self.options['LDAPAddress']['Value']
|
||||
BindDN = self.options['BindDN']['Value']
|
||||
|
|
|
@ -80,7 +80,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
LDAPAddress = self.options['LDAPAddress']['Value']
|
||||
BindDN = self.options['BindDN']['Value']
|
||||
|
|
|
@ -80,7 +80,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
LDAPAddress = self.options['LDAPAddress']['Value']
|
||||
BindDN = self.options['BindDN']['Value']
|
||||
|
|
|
@ -86,7 +86,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
LDAPAddress = self.options['LDAPAddress']['Value']
|
||||
BindDN = self.options['BindDN']['Value']
|
||||
|
|
|
@ -86,7 +86,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
LDAPAddress = self.options['LDAPAddress']['Value']
|
||||
BindDN = self.options['BindDN']['Value']
|
||||
|
|
|
@ -80,7 +80,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
LDAPAddress = self.options['LDAPAddress']['Value']
|
||||
BindDN = self.options['BindDN']['Value']
|
||||
|
|
|
@ -80,7 +80,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
LDAPAddress = self.options['LDAPAddress']['Value']
|
||||
BindDN = self.options['BindDN']['Value']
|
||||
|
|
|
@ -86,7 +86,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
LDAPAddress = self.options['LDAPAddress']['Value']
|
||||
BindDN = self.options['BindDN']['Value']
|
||||
|
|
|
@ -80,7 +80,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
LDAPAddress = self.options['LDAPAddress']['Value']
|
||||
BindDN = self.options['BindDN']['Value']
|
||||
|
|
|
@ -118,7 +118,7 @@ class Module:
|
|||
self.options[option]['Value'] = value
|
||||
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
target = self.options['Target']['Value']
|
||||
port = self.options['Port']['Value']
|
||||
name = self.options['Name']['Value']
|
||||
|
|
|
@ -83,7 +83,7 @@ class Module:
|
|||
self.options[option]['Value'] = value
|
||||
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
target = self.options['Target']['Value']
|
||||
port = self.options['Port']['Value']
|
||||
name = self.options['Name']['Value']
|
||||
|
|
|
@ -82,7 +82,7 @@ class Module:
|
|||
self.options[option]['Value'] = value
|
||||
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
target = self.options['Target']['Value']
|
||||
port = self.options['Port']['Value']
|
||||
name = self.options['Name']['Value']
|
||||
|
|
|
@ -83,7 +83,7 @@ class Module:
|
|||
self.options[option]['Value'] = value
|
||||
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
target = self.options['Target']['Value']
|
||||
#port = self.options['Port']['Value']
|
||||
#print str("port: " + port)
|
||||
|
|
|
@ -112,7 +112,7 @@ class Module:
|
|||
self.options[option]['Value'] = value
|
||||
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
target = self.options['Target']['Value']
|
||||
port = self.options['Port']['Value']
|
||||
appId = self.options['ID']['Value']
|
||||
|
|
|
@ -82,7 +82,7 @@ class Module:
|
|||
self.options[option]['Value'] = value
|
||||
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
target = self.options['Target']['Value']
|
||||
port = self.options['Port']['Value']
|
||||
appId = self.options['ID']['Value']
|
||||
|
|
|
@ -83,7 +83,7 @@ class Module:
|
|||
self.options[option]['Value'] = value
|
||||
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
target = self.options['Target']['Value']
|
||||
port = self.options['Port']['Value']
|
||||
ssl = self.options['SSL']['Value']
|
||||
|
|
|
@ -70,7 +70,7 @@ class Module:
|
|||
self.options[option]['Value'] = value
|
||||
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
target = self.options['Target']['Value']
|
||||
|
||||
|
||||
|
|
|
@ -95,7 +95,7 @@ class Module:
|
|||
self.options[option]['Value'] = value
|
||||
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
protocol = self.options['Protocol']['Value']
|
||||
target = self.options['Target']['Value']
|
||||
port = self.options['Port']['Value']
|
||||
|
|
|
@ -77,7 +77,7 @@ class Module:
|
|||
self.options[option]['Value'] = value
|
||||
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
target = self.options['Target']['Value']
|
||||
port = self.options['Port']['Value']
|
||||
|
||||
|
|
|
@ -98,7 +98,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
domain = self.options['Domain']['Value']
|
||||
username = self.options['UserName']['Value']
|
||||
|
|
|
@ -81,7 +81,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
image = self.options['Image']['Value']
|
||||
desktop = self.options['Desktop']['Value']
|
||||
|
|
|
@ -74,7 +74,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
message = self.options['Message']['Value']
|
||||
remove = self.options['Remove']['Value']
|
||||
|
|
|
@ -72,7 +72,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
voice = self.options['Voice']['Value']
|
||||
text = self.options['Text']['Value']
|
||||
|
|
|
@ -62,7 +62,7 @@ class Module:
|
|||
if option in self.options:
|
||||
self.options[option]['Value'] = value
|
||||
|
||||
def generate(self):
|
||||
def generate(self, obfuscate=False, obfuscationCommand=""):
|
||||
|
||||
# the Python script itself, with the command to invoke
|
||||
# for execution appended to the end. Scripts should output
|
||||
|
|
Loading…
Reference in New Issue