added better error handling on missing arguments

This commit is contained in:
byt3bl33d3r 2014-10-09 23:26:28 +02:00
parent 885d464a26
commit 5be41cfd37
2 changed files with 5 additions and 6 deletions

View file

@ -12,11 +12,8 @@ class AppCachePlugin(Plugin):
def initialize(self, options):
'''Called if plugin is enabled, passed the options namespace'''
self.options = options
self.config_file = options.tampercfg
if self.config_file is None:
self.config_file = "./config_files/app_cache_poison.cfg"
self.config_file = options.tampercfg or "./config_files/app_cache_poison.cfg"
print "[*] App Cache Poison plugin online"
ResponseTampererFactory.buildTamperer(self.config_file)