Tag: hosts

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 + " – " + …

Microsoft Windows

How to block a website using hosts file

1. Create a copy of hosts file (backup) (hosts file location in Windows 7: %windir%\System32\drivers\etc\) 2. Run notepad as administrator. 3. Create a new text file. 4. Open hosts file for editing and copy its contents . 5. Paste hosts file contents into your new text file. 6. Delete hosts file from %windir%\System32\drivers\etc\. 7. For …

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: …