Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joarleymoraes/net_guard
A command line tool to detect new unknown device in your network using ARP protocol
https://github.com/joarleymoraes/net_guard
arp arp-scanner shell-script
Last synced: 6 days ago
JSON representation
A command line tool to detect new unknown device in your network using ARP protocol
- Host: GitHub
- URL: https://github.com/joarleymoraes/net_guard
- Owner: joarleymoraes
- License: mit
- Created: 2018-01-18T01:38:47.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-04T00:33:06.000Z (almost 7 years ago)
- Last Synced: 2024-11-25T18:02:23.503Z (17 days ago)
- Topics: arp, arp-scanner, shell-script
- Language: Shell
- Size: 329 KB
- Stars: 110
- Watchers: 5
- Forks: 15
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-hacking-lists - joarleymoraes/net_guard - A command line tool to detect new unknown device in your network using ARP protocol (Shell)
- awesome-network-stuff - **104**星
README
# Net Guard
A command line tool to detect possible malicious activity in your network using ARP protocol. Maybe someone is hacking in your network! Alerts are sent via email.
## Features
* Detection of unknown devices
* Detection of devices in promiscuous mode (approach taken from [here](http://www.securityfriday.com/promiscuous_detection_01.pdf))## Install
### Mac
On Mac, install arp-scan:
`brew install arp-scan`
Configure `mail` on terminal, [here's a tutorial on Gmail](http://codana.me/2014/11/23/sending-gmail-from-os-x-yosemite-terminal/)
### Other Platforms:
TODO.
PRs are welcome :)## Configure
Edit `settings.cnf` to set `ALERT_EMAIL_ADD`.
Add the Mac addresses of devices you know to `whitelist.txt`. You can list current connected devices using:
`arp-scan --interface= --localnet`
Newly found devices are recorded at `new_found.txt`, and are only reported once.
Both `whitelist.txt` and `new_found.txt` can be edited to include comments, such as:
`00:11:22:33:44:55 # My iPhone`
There are two equivalent lists for promiscuous mode devices (`p_whitelist.txt` and `p_new_found.txt`).
## Usage
`./net_guard.sh ``E.g.: ./net_guard.sh en0`
To list all network interfaces:
`ifconfig`