Skip to content

Commit

Permalink
unused param (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjt-gupta authored and rnehra01 committed Jun 7, 2019
1 parent 029de8c commit bcb4e63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tanner/emulators/sqli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion tanner/emulators/sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bcb4e63

Please sign in to comment.