Questions tagged [arp]

ARP is a protocol for resolution of network layer addresses such as IP into link layer addresses (such as MAC addresses). "arp" is also a command in Linux and Windows to manipulate the ARP cache.

Address Resolution Protocol (ARP) is a telecommunications protocol used for resolution of network layer addresses into link layer addresses, a critical function in multiple-access networks. ARP was defined by RFC826 in 1982.
It is also the name of the program for manipulating these addresses in most operating systems.

603 questions
2
votes
2 answers

What is the use of the MAC address in the reply/request ARP packet, when we can extract it from the ethernet header

I am getting confused why do we require mac addresses in ARP packet, when we can extract it from ethernet header. Just keep the IP addresses and other fields as they are and remove the MAC address. We can extract them from ethernet. AM I missing…
Invictus
  • 2,653
  • 8
  • 31
  • 50
2
votes
1 answer

Detect ARP Spoofing using traceroute

I'm making application that can detact arp spoofing :] My idea is that if there is attacker in subnet, and he tried to MITM using arp poisoning, then I exec traceroute to default gateway(or changed arp cache entry, whatever). Cuz all my packets go…
Minsu Kim
  • 21
  • 1
  • 2
2
votes
1 answer

Raspberry Pi - Crontab task not running properly

I have scheduled a task arp -a which runs once per hour, that scans my wi-fi network to save all the info about currently connected devices into a scan.txt file. After the scan, a python script reads the scan.txt and saves the data into a…
sirdan
  • 1,018
  • 2
  • 13
  • 34
2
votes
0 answers

How to listen to an integer with Flutter StreamBuilder?

I'm adding a dating screen to my app. I want to show the screen according to the progress in the dating screen. I tied the user's progress to a variable. The name of this variable is _pageIndex. And I determine the content to be displayed with the…
Emir Bolat
  • 899
  • 3
  • 14
  • 37
2
votes
1 answer

application size doubles on repair in control panel

I have an installer which is having repair option. While installation I am copying some 50MB of temp files in the temp folder, which I want to delete at the end after installation.I am doing so by a custom action which deletes the temp folder…
Sandeep
  • 29
  • 1
2
votes
0 answers

Why flutter contacts don't work on Xiaomi device?

I'm new to Flutter and I'm trying to store contact list as name and number in local database. The code I wrote works on the Samsung A21S device that I use as an emulator, but it does not work on devices like Xiaomi, where did I go wrong? void…
Edward
  • 21
  • 2
2
votes
2 answers

Getting MAC address of another host using perl

I'm trying to find the MAC address of a host if I only have its IP address in perl. I have the following code, but its throwing an error. #!/usr/bin/perl use Net::ARP; $mac = Net::ARP::arp_lookup('eth0','192.168.1.9'); print "$mac"; When I run…
Svenxix
  • 97
  • 2
  • 8
2
votes
0 answers

"ARP -a" Command Explanation

I have tried to execute the ARP -a command in windows. I knew that it is used for mapping IP with MAC addresses. I know the first part there but what about the other two-block? Why is at last there 0x10 and 0x16?
Purushottam
  • 149
  • 1
  • 3
  • 10
2
votes
1 answer

Adding arp bindings into ARP table Linux

Im trying to add an ARP binding into ARP table in linux, my arp table looks like this: IP address HW type Flags HW address Mask Device 192.168.3.12 0x1 0x6 00:0c:29:89:c5:cc * …
shaggy
  • 631
  • 4
  • 11
  • 22
2
votes
6 answers

First packet to be sent when starting to browse

Imagine a user sitting at an Ethernet-connected PC. He has a browser open. He types "www.google.com" in the address bar and hits enter. Now tell me what the first packet to appear on the Ethernet is. I found this question here: Interview Questions…
PsiX
  • 1,661
  • 1
  • 17
  • 35
2
votes
0 answers

ARP spoofing using scapy changes my own ARP table

I wrote an ARP spoofer in Python using Scapy which works fine. The only problem with it is that sending the malicious ARP packet also changes my own ARP table, which makes my host think that it is the default gateway. This is the packet that I am…
Shami735
  • 21
  • 1
2
votes
1 answer

Scapy/ARP request does not work for multiple/range IPs. Only for a single IP request

I am creating a simple function, which should collect MAC addresses of all devices in my network. import scapy.all as scapy def network_scan(ip): arp_request = scapy.ARP(pdst=ip) print(arp_request.summary()) network_scan("10.0.2.1/24") This…
2
votes
2 answers

Scapy library giving error ARP who has ?? says?

import scapy.all as scapy def scan(ip): arp_request = scapy.ARP(pdst=ip) print(arp_request.summary()) scapy.ls(arp_request) scan("10.0.2.0/24") This is giving output who has ?? says ?? instead of who has 10.0.2.0/24 says 'myIp'
2
votes
1 answer

Restore arp cache in linux

I accidentally delete HWaddress using below command arp -d 200.9.12.50 if i run the arp -n 200.9.12.50 shows incomplete. Address HWtype HWaddress Flags Mask Iface 200.9.12.50 …
Bhuvan Kumar
  • 554
  • 1
  • 7
  • 23
2
votes
0 answers

Is ARP table self-learning?

I'm learning data communications and networking. Here is my question about ARP's mechanism: Suppose host A and B knows each other's IP address but don't know each other's MAC address. Then when A wants to send IP datagram to B, A needs to go through…
Adam Ant
  • 41
  • 2