Code Monkey home page Code Monkey logo

netdahar's Introduction

status Linkedin Facebook Blog Email

๐Ÿ”ณ NetDahar


NetDahar logs network activities of each process with the following data:

  • Process Name
  • Process PID
  • Source File of The Process
  • Opened Files by The Process
  • Commandline of The Process
  • Username of The Process
  • Source IP
  • Source Port
  • Remote IP
  • Remote Port
  • CPU Percentage
  • Log Time
Hopefully, if multiple processes with the same name are found, but they have different source IP or, source port or, remote IP or, remote port then NetDahar will log each of those processes individually by adding an unique numerical value with each process name so that, you can differentiate between them.


๐Ÿ““ Required Python3 Modules:

Install these modules using pip3 as root/administrator if not installed:
  • psutil
  • threading
  • json
  • collections

๐Ÿ”ฐ How to Use (Linux):

1. After cloning NetDahar, go to its directory using cd NetDahar command.
2. Now run the netdahar.py script using sudo python3 netdahar.py command. Logging will be started at this point.

Note: If you want to continuously store logs then, add the netdahar.py script to crontab for running it on startup automatically (details).


๐Ÿ”ฐ How to Use (Windows):

(NetDahar is created for Linux but also works in Windows)

1. After cloning NetDahar, open an Administrator command prompt and go to its directory using cd NetDahar command.
2. Now run the netdahar.py script using python netdahar.py command. Logging will be started at this point.

Note: If you want to continuously store logs then, add the netdahar.py script to autorun registry key to run it on each reboot automatically (details).


๐Ÿ“‹ View The Logs

NetDahar will store logs by creating a file with today's date in the './NetDahar/Report' directory. And if you add NetDahar to startup then it'll store each day's logs by creating file with that day's date. And logs are written to the log file after every 20 seconds.

netdahar's People

Contributors

mamun-sec avatar

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.