-3

I've got two computers. A & B.
While sitting on the computer A how can I see the incoming and outgoing traffic of computer B? Or can I?

Note: Please try to answer in a non-technical language as much as possible cuz I am totally new to this stuff.

Note: I am not trying to hack somebody, if somebody is wondering. It's just to know how its done.

Anonymous
  • 101
  • 1
  • As @Craig already pointed out in a comment, the likeliness of even receiving non-broadcast packets with destinations other than the monitoring interface is low. One way to capture packets the interface would normally never see is something called Man In The Middle (you can Google that). Another method is to fill the routing table of the router and force it to broadcast everything. Both methods are usually used nefariously, don't always work, and are illegal in most applications. – motoku Aug 24 '15 at 06:06

1 Answers1

2

The easiest way to do this is by turning on the Promiscuous Mode of your network adapter and using a tool such as Wireshark or tcpdump to capture the traffic. This article explains how promiscuous mode works in general and what are some other alternatives to network monitoring. Here is an explanation is somewhat non-technical language (taken from the same blog):

Network traffic on other computers on your local network is inaccessible for you by default. The problem is that all network packets are addressed to somebody and if you are not the specified recipient of the packet, your network adapter must ignore it. But, in practice, from the very emersion of Ethernet most adapters have been able to accept packets even if those were not addressed to them. Just turn on the special – promiscuous – operating mode for your network adapter. In this mode, network adapter accepts all packets flowing within the network segment indiscriminately. In a hub-based network, it would be sufficient to switch the adapter to the promiscuous mode in order to get access to all traffic on the local network, because hub is a primitive device. When it has received a packet from some port, hub simply retransmits it to its other ports. Thus, it would be sufficient to just connect to any port on the hub to monitor Internet traffic passing though the hub.

Further readings: Promiscuous vs Monitor mode.

Rahil Arora
  • 4,259
  • 2
  • 23
  • 41
  • 2
    Who is still using a hub for networking? Essentially any device made in the past ten or fifteen years is going to be a layer 2 switch, not a hub. So you're still only going to see the traffic on your own switch port unless you're using a managed (or semi-managed) switch that lets you specify a monitor port. If you can specify a monitor port, then the switch will send a copy of every packet that crosses the backplane to the monitor port. – Craig Tullis Aug 23 '15 at 21:15