Coder Social home page Coder Social logo

martinuy / debugwatchdog Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 2.0 6.31 MB

Debug Watchdog: globally monitor your Linux system to stop chosen executable binaries so they can be debugged from the first instruction.

C 53.54% Shell 5.40% Makefile 20.30% Assembly 1.30% QMake 0.65% C++ 18.81%

debugwatchdog's Introduction

Debug Watchdog
=============================

Debug Watchdog is a tool to globally monitor your Linux system and
stop watched executable binaries immediately after launched. This
allows to attach a debugger on the first instruction and to explore
binary parameters. Every executable binary is caught: no matter who
launched it, when or how long the process lives. To achieve this,
kernel syscalls table is patched and sys_execve hooked. Original
syscalls table values are restored when Debug Watchdog is turned off.

Debug Watchdog has the following components:

 * Kernel driver
 * Library
 * Automated test
 * UI

Only one Debug Watchdog instance is allowed to run on a system at a time.

Requirements to run
=============================

 * Linux x86_64
 * Qt5 libraries
 * gnome-terminal
 * gdb
 * glibc

Debug Watchdog requires CAP_SYS_MODULE capabilities to work, as a
kernel module has to be dynamically loaded. "root" user usually
satisfies this condition.

Run the automated test to make sure that your system meets the 
requirements and binaries are caught: ./bin/debugwatchdogtest

Run from the UI: ./bin/debugwatchdogui

Debug Watchdog is known to work in the following systems:

 * Fedora 25 - Linux kernel 4.13.16-101

How to build
=============================

Install the following build dependencies:

 * QtCreator
 * gcc
 * Linux kernel headers
 * glibc headers

Config:

 * Edit deploy.sh and:
  * set KERNEL_HEADERS_PATH variable pointing to your kernel headers
  * review other configurations (i.e.: debug or release build)

Run builder:

 * ./deploy.sh
  * Binaries will be placed in "bin" folder, and "bin.tar.gz" file (packing all binaries) generated.


Changelog
=============================

Version: 1.1 - 2018-05-22

 * Bug fixes
 * Documentation enhanced
 * Minor code style improvements
 * Minor build system improvements

.............................

Version: 1.0 - 2017-11-10

 * Initial version

.............................


License and credits
=============================

Debug Watchdog is under GPL license. See docs/gpl.txt for
further information.

Original author: Martin Balao (martin.uy)
Contributors: Martin Di Paola (@eldipa at GitHub.com)

Want to contribute? Join us on GitHub [1] :-)

--
[1] - https://github.com/martinuy/debugwatchdog

debugwatchdog's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.