From bcb4e630aa6d0c8b5b3baa8eee8a6c68bdd573c5 Mon Sep 17 00:00:00 2001 From: Rajat Gupta <35985127+rjt-gupta@users.noreply.github.com> Date: Fri, 7 Jun 2019 14:58:52 +0530 Subject: [PATCH] unused param (#326) --- tanner/emulators/sqli.py | 2 +- tanner/emulators/sqlite.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tanner/emulators/sqli.py b/tanner/emulators/sqli.py index eaf2937d..f6508c04 100644 --- a/tanner/emulators/sqli.py +++ b/tanner/emulators/sqli.py @@ -55,7 +55,7 @@ async def get_sqli_result(self, attack_value, attacker_db): async def handle(self, attack_params, session): if self.query_map is None: - self.query_map = await self.sqli_emulator.setup_db(self.query_map) + self.query_map = await self.sqli_emulator.setup_db() attacker_db = await self.sqli_emulator.create_attacker_db(session) result = await self.get_sqli_result(attack_params[0], attacker_db) return result diff --git a/tanner/emulators/sqlite.py b/tanner/emulators/sqlite.py index 6bb047f6..7519a2b4 100644 --- a/tanner/emulators/sqlite.py +++ b/tanner/emulators/sqlite.py @@ -10,7 +10,7 @@ def __init__(self, db_name, working_dir): self.working_dir = os.path.join(working_dir, 'db/') self.helper = sqlite_db_helper.SQLITEDBHelper() - async def setup_db(self, query_map): + async def setup_db(self): if not os.path.exists(self.working_dir): os.makedirs(self.working_dir) db = os.path.join(self.working_dir, self.db_name)