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
Install these modules using
pip3
as root/administrator if not installed:psutil
threading
json
collections
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).
(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).
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.