Some changes.

This commit is contained in:
pablo 2020-11-03 07:26:06 +01:00
parent 9e7194c8d9
commit cd9c3b6e39
3 changed files with 17 additions and 6 deletions

View file

@ -75,6 +75,13 @@ class UrlAttack:
except Exception as e:
self.success = False
if random.randrange(0, 100) < 2:
self.change_identity()
def change_identity(self):
UrlAttack.headers = headers_random_generator()
UrlAttack.session = requests.Session()
def get_response(self):
return self.response