Commit 085fd6fb by devttys0

Added sanity checks to make sure at least one target file was specified

parent e93eb634
...@@ -462,6 +462,10 @@ class Module(object): ...@@ -462,6 +462,10 @@ class Module(object):
if hasattr(self, dependency.attribute): if hasattr(self, dependency.attribute):
getattr(self, dependency.attribute).reset() getattr(self, dependency.attribute).reset()
if not self.config.files:
binwalk.core.common.debug("No target files specified, module %s terminated" % self.name)
return False
try: try:
self.init() self.init()
except KeyboardInterrupt as e: except KeyboardInterrupt as e:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment