Skip to content

terminalpirate/Network_Scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

#This is a Python executable terminal tool used to scan the existting network the device is connected to.

This code works to scan an IP address or an IP range and identify its MAC address. The code works by creating an ARP (Address Resolution Protocol) request, then broadcasting it, then receiving a response(MAC address), then pinging the response to confirm and finally printing the results.

MODULES USED: — The module SCAPY was used to create the ARP request. — The module ARGPARSE was used to add command-line interface options.

(This was earlier implemented using OPTPARSE, but later I decided to update it to ARGPARSE to make it Python3 compatible)

This code is well functioning and tested and gives useful error information.

I got the idea for this code from the course 'Learn Python & Ethical Hacking From Scratch' by Zaid Sabih, zSecurity.



USAGE

1. Clone this Repository

2. CD to the cloned repository folder/directory

3. Run the script with the command 'python network-scanner.py'

4. Check the usage and open help with '--help' for more info

Capture1

5. Run 'route -n' to view the routing table and find the router gateway address

6. Run the script with the gateway address (add /24 at the end of the address) with the appropriate usage option (use sudo)

7. View the displayed network table for the gateway address and confirm all addresses

Capture2

About

Python script to scan IP address/ range

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages