mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-07-06 21:12:16 -07:00
added better error handling on missing arguments
This commit is contained in:
parent
885d464a26
commit
5be41cfd37
2 changed files with 5 additions and 6 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue