Questions tagged [promiscuous-mode]

19 questions
10
votes
5 answers

Reading from a promiscuous network device

I want to write a real-time analysis tool for wireless traffic. Does anyone know how to read from a promiscuous (or sniffing) device in C? I know that you need to have root access to do it. I was wondering if anyone knows what functions are…
jbleners
  • 1,023
  • 1
  • 8
  • 14
8
votes
2 answers

Docker Container's network interface in promiscuous mode

compose a 3 services architecture and a virtual bridged network on which the three services are attached. I want one of the container to be able to listen to all the traffic within the virtual network (promiscuous mode). Is it possible? I've tried…
Aenon
  • 346
  • 1
  • 3
  • 7
5
votes
4 answers

Packet socket in promiscuous mode only receiving local traffic

I have a socket created with socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL)), and I've set it into promiscuous mode using: struct ifreq ifr; strncpy((char*)ifr.ifr_name, interface, IF_NAMESIZE); if(ioctl(sock, SIOCGIFINDEX, &ifr)<0) fail(2); struct…
nonpolynomial237
  • 2,109
  • 4
  • 27
  • 35
2
votes
2 answers

Golang - get promiscuous mode status of network interfaces

I use the following Go code to get some info about the network interfaces. Any suggestions on how I would be able to get the status of promiscuous mode for each interface? type Iface struct { Name string `json:"name"` Status string…
tgogos
  • 23,218
  • 20
  • 96
  • 128
2
votes
0 answers

Disadvantages/dangers of promiscuous mode

The only way I am able to receive multicast UDP datagrams on a building automation module is by setting the interface to promiscuous mode (kernel is 2.6.24, it works as it should on later kernels). I would like to know if there would be any risks or…
H_squared
  • 1,251
  • 2
  • 15
  • 32
1
vote
0 answers

Packet sniffing using scapy stops with socket closed warning

I have written a sniffer using scapy. It tries to get the probe request packets. My program runs fine for about 8-10 mins, then, it suddenly stops sniffing the probe requests after throwing socket closed warning. I didn't find any information…
Sourabrt
  • 2,126
  • 2
  • 8
  • 22
1
vote
1 answer

docker container can only access by host when the docker0 in promiscuous mode

As the title. I can only access my docker container from the host when docker0 in promiscuous mode, even I had stopped my firewalld.service. I start the container by this command docker run -p 9000:80 --name nginx --rm nginx. And when I try to…
欧阳维杰
  • 1,608
  • 1
  • 14
  • 22
1
vote
1 answer

sniffing packets from different VM's in Oracle VM VirtualBox

There is a situation: there are 2 Virtual computers(defined as A and B), runnig Ubuntu 16.04 each one. Network configure on both of them: Adapter1 : Host-only with Promiscuous Allow All Adapter2: Nat Network with Promiscuous Allow VM's both the…
1
vote
1 answer

Contiki OS: Set Promiscuous Mode and receive all UDP Packets

i'm trying to do the following: a) Set Contiki in Promiscuous Mode. b) Then retrieve all UDP and RPL packets send, not only to current node but also between two other nodes within communication range. I have the following…
0
votes
1 answer

Is there a way I can make LXD container capture packets while keeping parent interface available in host machine to capture packets from there too?

Hello StackOverflow community, I have a specific scenario I’m trying to implement, and I haven’t found any solution on this forum. I hope you guys may be able to help me. I currently have a Lubuntu 22.04 host with 2 Network Cards: First card (ens33)…
0
votes
0 answers

How to prohibit the transmission of intercepted packets?

I use the socket module in python to intercept packets at the L2 level. How do I configure socket to not allow captured packets to enter the network. Linux operating system. sniffer = socket.socket(socket.AF_PACKET, socket.SOCK_RAW,…
0
votes
0 answers

Cannot set promiscuous mode in windows 10 using python socket api function socket.ioctl()

i have the following code : import socket sniffer = socket.socket(socket.AF_INET,socket.SOCK_RAW,socket.IPPROTO_IP) sniffer.bind(("",0)) sniffer.ioctl(socket.SIO_RCVALL,socket.RCVALL_ON) data = sniffer.recvfrom(65535) print(f"RECVD :…
0
votes
0 answers

Promiscuous mode in LrWpanNetDevice NS3

I have a network of Lrwpan devices in NS3 and I want to make some nodes operate as sniffers. I enabled promiscuous mode in PCAP files but I want also to process the information that are contained in these packets. How should I get the actual…
phrick
  • 15
  • 3
0
votes
2 answers

ESP32 Switch Between Promiscuous and STA Mode

I'm working on a project based on the ESP32 platform. The aim is to count the number of MAC addresses in the area, and transmit this information over WiFi (using an http POST request). The first task is achieved by sniffing WIFI packets and…
Yaxit
  • 167
  • 2
  • 11
0
votes
0 answers

Capture traffic for another computer on my home wifi network in ubuntu

I am trying to do a packet capture for a computer in my home wifi network on my local machine. I am using ubuntu on my local machine. These are the steps I have taken sudo ifconfig down sudo iwconfig mode…
Abdul Rahman
  • 1,294
  • 22
  • 41
1
2