Send ARP who-has requests to determine which hosts are in promiscuous mode promiscping(net, iface=conf.iface)
(net, timeout=2, fake_bcast="ff:ff:ff:ff:ff:fe", **kargs)
| 1118 | |
| 1119 | @conf.commands.register |
| 1120 | def promiscping(net, timeout=2, fake_bcast="ff:ff:ff:ff:ff:fe", **kargs): |
| 1121 | # type: (str, int, str, **Any) -> Tuple[ARPingResult, PacketList] |
| 1122 | """Send ARP who-has requests to determine which hosts are in promiscuous mode |
| 1123 | promiscping(net, iface=conf.iface)""" |
| 1124 | ans, unans = srp(Ether(dst=fake_bcast) / ARP(pdst=net), |
| 1125 | filter="arp and arp[7] = 2", timeout=timeout, iface_hint=net, **kargs) # noqa: E501 |
| 1126 | ans = ARPingResult(ans.res, name="PROMISCPing") |
| 1127 | |
| 1128 | ans.show() |
| 1129 | return ans, unans |
| 1130 | |
| 1131 | |
| 1132 | class ARP_am(AnsweringMachine[Packet]): |
nothing calls this directly
no test coverage detected
searching dependent graphs…