Tag: alive

C#

Check if computer is alive with C#

To check if a computer in the network is alive we are going to ping it through C# and Ping class. Ping ping = new Ping(); PingReply pingReply; pingReply = ping.Send(ip, timeout); if (pingReply.Status == IPStatus.Success) { …. } else { …. }Ping ping = new Ping(); PingReply pingReply; pingReply = ping.Send(ip, timeout); if (pingReply.Status …

Host discovery, Metasploit

Host Discovery with Metasploit

Host discovery is the process of identifying live hosts on a network. Alive is considered a host that responds to ping or have a particular port open. ARP Scanning ARP (Address Resolution Protocol) is a protocol for resolution of network layer addresses into link layer addresses. The ARP protocol is designed to allow it to …

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: 192.168.1.0/24   23:45:52 > Discovery round starting. 23:45:52 > Host is up: 192.168.1.126 HW Address: …

Python

ARP scanning using python and scapy

Run the following scipt with administrative rights to discover all alive hosts on the network! #!/usr/bin/env python   import sys from scapy.all import *   if len(sys.argv) != 2: print "Usage: python arp-scan.py 192.168.1.0/24" sys.exit(1)   try: alive,dead=srp(Ether(dst="ff:ff:ff:ff:ff:ff")/ARP(pdst=sys.argv[1]), timeout=2, verbose=0) print "MAC – IP" for i in range(0,len(alive)): print alive[i][1].hwsrc + " – " + …

Enumeration, Linux, Network, NMAP

Host discovery

Host discovery arp-scan sudo arp-scan 192.168.1.0/24sudo arp-scan 192.168.1.0/24 To install arp-scan issue the command: sudo apt-get install arp-scansudo apt-get install arp-scan arp-scan home page http://nta-monitor.com/tools-resources/security-tools/arp-scan ping ping -c 2 192.168.1.2ping -c 2 192.168.1.2 send 2 ICMP ECHO REQUEST packets to 192.168.1.2 machine nmap sudo nmap -sn -PE –send-ip 192.168.1.0/24sudo nmap -sn -PE –send-ip 192.168.1.0/24 -sn …

NMAP

Discover other hosts on the LAN

Using nmap network tool is easy to discover other live hosts on the lan. If your ip address is something like this: 192.168.2.8 then the only thing you have to do to discover other hosts on the network is to type in your terminal the command: nmap -sP 192.168.2.0/24 and you get something like this: …