arp

Listening for ARP requests

一世执手 提交于 2019-12-14 04:26:15
问题 Can someone explain to me how to listen to ARP requests in VB.net or C#? I need to capture the ARP request and obtain the IP address of the requester. 回答1: At worst you could just process the output of arp -a run periodically. EDIT: I understand this does not answer the OP, but FYI due to the related answer listed on the RHS, you can obtain the equivalent of arp -a programmatically. Here's my VB.NET version of the C# code listed at that answer: Imports System Imports System.Runtime

linux ARP recvfrom information

谁都会走 提交于 2019-12-13 04:23:01
问题 If I send an ARP package can I find out from recv what is the IP adress of the sender ?I ask this because i send multiple packages to different hosts with child processes and I receive the response to all the child processes so I'm asking if there is a way to know what child sent what package.Thank you. struct ether_arp req; struct sockaddr_ll addr={0}; struct ifreq inter; int sock;//I check usinginter if the interface is correct sock=socket(AF_PACKET,SOCK_DGRAM,htons(ETH_P_ARP)); if (sock==

Why arp ignore/annouce are not enable by default [closed]

*爱你&永不变心* 提交于 2019-12-12 15:22:59
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I have a specific question which need experience for an answer: Why arp_ignore / arp_announce are not enable by default on linux installation (debian for example) is there a specific reason ? Which interest to receive arp answer from wrong network interfaces ? Thanks for your help. Regards, 回答1: That's not

Can you use ARP-Poisoning (spoofing) to apply simulated external effects?

╄→гoц情女王★ 提交于 2019-12-12 06:56:19
问题 We are looking at ways of creating a network effects server. By this I mean a central server that will inspect all the packets on the network and apply logic (drop, delay, alter, etc) based on factors external to the actual network such as weather and line-of-sight. This is all to do with running simulations of multiple real-world entities: a physical node in the network would represent a 3D moving entity in the 3D virtual world. As I mentioned, the effects would be calculated on line-of

Locating computer on subnet/network

淺唱寂寞╮ 提交于 2019-12-12 01:34:49
问题 Here is situation: I have special device that I can communicate via ethernet. It's connected to my computer via ethernet cable and the problem is that these devices are changed from time to time and they have different IP addresses. They always start 192.168. and the rest might be different. Device answers to IMCP (ping). Right now we have a list of IPs and we ping them to find device. We always know that there is only two devices on this network (this special device and laptop). So I am

how can I get list of active LAN user using ARP

旧城冷巷雨未停 提交于 2019-12-12 00:42:17
问题 in command prompt we can get list of ACTIVE user's IP [on LAN] using command like arp - g How can I get similar list using C# 回答1: You can use Process to execute commands from c# program Try This: Process process = new Process(); ProcessStartInfo startInfo = new ProcessStartInfo(); startInfo.FileName = "arp"; startInfo.Arguments = "-g"; startInfo.RedirectStandardOutput = true; startInfo.UseShellExecute = false; process.StartInfo = startInfo; process.Start(); String strData = process

How does ohrwurm use libpcap and arpspoof to corrupt RTP traffic?

跟風遠走 提交于 2019-12-11 19:43:45
问题 I'm trying to evaluate a tool called ohrwurm, which claims to be able to corrupt RTP traffic between two SIP endpoints. By reading its source code I don't believe it works, and would like other's opinions before I try it out. It's premise is simple: Assume endpoint A has IP address 192.168.0.11, and endpoint B has IP address 192.168.0.22. On a third box C on the same subnet as A and B execute the following commands in two SSH sessions: arpspoof 192.168.0.11 arpspoof 192.168.0.22 Execute

3.网络层

三世轮回 提交于 2019-12-11 19:17:31
网络层概述 : 网络层的任务就是选择合适的网间路由和交换结点, 确保数据及时传送(解决的是主机和主机的问题) 。在发送数据时,网络层把运输层产生的报文段或用户数据报封装成分组和包进行传送。在 TCP / IP 体系结构中,由于网络层使用 IP 协议,因此分组也叫 IP 数据报,简称数据报。 一、网络层提供的两种服务   网络层应该怎样向运输层提供怎样的服务?争论的实质就是:在计算机通信中,可靠交付应当由谁来负责,网络还是端系统? 二、网际协议IP (与IP协议配套使用的协议:地址解析协议ARP、网际控制报文协议ICMP、网际组管理协议IGMP) 1.IP地址分类   IP 地址是指互联网协议地址,是 IP 协议提供的一种统一的地址格式,它为互联网上的每一个网络和每一台主机分配一个逻辑地址,以此来屏蔽物理地址的差异。 A类:1.0.0.0-126.0.0.0 B类:128.0.0.0-191.255.0.0 C类:192.0.0.0-223.255.255.0 D类:多播地址 网络号:224-239 E类:保留地址 网络号:240-255 特殊IP地址:10.0.0.0、172.16.0.0-172.31.0.0、 192.168.0.0-192.168.255.0 =>保留的私网地址,内网 2.子网掩码   子网掩码又叫做网络编码、地址编码,它是一种用来指明IP地址的哪些位 标识

How do i send an ARP request in C# and which library to use

╄→尐↘猪︶ㄣ 提交于 2019-12-11 18:19:52
问题 I'm trying to develop a software that perform a "man in the middle" attack, and for that I need to send false ARP requests. 回答1: I'm assuming you want to spoof ARP replies. ARP is a Link Layer (L2) protocol. To spoof packets at this layer from user mode requires using Raw Sockets (as it is usually the TCP/IP stack in the kernel who takes care of this). In other words, you're not going to do it on Windows in C# with any sort of common / sane mechanism. The SendARP Win32 API call is available,

Two hosts with different subnets on layer 2 switch - why does this work?

倾然丶 夕夏残阳落幕 提交于 2019-12-11 15:09:54
问题 I am just preparing for a test in college about networking. I'm currently trying around with sub netting and I found out that two devices attached to a layer 2 switch can talk to each other although they have different subnets! Device A: 192.168.0.1 subnet mask : 255.255.255.0 Device B: 192.168.1.1 subnet mask : 255.255.255.0 The question is why I can ping from device A to B and vice versa? There's no router, just the two devices and a switch. From my understanding they should not see each