Sha256: 2ab5e1157268e3eccbe1e7b8da7666bb6c6f48dcf4a7625086399ec8b90a0c75
Contents?: true
Size: 526 Bytes
Versions: 4
Compression:
Stored size: 526 Bytes
Contents
module ServiceObjects class CraftArpPacket attr_reader :packet def initialize(saddr, daddr, saddr_ip, daddr_ip) arp_packet = ::PacketFu::ARPPacket.new arp_packet.eth_saddr = saddr arp_packet.eth_daddr = daddr arp_packet.arp_saddr_mac = saddr arp_packet.arp_daddr_mac = daddr arp_packet.arp_saddr_ip = saddr_ip arp_packet.arp_daddr_ip = daddr_ip arp_packet.arp_opcode = 2 @packet = arp_packet end def call packet end end end
Version data entries
4 entries across 4 versions & 1 rubygems