Platform Supported
Deployments
NetSec (Network Security)
NetSec is a tool to analyze devices connecting to the router and alert accordingly when a new device is connected.
This app can display and store intruders' IP address, MAC address, and Block the device.
Blocking device feature is currently available only for
Netgearrouter users.
Kick off
Install
python3 -m pip install NetSec
Initiate
from netsec import network_monitor, SupportedModules
if __name__ == '__main__':
# SupportedModules.att # for AT&T users
# SupportedModules.netgear # for any network using Netgear router
network_monitor(module=SupportedModules.att, init=True) # Create snapshot
network_monitor(module=SupportedModules.att, init=False) # Scan for threats and alert
Notifications will not repeat within an hour.
ENV Variables
Environment variables are loaded from a .env file.
- ROUTER_PASS - Router password. Only for
Netgearusers. - GMAIL_USER - Gmail account username to send and email.
- GMAIL_PASS - Gmail account password to send and email.
- RECIPIENT - Email address to which
NetSecalerts should be sent. - PHONE - To send an SMS notification - Example:
1234567890
Coding Standards
Docstring format: Google
Styling conventions: PEP 8
Clean code with pre-commit hooks: flake8 and
isort
Release Notes
Requirement
python -m pip install gitverse
Usage
gitverse-release reverse -f release_notes.rst -t 'Release Notes'
Linting
PreCommit will ensure linting, and the doc creation are run on every commit.
Requirement
pip install sphinx==5.1.1 pre-commit recommonmark
Usage
pre-commit run --all-files
Pypi Package
https://pypi.org/project/NetSec/
Runbook
https://thevickypedia.github.io/NetSec/
License & copyright
© Vignesh Rao, NetSec
Licensed under the MIT License
Metadata
Release files for NetSec 0.9.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| NetSec-0.9.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / NetSec-0.9.1-py3-none-any.whl
| Download URL | NetSec-0.9.1-py3-none-any.whl |
|---|---|
| Size | 12.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f563659229ad146fa142646b358b2622469fd3a13c397607b605b69861e93c4f
|
|
BLAKE2b-256 checksum How to use checksums |
d8a37ef2b032b5b9e0e33d46875f7697179a45cf7cd508844b556a560cbbafb3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|