Tag: network


Get a list of all network interfaces

To use the following C# code you have to add a reference to SharpPcap library in your project. class Computer { public static List<NetworkInterface> NetworkInterfaces { get { try { List<NetworkInterface> list = new List<NetworkInterface>(); foreach (WinPcapDevice dev in WinPcapDeviceList.Instance) { NetworkInterface ni = new NetworkInterface(); ni.Adapter = dev.Name.Replace("rpcap://", ""); ni.Description = dev.Description; ni.Name = …

Monitor, Network

Monitoring Opened TCP/IP network ports / connections

CurrPorts is network monitoring software that displays the list of all currently opened TCP/IP and UDP ports on your local computer. For each port in the list, information about the process that opened the port is also displayed, including the process name, full path of the process, version information of the process (product name, file …

Microsoft Windows, Monitoring

Display Network Errors

By default, only the numbers of bytes received and sent are displayed in a Network Adapter Status window. We can edit registry to have the number of errors displayed as well. Open registry editor and go to: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlNetworkConnections and add a key under Connections, named StatMon. In StatMon, create a DWORD value named ShowLanErrors and …


List network interfaces

Type the following command: ip link showip link show Output 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether c7:0b:a4:e3:81:02 brd ff:ff:ff:ff:ff:ff 3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN qlen 1000 link/ether 00:11:b2:23:64:55 brd ff:ff:ff:ff:ff:ff1: lo: <LOOPBACK,UP,LOWER_UP> …

Backtrack, Linux

Install Network Manager in BackTrack 5

Network Manager installation apt-get -y install network-manager-kdeapt-get -y install network-manager-kde or apt-get -y install network-manager-gnomeapt-get -y install network-manager-gnome Backup interfaces file cp etc/network/interfaces etc/network/interfaces.bakcp etc/network/interfaces etc/network/interfaces.bak Empty interfaces file echo "auto lo" > etc/network/interfacesecho "auto lo" > etc/network/interfaces Restart BackTrack rebootreboot

Host discovery, Tools

Fing in linux – Get a complete picture of your network

Download fing .deb package from here. Install it with dpkg: dpkg -i /path/to/overlook-fing-x.x.debdpkg -i /path/to/overlook-fing-x.x.deb Run it: fingfing Output example: root@bt:~# fing 23:45:52 > Discovery profile: Default discovery profile 23:45:52 > Discovery class: data-link (data-link layer) 23:45:52 > Discovery on:   23:45:52 > Discovery round starting. 23:45:52 > Host is up: HW Address: …