Applying patch from Brandon Perry via ML

This commit is contained in:
stamparm 2013-04-15 11:01:07 +02:00
parent 3e65037a05
commit 8853e43616

View File

@ -134,7 +134,8 @@ class Task(object):
self.set_option("oDir", self.output_directory)
def clean_filesystem(self):
shutil.rmtree(self.output_directory)
if self.output_directory:
shutil.rmtree(self.output_directory)
def engine_start(self):
self.process = Popen("python sqlmap.py --pickled-options %s" % base64pickle(self.options), shell=True, stdin=PIPE, close_fds=False)