Git Product home page Git Product logo

minidetector's Introduction

Mini Detector

A small network assets detector example

The mini detector sniff network packets (using scapy) and store all the mac-ip couples into a table in a postgres database.

It was written as a base for job interviews questions, you may use it for inspiration, but you really don't want to use it in production :)

How to install

If you just want to run it: python setup.py install

If you want to develop as well: python setup.py develop

Pre-requisites

The project expects to run on a server that runs a postgres server. In addition, the postgres should have a db called "minidetector", owned by a user called "detector".

In order to setup the database on MacOS, run: ./setup_scripts/initialize_db_macos.sh

How to run

(venv) amit@computer /Users/amit/work/minidetector$ python -m minidetector.main
INFO:root:Added entity <Entity id=5 MAC=4c:32:75:93:8f:fb IP=10.0.0.3>
INFO:root:Added entity <Entity id=6 MAC=00:b8:c2:26:9d:bc IP=52.1.192.91>
INFO:root:Added entity <Entity id=7 MAC=00:b8:c2:26:9d:bc IP=104.103.211.85>
INFO:root:Added entity <Entity id=8 MAC=00:b8:c2:26:9d:bc IP=176.223.141.167>
INFO:root:Added entity <Entity id=9 MAC=00:b8:c2:26:9d:bc IP=3.123.217.208>
INFO:root:Added entity <Entity id=10 MAC=00:b8:c2:26:9d:bc IP=10.0.0.138>
INFO:root:Added entity <Entity id=11 MAC=9c:30:5b:25:1b:d5 IP=10.0.0.2>
INFO:root:Added entity <Entity id=12 MAC=00:b8:c2:26:9d:bc IP=143.204.194.95>

You may use the --help flag to see all available flags.

minidetector's People

Contributors

amit7itz avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Forkers

adiha2033

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.