mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-07-11 15:47:10 -07:00
fixed "or" statements when parsing config file arguments
This commit is contained in:
parent
2e86c0b663
commit
885d464a26
3 changed files with 3 additions and 3 deletions
|
@ -23,7 +23,7 @@ class BeefAutorun(Plugin):
|
||||||
|
|
||||||
def initialize(self, options):
|
def initialize(self, options):
|
||||||
self.options = options
|
self.options = options
|
||||||
self.autoruncfg = "./config_files/beefautorun.cfg" or options.autoruncfg
|
self.autoruncfg = options.autoruncfg or "./config_files/beefautorun.cfg"
|
||||||
self.beefip = options.beefip
|
self.beefip = options.beefip
|
||||||
self.beefport = options.beefport
|
self.beefport = options.beefport
|
||||||
self.beefuser = options.beefuser
|
self.beefuser = options.beefuser
|
||||||
|
|
|
@ -38,7 +38,7 @@ class FilePwn(Plugin):
|
||||||
def initialize(self, options):
|
def initialize(self, options):
|
||||||
'''Called if plugin is enabled, passed the options namespace'''
|
'''Called if plugin is enabled, passed the options namespace'''
|
||||||
self.options = options
|
self.options = options
|
||||||
self.filepwncfg = "./config_files/filepwn.cfg" or options.filepwncfg
|
self.filepwncfg = options.filepwncfg or "./config_files/filepwn.cfg"
|
||||||
|
|
||||||
self.binaryMimeTypes = ["application/octet-stream", 'application/x-msdownload',
|
self.binaryMimeTypes = ["application/octet-stream", 'application/x-msdownload',
|
||||||
'application/x-msdos-program', 'binary/octet-stream']
|
'application/x-msdos-program', 'binary/octet-stream']
|
||||||
|
|
|
@ -30,7 +30,7 @@ class JavaPwn(BrowserProfiler, Plugin):
|
||||||
self.msfport = options.msfport
|
self.msfport = options.msfport
|
||||||
self.rpcip = options.rpcip
|
self.rpcip = options.rpcip
|
||||||
self.rpcpass = options.rpcpass
|
self.rpcpass = options.rpcpass
|
||||||
self.javapwncfg = './config_files/javapwn.cfg' or options.javapwncfg
|
self.javapwncfg = options.javapwncfg or './config_files/javapwn.cfg'
|
||||||
|
|
||||||
if not self.msfip:
|
if not self.msfip:
|
||||||
sys.exit('[-] JavaPwn plugin requires --msfip')
|
sys.exit('[-] JavaPwn plugin requires --msfip')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue