Skip to content

Commit 42f999a

Browse files
committed
unused var answer
1 parent a186148 commit 42f999a

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

wapitiCore/attack/attack.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import random
2727
from binascii import hexlify
2828
from typing import Optional, Iterator, Tuple, List, Callable, Union, Iterable, Type
29-
from asyncio import Event
3029
import json
3130

3231
from pkg_resources import resource_filename

wapitiCore/controller/wapiti.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,6 @@ async def load_resources_for_module(self, module: Attack) -> AsyncGenerator[Requ
452452
yield request, response
453453

454454
async def load_and_attack(self, attack_module: Attack):
455-
answer = "0"
456455
attacked_ids = set()
457456
async for original_request, original_response in self.load_resources_for_module(attack_module):
458457
try:
@@ -480,7 +479,7 @@ async def load_and_attack(self, attack_module: Attack):
480479
else:
481480
if original_request.path_id is not None:
482481
attacked_ids.add(original_request.path_id)
483-
return attacked_ids, answer
482+
return attacked_ids
484483

485484
def handle_user_interruption(self, task) -> None:
486485
"""
@@ -515,7 +514,7 @@ async def run_attack_module(self, attack_module):
515514
attacked_ids = set()
516515

517516
try:
518-
attacked_ids, answer = await asyncio.wait_for(
517+
attacked_ids = await asyncio.wait_for(
519518
self.load_and_attack(attack_module),
520519
self._max_attack_time
521520
)

0 commit comments

Comments
 (0)