GithubHelp home page GithubHelp logo

fuzzmonitor's Introduction

FuzzMonitor

FuzzMonitor is a powerful shell script designed to monitor processes, detect crashes, and manage core dumps. It helps system administrators and developers keep track of process crashes and configure core dumps efficiently.

Features

  • Monitors specified processes for crashes
  • Configures core dumps to be stored in a designated directory
  • Provides real-time crash detection and logging
  • Automatically manages core dump settings
  • User prompts for setting system time and initializing logs

Getting Started

Prerequisites

  • Linux-based system
  • Root privileges to modify system configurations

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/FuzzMonitor.git
    cd FuzzMonitor
  2. Make the script executable:

    chmod +x FuzzMonitor.sh

Usage

Run the script with the following syntax:

syntax: ./FuzzMonitor.sh <process name list>
sample: ./FuzzMonitor.sh "bluetoothd|wpa_supplicant|hostapd|networkmanager|dhclient|wifid|nm-applet|iwlwifi|hcidump|bluez"

Script Options

  • Core Dump Activation: The script prompts the user to enable core dump settings.
  • System Time Configuration: Users can manually set the system time if needed.
  • Log Initialization: Option to initialize the crash log file.

How It Works

  1. Core Dump Configuration: The script checks and optionally configures the system for core dumps.
  2. Crash Monitoring: It continuously monitors specified processes and logs any crashes detected.
  3. Crash Count: Keeps a count of the number of crashes detected.
  4. Report and Crash Dump Storage: The crash reports and core dumps are saved in the fuzz directory. The crash report file is named report_crash.log and the core dumps are stored in the fuzz/crash directory.

Terminal Example

[*] Remounting root filesystem in read-write mode...
[*] Checking current core dump setting...
[*] Current core dump setting: 0
[+] Core dump is currently disabled. Enabling core dump...
[+] Core dump enabled.
[*] Backing up existing configuration files...
[*] Backup completed.
[*] Configuring core dump settings for root in /etc/security/limits.conf...
[*] Core dump settings for root configured in /etc/security/limits.conf.
[*] Configuring core dump settings in /etc/security/limits.conf...
[*] Core dump settings configured in /etc/security/limits.conf.
[*] Configuring core dump file pattern in /etc/sysctl.conf...
[*] Core dump file pattern configured in /etc/sysctl.conf.
[*] Applying sysctl changes...
[*] Core dump configuration process completed.

.########.##.....##.########.########....##.....##..#######..##....##.####.########..#######..########.
.##.......##.....##......##.......##.....###...###.##.....##.###...##..##.....##....##.....##.##.....##
.##.......##.....##.....##.......##......####.####.##.....##.####..##..##.....##....##.....##.##.....##
.######...##.....##....##.......##.......##.###.##.##.....##.##.##.##..##.....##....##.....##.########.
.##.......##.....##...##.......##........##.....##.##.....##.##..####..##.....##....##.....##.##...##..
.##.......##.....##..##.......##.........##.....##.##.....##.##...###..##.....##....##.....##.##....##.
.##........#######..########.########....##.....##..#######..##....##.####....##.....#######..##.....##

                                                                                                dev. keyme

[+] System Time: Mon Jun 24 10:14:30 UTC 2024.
[+] Are you going to set the system time manually? (y/n): n
[+] Do you want to initialize the ./fuzz/report_crash.log file? (y/n): y
[*] The ./fuzz/report_crash.log file has been initialized.
[+] Do you want to set the count setting? (y/n): y
[*] Starting crash detector
===================[!] A process crash has been detected! [Crash Count: 1]===================
[+] Crash time: Mon Jun 24 10:20:30 UTC 2024
-700 /usr/bin/bluetoothd
=============================================================================================

This README.md file includes all the information about the FuzzMonitor project, with a clear explanation of how to use the script and where the logs and core dumps are stored.

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.