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