More testing code.
This commit is contained in:
parent
81112a4cb9
commit
c337a33feb
1 changed files with 2 additions and 2 deletions
|
|
@ -66,11 +66,11 @@ class UrlAttack:
|
||||||
self.url, headers=self.headers, timeout=self.timeout
|
self.url, headers=self.headers, timeout=self.timeout
|
||||||
)
|
)
|
||||||
|
|
||||||
with open(f"{self.response.url}", "wb") as output_file:
|
with open(f"request.pickle", "wb") as output_file:
|
||||||
pickle.dump(self.response.request, output_file)
|
pickle.dump(self.response.request, output_file)
|
||||||
if self.response.ok:
|
if self.response.ok:
|
||||||
self.success = True
|
self.success = True
|
||||||
except Exception:
|
except Exception as e:
|
||||||
self.success = False
|
self.success = False
|
||||||
|
|
||||||
def get_response(self):
|
def get_response(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue