Skip to content
This repository has been archived by the owner on Aug 28, 2018. It is now read-only.

Commit

Permalink
fixed "or" statements when parsing config file arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
byt3bl33d3r committed Oct 9, 2014
1 parent 2e86c0b commit 885d464
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugins/BeefAutorun.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class BeefAutorun(Plugin):

def initialize(self, 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.beefport = options.beefport
self.beefuser = options.beefuser
Expand Down
2 changes: 1 addition & 1 deletion plugins/FilePwn.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def convert_to_Bool(self, aString):
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']
Expand Down
2 changes: 1 addition & 1 deletion plugins/JavaPwn.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def initialize(self, options):
self.msfport = options.msfport
self.rpcip = options.rpcip
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:
sys.exit('[-] JavaPwn plugin requires --msfip')
Expand Down

0 comments on commit 885d464

Please sign in to comment.