Skip to content

Server Monitoring Tool is designed to monitor file activities on a server, detecting unauthorized file modifications or suspicious uploads like webshells

License

Notifications You must be signed in to change notification settings

lamcodeofpwnosec/server-monitoring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Server Monitoring Tool

This Server Monitoring Tool is designed to monitor file activities on a server, detecting unauthorized file modifications or suspicious uploads like webshells. The tool runs in real-time and monitors file creation, modification, deletion, and updates. It also uses Yara rules to detect potentially malicious files, such as webshells or unauthorized scripts.

Features

  • Real-time file monitoring: Monitors directories for new, modified, or deleted files.
  • Malicious file detection: Uses Yara rules to scan and detect suspicious files such as webshells.
  • Configurable directories: Customize the directories to monitor by updating the configuration file.
  • Log and alert system: Logs all file activities and alerts on suspicious file detections.

## Installation

  1. Clone the repository:
   git clone https://github.com/lamcodeofpwnosec/server-monitoring.git
   cd server-monitoring
  1. Install required dependencies:
sudo apt-get install python3 python3-pip libyara3 yara
pip install inotify-simple yara-python paramiko
  1. Set up your directories to monitor by editing the config.py file in the /src/ directory.
  2. Start the file monitoring tool:
python3 src/monitor.py

Usage

  • Modify config.py to include the directories you want to monitor.
  • Define your custom Yara rules in the yara_rules/malicious_rules.yar file.
  • Run monitor.py to start the monitoring process. It will scan all detected file changes and log potential threats.

Note

Copyright ©lamcodeofpwnosec

About

Server Monitoring Tool is designed to monitor file activities on a server, detecting unauthorized file modifications or suspicious uploads like webshells

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published