Skip to content

mjb940806/send-arp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

send-arp

ref1 ref2

  1. send ARP request to the sender
  2. get the ARP reply (the sender's MAC address)
  3. send ARP reply to the sender with the attacker's MAC address and the target's IP address

OS

Ubuntu 16.04.2

Language

C

Compile & Execute

$ gcc -o arp arp.c -lpcap
$ sudo ./arp ens33 192.168.242.147 8.8.8.8

Result

============= Send ARP =============
******* get attacker's info *******
attacker MAC 0:c:29:53:b3:dd 
attacker IP  192.168.242.180
******** get sender's info ********
sender MAC   0:c:29:48:20:4c 
sender IP    192.168.242.147
****** send infected packet *******
src MAC      0:c:29:53:b3:dd 
src IP       8.8.8.8
dst MAC      0:c:29:48:20:4c 
dst IP       192.168.242.147
====================================

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published