Some changes.
This commit is contained in:
parent
9e7194c8d9
commit
cd9c3b6e39
3 changed files with 17 additions and 6 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue