fixed "or" statements when parsing config file arguments

This commit is contained in:
byt3bl33d3r 2014-10-09 22:21:17 +02:00
parent 2e86c0b663
commit 885d464a26
3 changed files with 3 additions and 3 deletions

View file

@ -38,7 +38,7 @@ class FilePwn(Plugin):
def initialize(self, options):
'''Called if plugin is enabled, passed the options namespace'''
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',
'application/x-msdos-program', 'binary/octet-stream']