From de03f902ec5129ae4ec3dfbc062e201c72584aae Mon Sep 17 00:00:00 2001 From: xorrior Date: Thu, 21 Sep 2017 22:59:08 -0400 Subject: [PATCH] Repaired function definition for generate() --- lib/modules/python/collection/linux/hashdump.py | 3 ++- lib/modules/python/collection/linux/keylogger.py | 2 +- lib/modules/python/collection/linux/mimipenguin.py | 2 +- lib/modules/python/collection/linux/pillage_user.py | 2 +- lib/modules/python/collection/linux/sniffer.py | 2 +- lib/modules/python/collection/osx/browser_dump.py | 2 +- lib/modules/python/collection/osx/clipboard.py | 2 +- lib/modules/python/collection/osx/hashdump.py | 2 +- lib/modules/python/collection/osx/imessage_dump.py | 2 +- lib/modules/python/collection/osx/kerberosdump.py | 2 +- lib/modules/python/collection/osx/keychaindump.py | 2 +- lib/modules/python/collection/osx/keychaindump_chainbreaker.py | 2 +- lib/modules/python/collection/osx/keylogger.py | 2 +- lib/modules/python/collection/osx/native_screenshot.py | 2 +- lib/modules/python/collection/osx/pillage_user.py | 2 +- lib/modules/python/collection/osx/prompt.py | 2 +- lib/modules/python/collection/osx/screensaver_alleyoop.py | 2 +- lib/modules/python/collection/osx/screenshot.py | 2 +- lib/modules/python/collection/osx/search_email.py | 2 +- lib/modules/python/collection/osx/sniffer.py | 2 +- lib/modules/python/collection/osx/webcam.py | 2 +- lib/modules/python/exploit/web/jboss_jmx.py | 2 +- lib/modules/python/lateral_movement/multi/ssh_command.py | 2 +- lib/modules/python/lateral_movement/multi/ssh_launcher.py | 2 +- lib/modules/python/management/multi/kerberos_inject.py | 2 +- lib/modules/python/management/multi/socks.py | 2 +- lib/modules/python/management/multi/spawn.py | 2 +- lib/modules/python/management/osx/ls.py | 2 +- lib/modules/python/management/osx/screen_sharing.py | 2 +- lib/modules/python/management/osx/shellcodeinject64.py | 2 +- lib/modules/python/persistence/multi/crontab.py | 2 +- lib/modules/python/persistence/osx/CreateHijacker.py | 2 +- lib/modules/python/persistence/osx/RemoveDaemon.py | 2 +- lib/modules/python/persistence/osx/launchdaemonexecutable.py | 2 +- lib/modules/python/persistence/osx/loginhook.py | 2 +- lib/modules/python/persistence/osx/mail.py | 2 +- lib/modules/python/privesc/linux/linux_priv_checker.py | 2 +- lib/modules/python/privesc/linux/unix_privesc_check.py | 2 +- lib/modules/python/privesc/multi/bashdoor.py | 2 +- lib/modules/python/privesc/multi/sudo_spawn.py | 2 +- lib/modules/python/privesc/osx/dyld_print_to_file.py | 2 +- lib/modules/python/privesc/osx/piggyback.py | 2 +- .../python/situational_awareness/host/multi/SuidGuidSearch.py | 2 +- .../host/multi/WorldWriteableFileSearch.py | 2 +- .../python/situational_awareness/host/osx/HijackScanner.py | 2 +- .../situational_awareness/host/osx/situational_awareness.py | 2 +- .../network/active_directory/dscl_get_groupmembers.py | 2 +- .../network/active_directory/dscl_get_groups.py | 2 +- .../network/active_directory/dscl_get_users.py | 2 +- .../network/active_directory/get_computers.py | 2 +- .../network/active_directory/get_domaincontrollers.py | 2 +- .../network/active_directory/get_fileservers.py | 2 +- .../network/active_directory/get_groupmembers.py | 2 +- .../network/active_directory/get_groupmemberships.py | 2 +- .../network/active_directory/get_groups.py | 2 +- .../situational_awareness/network/active_directory/get_ous.py | 2 +- .../network/active_directory/get_userinformation.py | 2 +- .../network/active_directory/get_users.py | 2 +- .../situational_awareness/network/dcos/chronos_api_add_job.py | 2 +- .../network/dcos/chronos_api_delete_job.py | 2 +- .../network/dcos/chronos_api_start_job.py | 2 +- .../python/situational_awareness/network/dcos/etcd_crawler.py | 2 +- .../network/dcos/marathon_api_create_start_app.py | 2 +- .../network/dcos/marathon_api_delete_app.py | 2 +- lib/modules/python/situational_awareness/network/find_fruit.py | 2 +- .../python/situational_awareness/network/gethostbyname.py | 2 +- .../python/situational_awareness/network/http_rest_api.py | 2 +- lib/modules/python/situational_awareness/network/port_scan.py | 2 +- lib/modules/python/situational_awareness/network/smb_mount.py | 2 +- lib/modules/python/trollsploit/osx/change_background.py | 2 +- lib/modules/python/trollsploit/osx/login_message.py | 2 +- lib/modules/python/trollsploit/osx/say.py | 2 +- lib/modules/python/trollsploit/osx/thunderstruck.py | 2 +- 73 files changed, 74 insertions(+), 73 deletions(-) diff --git a/lib/modules/python/collection/linux/hashdump.py b/lib/modules/python/collection/linux/hashdump.py index 549d60b..41dc35c 100644 --- a/lib/modules/python/collection/linux/hashdump.py +++ b/lib/modules/python/collection/linux/hashdump.py @@ -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") diff --git a/lib/modules/python/collection/linux/keylogger.py b/lib/modules/python/collection/linux/keylogger.py index 14e66c5..c5b334b 100644 --- a/lib/modules/python/collection/linux/keylogger.py +++ b/lib/modules/python/collection/linux/keylogger.py @@ -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'] diff --git a/lib/modules/python/collection/linux/mimipenguin.py b/lib/modules/python/collection/linux/mimipenguin.py index 1208840..0759bd3 100644 --- a/lib/modules/python/collection/linux/mimipenguin.py +++ b/lib/modules/python/collection/linux/mimipenguin.py @@ -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 diff --git a/lib/modules/python/collection/linux/pillage_user.py b/lib/modules/python/collection/linux/pillage_user.py index dcfe583..e0d5a68 100644 --- a/lib/modules/python/collection/linux/pillage_user.py +++ b/lib/modules/python/collection/linux/pillage_user.py @@ -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'] diff --git a/lib/modules/python/collection/linux/sniffer.py b/lib/modules/python/collection/linux/sniffer.py index 83700b9..4520fee 100644 --- a/lib/modules/python/collection/linux/sniffer.py +++ b/lib/modules/python/collection/linux/sniffer.py @@ -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'] diff --git a/lib/modules/python/collection/osx/browser_dump.py b/lib/modules/python/collection/osx/browser_dump.py index 69aa225..f0585b8 100644 --- a/lib/modules/python/collection/osx/browser_dump.py +++ b/lib/modules/python/collection/osx/browser_dump.py @@ -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'] diff --git a/lib/modules/python/collection/osx/clipboard.py b/lib/modules/python/collection/osx/clipboard.py index 720c7f7..01e4e3e 100644 --- a/lib/modules/python/collection/osx/clipboard.py +++ b/lib/modules/python/collection/osx/clipboard.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=""): outFile = self.options['OutFile']['Value'] monitorTime = self.options['MonitorTime']['Value'] diff --git a/lib/modules/python/collection/osx/hashdump.py b/lib/modules/python/collection/osx/hashdump.py index 90537ea..0f94f29 100644 --- a/lib/modules/python/collection/osx/hashdump.py +++ b/lib/modules/python/collection/osx/hashdump.py @@ -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 diff --git a/lib/modules/python/collection/osx/imessage_dump.py b/lib/modules/python/collection/osx/imessage_dump.py index 1f46337..a08abee 100644 --- a/lib/modules/python/collection/osx/imessage_dump.py +++ b/lib/modules/python/collection/osx/imessage_dump.py @@ -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']: diff --git a/lib/modules/python/collection/osx/kerberosdump.py b/lib/modules/python/collection/osx/kerberosdump.py index ba2f4cf..da1edaf 100644 --- a/lib/modules/python/collection/osx/kerberosdump.py +++ b/lib/modules/python/collection/osx/kerberosdump.py @@ -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 diff --git a/lib/modules/python/collection/osx/keychaindump.py b/lib/modules/python/collection/osx/keychaindump.py index 6c90232..370f01d 100644 --- a/lib/modules/python/collection/osx/keychaindump.py +++ b/lib/modules/python/collection/osx/keychaindump.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=""): keyChain = self.options['KeyChain']['Value'] tempDir = self.options['TempDir']['Value'] diff --git a/lib/modules/python/collection/osx/keychaindump_chainbreaker.py b/lib/modules/python/collection/osx/keychaindump_chainbreaker.py index 920e657..eef37ec 100644 --- a/lib/modules/python/collection/osx/keychaindump_chainbreaker.py +++ b/lib/modules/python/collection/osx/keychaindump_chainbreaker.py @@ -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'] diff --git a/lib/modules/python/collection/osx/keylogger.py b/lib/modules/python/collection/osx/keylogger.py index 215ab20..b0d84ac 100644 --- a/lib/modules/python/collection/osx/keylogger.py +++ b/lib/modules/python/collection/osx/keylogger.py @@ -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'] diff --git a/lib/modules/python/collection/osx/native_screenshot.py b/lib/modules/python/collection/osx/native_screenshot.py index ad3cf5f..aa81ae4 100644 --- a/lib/modules/python/collection/osx/native_screenshot.py +++ b/lib/modules/python/collection/osx/native_screenshot.py @@ -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: diff --git a/lib/modules/python/collection/osx/pillage_user.py b/lib/modules/python/collection/osx/pillage_user.py index f462c73..a2b0ee5 100644 --- a/lib/modules/python/collection/osx/pillage_user.py +++ b/lib/modules/python/collection/osx/pillage_user.py @@ -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'] diff --git a/lib/modules/python/collection/osx/prompt.py b/lib/modules/python/collection/osx/prompt.py index f657f7e..d4b4f61 100644 --- a/lib/modules/python/collection/osx/prompt.py +++ b/lib/modules/python/collection/osx/prompt.py @@ -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'] diff --git a/lib/modules/python/collection/osx/screensaver_alleyoop.py b/lib/modules/python/collection/osx/screensaver_alleyoop.py index 395059b..70947a9 100644 --- a/lib/modules/python/collection/osx/screensaver_alleyoop.py +++ b/lib/modules/python/collection/osx/screensaver_alleyoop.py @@ -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'] diff --git a/lib/modules/python/collection/osx/screenshot.py b/lib/modules/python/collection/osx/screenshot.py index e3ec6b5..fe20a00 100644 --- a/lib/modules/python/collection/osx/screenshot.py +++ b/lib/modules/python/collection/osx/screenshot.py @@ -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'] diff --git a/lib/modules/python/collection/osx/search_email.py b/lib/modules/python/collection/osx/search_email.py index 1b13c65..f11f9ed 100644 --- a/lib/modules/python/collection/osx/search_email.py +++ b/lib/modules/python/collection/osx/search_email.py @@ -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'] diff --git a/lib/modules/python/collection/osx/sniffer.py b/lib/modules/python/collection/osx/sniffer.py index 58d3ee7..9153c63 100644 --- a/lib/modules/python/collection/osx/sniffer.py +++ b/lib/modules/python/collection/osx/sniffer.py @@ -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 diff --git a/lib/modules/python/collection/osx/webcam.py b/lib/modules/python/collection/osx/webcam.py index a496d8e..62ad581 100644 --- a/lib/modules/python/collection/osx/webcam.py +++ b/lib/modules/python/collection/osx/webcam.py @@ -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("/"): diff --git a/lib/modules/python/exploit/web/jboss_jmx.py b/lib/modules/python/exploit/web/jboss_jmx.py index 305dec3..6b88af6 100644 --- a/lib/modules/python/exploit/web/jboss_jmx.py +++ b/lib/modules/python/exploit/web/jboss_jmx.py @@ -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'] diff --git a/lib/modules/python/lateral_movement/multi/ssh_command.py b/lib/modules/python/lateral_movement/multi/ssh_command.py index 39ec4d2..a5eb69f 100644 --- a/lib/modules/python/lateral_movement/multi/ssh_command.py +++ b/lib/modules/python/lateral_movement/multi/ssh_command.py @@ -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'] diff --git a/lib/modules/python/lateral_movement/multi/ssh_launcher.py b/lib/modules/python/lateral_movement/multi/ssh_launcher.py index 512c153..298f59b 100644 --- a/lib/modules/python/lateral_movement/multi/ssh_launcher.py +++ b/lib/modules/python/lateral_movement/multi/ssh_launcher.py @@ -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'] diff --git a/lib/modules/python/management/multi/kerberos_inject.py b/lib/modules/python/management/multi/kerberos_inject.py index 1f1ae21..e184db4 100644 --- a/lib/modules/python/management/multi/kerberos_inject.py +++ b/lib/modules/python/management/multi/kerberos_inject.py @@ -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'] diff --git a/lib/modules/python/management/multi/socks.py b/lib/modules/python/management/multi/socks.py index 9f719cc..99800fb 100644 --- a/lib/modules/python/management/multi/socks.py +++ b/lib/modules/python/management/multi/socks.py @@ -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') diff --git a/lib/modules/python/management/multi/spawn.py b/lib/modules/python/management/multi/spawn.py index 7c303e4..2f05c46 100644 --- a/lib/modules/python/management/multi/spawn.py +++ b/lib/modules/python/management/multi/spawn.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'] diff --git a/lib/modules/python/management/osx/ls.py b/lib/modules/python/management/osx/ls.py index 4eeddaa..2e6de63 100644 --- a/lib/modules/python/management/osx/ls.py +++ b/lib/modules/python/management/osx/ls.py @@ -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 += '/' diff --git a/lib/modules/python/management/osx/screen_sharing.py b/lib/modules/python/management/osx/screen_sharing.py index cacdaf5..25a7016 100644 --- a/lib/modules/python/management/osx/screen_sharing.py +++ b/lib/modules/python/management/osx/screen_sharing.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=""): diff --git a/lib/modules/python/management/osx/shellcodeinject64.py b/lib/modules/python/management/osx/shellcodeinject64.py index ca4c265..2631f21 100644 --- a/lib/modules/python/management/osx/shellcodeinject64.py +++ b/lib/modules/python/management/osx/shellcodeinject64.py @@ -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'] diff --git a/lib/modules/python/persistence/multi/crontab.py b/lib/modules/python/persistence/multi/crontab.py index 2f35b45..7b9f137 100644 --- a/lib/modules/python/persistence/multi/crontab.py +++ b/lib/modules/python/persistence/multi/crontab.py @@ -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'] diff --git a/lib/modules/python/persistence/osx/CreateHijacker.py b/lib/modules/python/persistence/osx/CreateHijacker.py index f4aa7a8..826e610 100644 --- a/lib/modules/python/persistence/osx/CreateHijacker.py +++ b/lib/modules/python/persistence/osx/CreateHijacker.py @@ -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 diff --git a/lib/modules/python/persistence/osx/RemoveDaemon.py b/lib/modules/python/persistence/osx/RemoveDaemon.py index 3bf6e41..13b525f 100644 --- a/lib/modules/python/persistence/osx/RemoveDaemon.py +++ b/lib/modules/python/persistence/osx/RemoveDaemon.py @@ -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'] diff --git a/lib/modules/python/persistence/osx/launchdaemonexecutable.py b/lib/modules/python/persistence/osx/launchdaemonexecutable.py index 482dd3a..46a4b07 100644 --- a/lib/modules/python/persistence/osx/launchdaemonexecutable.py +++ b/lib/modules/python/persistence/osx/launchdaemonexecutable.py @@ -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'] diff --git a/lib/modules/python/persistence/osx/loginhook.py b/lib/modules/python/persistence/osx/loginhook.py index 31eae0e..0b3bd63 100644 --- a/lib/modules/python/persistence/osx/loginhook.py +++ b/lib/modules/python/persistence/osx/loginhook.py @@ -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'] diff --git a/lib/modules/python/persistence/osx/mail.py b/lib/modules/python/persistence/osx/mail.py index 056a826..d2e7e5c 100644 --- a/lib/modules/python/persistence/osx/mail.py +++ b/lib/modules/python/persistence/osx/mail.py @@ -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'] diff --git a/lib/modules/python/privesc/linux/linux_priv_checker.py b/lib/modules/python/privesc/linux/linux_priv_checker.py index bff6fa4..a804183 100644 --- a/lib/modules/python/privesc/linux/linux_priv_checker.py +++ b/lib/modules/python/privesc/linux/linux_priv_checker.py @@ -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 diff --git a/lib/modules/python/privesc/linux/unix_privesc_check.py b/lib/modules/python/privesc/linux/unix_privesc_check.py index 61d2112..f0823ce 100644 --- a/lib/modules/python/privesc/linux/unix_privesc_check.py +++ b/lib/modules/python/privesc/linux/unix_privesc_check.py @@ -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'] diff --git a/lib/modules/python/privesc/multi/bashdoor.py b/lib/modules/python/privesc/multi/bashdoor.py index 8d5cec0..401d4ac 100644 --- a/lib/modules/python/privesc/multi/bashdoor.py +++ b/lib/modules/python/privesc/multi/bashdoor.py @@ -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'] diff --git a/lib/modules/python/privesc/multi/sudo_spawn.py b/lib/modules/python/privesc/multi/sudo_spawn.py index 02d23b3..fbece19 100644 --- a/lib/modules/python/privesc/multi/sudo_spawn.py +++ b/lib/modules/python/privesc/multi/sudo_spawn.py @@ -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'] diff --git a/lib/modules/python/privesc/osx/dyld_print_to_file.py b/lib/modules/python/privesc/osx/dyld_print_to_file.py index 36b81c7..b1eb7c7 100644 --- a/lib/modules/python/privesc/osx/dyld_print_to_file.py +++ b/lib/modules/python/privesc/osx/dyld_print_to_file.py @@ -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 diff --git a/lib/modules/python/privesc/osx/piggyback.py b/lib/modules/python/privesc/osx/piggyback.py index 3cbff1f..d71dcaf 100644 --- a/lib/modules/python/privesc/osx/piggyback.py +++ b/lib/modules/python/privesc/osx/piggyback.py @@ -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'] diff --git a/lib/modules/python/situational_awareness/host/multi/SuidGuidSearch.py b/lib/modules/python/situational_awareness/host/multi/SuidGuidSearch.py index 5dacb0d..465ff5d 100644 --- a/lib/modules/python/situational_awareness/host/multi/SuidGuidSearch.py +++ b/lib/modules/python/situational_awareness/host/multi/SuidGuidSearch.py @@ -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 diff --git a/lib/modules/python/situational_awareness/host/multi/WorldWriteableFileSearch.py b/lib/modules/python/situational_awareness/host/multi/WorldWriteableFileSearch.py index f198c6a..7e094bf 100644 --- a/lib/modules/python/situational_awareness/host/multi/WorldWriteableFileSearch.py +++ b/lib/modules/python/situational_awareness/host/multi/WorldWriteableFileSearch.py @@ -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 diff --git a/lib/modules/python/situational_awareness/host/osx/HijackScanner.py b/lib/modules/python/situational_awareness/host/osx/HijackScanner.py index 1166392..b62cb21 100644 --- a/lib/modules/python/situational_awareness/host/osx/HijackScanner.py +++ b/lib/modules/python/situational_awareness/host/osx/HijackScanner.py @@ -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 diff --git a/lib/modules/python/situational_awareness/host/osx/situational_awareness.py b/lib/modules/python/situational_awareness/host/osx/situational_awareness.py index bccaddb..d00ab4e 100644 --- a/lib/modules/python/situational_awareness/host/osx/situational_awareness.py +++ b/lib/modules/python/situational_awareness/host/osx/situational_awareness.py @@ -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'] diff --git a/lib/modules/python/situational_awareness/network/active_directory/dscl_get_groupmembers.py b/lib/modules/python/situational_awareness/network/active_directory/dscl_get_groupmembers.py index e0ce439..c275401 100644 --- a/lib/modules/python/situational_awareness/network/active_directory/dscl_get_groupmembers.py +++ b/lib/modules/python/situational_awareness/network/active_directory/dscl_get_groupmembers.py @@ -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 diff --git a/lib/modules/python/situational_awareness/network/active_directory/dscl_get_groups.py b/lib/modules/python/situational_awareness/network/active_directory/dscl_get_groups.py index 63bf646..6b9afe0 100644 --- a/lib/modules/python/situational_awareness/network/active_directory/dscl_get_groups.py +++ b/lib/modules/python/situational_awareness/network/active_directory/dscl_get_groups.py @@ -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 diff --git a/lib/modules/python/situational_awareness/network/active_directory/dscl_get_users.py b/lib/modules/python/situational_awareness/network/active_directory/dscl_get_users.py index 46c6124..8f88723 100644 --- a/lib/modules/python/situational_awareness/network/active_directory/dscl_get_users.py +++ b/lib/modules/python/situational_awareness/network/active_directory/dscl_get_users.py @@ -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 diff --git a/lib/modules/python/situational_awareness/network/active_directory/get_computers.py b/lib/modules/python/situational_awareness/network/active_directory/get_computers.py index e111527..4057dc5 100644 --- a/lib/modules/python/situational_awareness/network/active_directory/get_computers.py +++ b/lib/modules/python/situational_awareness/network/active_directory/get_computers.py @@ -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'] diff --git a/lib/modules/python/situational_awareness/network/active_directory/get_domaincontrollers.py b/lib/modules/python/situational_awareness/network/active_directory/get_domaincontrollers.py index ee30d89..f6ad486 100644 --- a/lib/modules/python/situational_awareness/network/active_directory/get_domaincontrollers.py +++ b/lib/modules/python/situational_awareness/network/active_directory/get_domaincontrollers.py @@ -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'] diff --git a/lib/modules/python/situational_awareness/network/active_directory/get_fileservers.py b/lib/modules/python/situational_awareness/network/active_directory/get_fileservers.py index c8c7eb2..cba8da7 100644 --- a/lib/modules/python/situational_awareness/network/active_directory/get_fileservers.py +++ b/lib/modules/python/situational_awareness/network/active_directory/get_fileservers.py @@ -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'] diff --git a/lib/modules/python/situational_awareness/network/active_directory/get_groupmembers.py b/lib/modules/python/situational_awareness/network/active_directory/get_groupmembers.py index 4632cbe..1eadd05 100644 --- a/lib/modules/python/situational_awareness/network/active_directory/get_groupmembers.py +++ b/lib/modules/python/situational_awareness/network/active_directory/get_groupmembers.py @@ -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'] diff --git a/lib/modules/python/situational_awareness/network/active_directory/get_groupmemberships.py b/lib/modules/python/situational_awareness/network/active_directory/get_groupmemberships.py index f9b8252..4fbf550 100644 --- a/lib/modules/python/situational_awareness/network/active_directory/get_groupmemberships.py +++ b/lib/modules/python/situational_awareness/network/active_directory/get_groupmemberships.py @@ -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'] diff --git a/lib/modules/python/situational_awareness/network/active_directory/get_groups.py b/lib/modules/python/situational_awareness/network/active_directory/get_groups.py index 0517652..1eb4da2 100644 --- a/lib/modules/python/situational_awareness/network/active_directory/get_groups.py +++ b/lib/modules/python/situational_awareness/network/active_directory/get_groups.py @@ -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'] diff --git a/lib/modules/python/situational_awareness/network/active_directory/get_ous.py b/lib/modules/python/situational_awareness/network/active_directory/get_ous.py index 0ad21cf..7018848 100644 --- a/lib/modules/python/situational_awareness/network/active_directory/get_ous.py +++ b/lib/modules/python/situational_awareness/network/active_directory/get_ous.py @@ -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'] diff --git a/lib/modules/python/situational_awareness/network/active_directory/get_userinformation.py b/lib/modules/python/situational_awareness/network/active_directory/get_userinformation.py index a1a2864..e9a026f 100644 --- a/lib/modules/python/situational_awareness/network/active_directory/get_userinformation.py +++ b/lib/modules/python/situational_awareness/network/active_directory/get_userinformation.py @@ -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'] diff --git a/lib/modules/python/situational_awareness/network/active_directory/get_users.py b/lib/modules/python/situational_awareness/network/active_directory/get_users.py index 0188ddd..aed043f 100644 --- a/lib/modules/python/situational_awareness/network/active_directory/get_users.py +++ b/lib/modules/python/situational_awareness/network/active_directory/get_users.py @@ -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'] diff --git a/lib/modules/python/situational_awareness/network/dcos/chronos_api_add_job.py b/lib/modules/python/situational_awareness/network/dcos/chronos_api_add_job.py index cff23b5..2e00ffd 100644 --- a/lib/modules/python/situational_awareness/network/dcos/chronos_api_add_job.py +++ b/lib/modules/python/situational_awareness/network/dcos/chronos_api_add_job.py @@ -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'] diff --git a/lib/modules/python/situational_awareness/network/dcos/chronos_api_delete_job.py b/lib/modules/python/situational_awareness/network/dcos/chronos_api_delete_job.py index e389dae..fa6b3f6 100644 --- a/lib/modules/python/situational_awareness/network/dcos/chronos_api_delete_job.py +++ b/lib/modules/python/situational_awareness/network/dcos/chronos_api_delete_job.py @@ -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'] diff --git a/lib/modules/python/situational_awareness/network/dcos/chronos_api_start_job.py b/lib/modules/python/situational_awareness/network/dcos/chronos_api_start_job.py index 8439dad..461e932 100644 --- a/lib/modules/python/situational_awareness/network/dcos/chronos_api_start_job.py +++ b/lib/modules/python/situational_awareness/network/dcos/chronos_api_start_job.py @@ -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'] diff --git a/lib/modules/python/situational_awareness/network/dcos/etcd_crawler.py b/lib/modules/python/situational_awareness/network/dcos/etcd_crawler.py index abb9b32..a796ae4 100644 --- a/lib/modules/python/situational_awareness/network/dcos/etcd_crawler.py +++ b/lib/modules/python/situational_awareness/network/dcos/etcd_crawler.py @@ -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) diff --git a/lib/modules/python/situational_awareness/network/dcos/marathon_api_create_start_app.py b/lib/modules/python/situational_awareness/network/dcos/marathon_api_create_start_app.py index 69876bd..3324647 100644 --- a/lib/modules/python/situational_awareness/network/dcos/marathon_api_create_start_app.py +++ b/lib/modules/python/situational_awareness/network/dcos/marathon_api_create_start_app.py @@ -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'] diff --git a/lib/modules/python/situational_awareness/network/dcos/marathon_api_delete_app.py b/lib/modules/python/situational_awareness/network/dcos/marathon_api_delete_app.py index 8d5f447..ca96353 100644 --- a/lib/modules/python/situational_awareness/network/dcos/marathon_api_delete_app.py +++ b/lib/modules/python/situational_awareness/network/dcos/marathon_api_delete_app.py @@ -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'] diff --git a/lib/modules/python/situational_awareness/network/find_fruit.py b/lib/modules/python/situational_awareness/network/find_fruit.py index c4b1e70..57efe30 100644 --- a/lib/modules/python/situational_awareness/network/find_fruit.py +++ b/lib/modules/python/situational_awareness/network/find_fruit.py @@ -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'] diff --git a/lib/modules/python/situational_awareness/network/gethostbyname.py b/lib/modules/python/situational_awareness/network/gethostbyname.py index 3258594..92ba763 100644 --- a/lib/modules/python/situational_awareness/network/gethostbyname.py +++ b/lib/modules/python/situational_awareness/network/gethostbyname.py @@ -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'] diff --git a/lib/modules/python/situational_awareness/network/http_rest_api.py b/lib/modules/python/situational_awareness/network/http_rest_api.py index 63cfc6d..c471ade 100644 --- a/lib/modules/python/situational_awareness/network/http_rest_api.py +++ b/lib/modules/python/situational_awareness/network/http_rest_api.py @@ -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'] diff --git a/lib/modules/python/situational_awareness/network/port_scan.py b/lib/modules/python/situational_awareness/network/port_scan.py index 3170cbc..a840bc8 100644 --- a/lib/modules/python/situational_awareness/network/port_scan.py +++ b/lib/modules/python/situational_awareness/network/port_scan.py @@ -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'] diff --git a/lib/modules/python/situational_awareness/network/smb_mount.py b/lib/modules/python/situational_awareness/network/smb_mount.py index 248be29..b4be951 100644 --- a/lib/modules/python/situational_awareness/network/smb_mount.py +++ b/lib/modules/python/situational_awareness/network/smb_mount.py @@ -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'] diff --git a/lib/modules/python/trollsploit/osx/change_background.py b/lib/modules/python/trollsploit/osx/change_background.py index 84a8903..c68e5a7 100644 --- a/lib/modules/python/trollsploit/osx/change_background.py +++ b/lib/modules/python/trollsploit/osx/change_background.py @@ -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'] diff --git a/lib/modules/python/trollsploit/osx/login_message.py b/lib/modules/python/trollsploit/osx/login_message.py index 15dd293..0689dbf 100644 --- a/lib/modules/python/trollsploit/osx/login_message.py +++ b/lib/modules/python/trollsploit/osx/login_message.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=""): message = self.options['Message']['Value'] remove = self.options['Remove']['Value'] diff --git a/lib/modules/python/trollsploit/osx/say.py b/lib/modules/python/trollsploit/osx/say.py index 1be9b97..701d409 100644 --- a/lib/modules/python/trollsploit/osx/say.py +++ b/lib/modules/python/trollsploit/osx/say.py @@ -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'] diff --git a/lib/modules/python/trollsploit/osx/thunderstruck.py b/lib/modules/python/trollsploit/osx/thunderstruck.py index 7cd86a6..00bc468 100644 --- a/lib/modules/python/trollsploit/osx/thunderstruck.py +++ b/lib/modules/python/trollsploit/osx/thunderstruck.py @@ -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