Skip to main content

Python module to analyze devices connected to the router and alert accordingly.

Project description

Platform Supported

Generic badge

Python

Deployments

pypi pages-build-deployment

Pypi-format Pypi-status

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 Netgear router 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 Netgear users.
  • GMAIL_USER - Gmail account username to send and email.
  • GMAIL_PASS - Gmail account password to send and email.
  • RECIPIENT - Email address to which NetSec alerts 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

pypi-module

https://pypi.org/project/NetSec/

Runbook

made-with-sphinx-doc

https://thevickypedia.github.io/NetSec/

License & copyright

© Vignesh Rao, NetSec

Licensed under the MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

NetSec-0.9.1a0-py3-none-any.whl (23.4 kB view details)

Uploaded Python 3

File details

Details for the file NetSec-0.9.1a0-py3-none-any.whl.

File metadata

  • Download URL: NetSec-0.9.1a0-py3-none-any.whl
  • Upload date:
  • Size: 23.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for NetSec-0.9.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 e4507689ce3a0249e175fef0d50d123c9251b77c2f871bb0b644599efaa9eb62
MD5 52031d59789abb6bea4d0138c101f7e6
BLAKE2b-256 4174eefb4cc68a95982d36ca460d1526710759857715c8fb5a5a4c3487dfd101

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page