Coder Social home page Coder Social logo

opensource404 / snoopy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from a2o/snoopy

0.0 0.0 0.0 2.28 MB

Snoopy Command Logger is a small library that logs all program executions on your Linux/BSD system.

License: GNU General Public License v2.0

Shell 24.30% C 64.74% Makefile 4.35% M4 6.60%

snoopy's Introduction

Snoopy Command Logger

Table of contents

What is Snoopy?

Snoopy is a small library that logs all program executions on your Linux/BSD system.

Developer documentation outlines how it actually does that (a fairly technical read). And don't miss the security disclaimer about it.

News

Date What? Details
2022-09-28 Snoopy 2.5.1 released. Bugfix release - fixed 32-bit builds.
2022-08-19 Snoopy 2.5.0 released. Thread safety by default & binary distribution packages are finally here! :)
2021-10-17 Snoopy 2.4.15 released. Bugfix release (work around the unexpected NULL argv, #201).

Consult ChangeLog for more information.

Latest version

Latest release Version Status Download location
Stable 2.5.1 Build QA - OS Matrix (Large) / stable
Build QA - Config Matrix (Large) / stable
Code QA - Autoscan / stable
Code QA - Valgrind / stable
All release packages can be found over there ๐Ÿ‘‰ in the Releases section.
Development master Build QA - OS Matrix (Large) / master
Build QA - Config Matrix / master
Code QA - Autoscan / master
Code QA - Valgrind / master
Coverity Scan
SonarCloud:
SonarCloud - Bugs
SonarCloud - Code Smells
SonarCloud - Coverage
SonarCloud - Duplicated Lines (%)
SonarCloud - Maintainability Rating
SonarCloud - Quality Gate Status
SonarCloud - Reliability Rating
SonarCloud - Security Rating
SonarCloud - Technical Debt
SonarCloud - Vulnerabilities
git clone [email protected]:a2o/snoopy

Installation

Install QA - README.md / master Install QA - install-snoopy.sh / install Install QA - OS Matrix - Install from git Release QA - OS Matrix - Install from source

Starting with version 2.5.0, repositories with binary packages are provided for major Linux distributions. Here is a guide to installing Snoopy from package repositories.

WARNING: If you've installed Snoopy from source (i.e. using the install-snoopy.sh script method below) before, it's best to remove it before installing it from a package repository. This guide contains steps to remove "manually" installed Snoopy from your system.

Alternatively, the original method of installing Snoopy from source is still available:

wget -O install-snoopy.sh https://github.com/a2o/snoopy/raw/install/install/install-snoopy.sh &&
chmod 755 install-snoopy.sh &&
sudo ./install-snoopy.sh stable

More information is available in the doc/INSTALL.md document.

Output

This is what typical Snoopy output looks like:

2015-02-11T19:05:10+00:00 labrat-1 snoopy[896]: [uid:0 sid:11679 tty:/dev/pts/2 cwd:/root filename:/usr/bin/cat]: cat /etc/fstab.BAK
2015-02-11T19:05:15+00:00 labrat-1 snoopy[896]: [uid:0 sid:11679 tty:/dev/pts/2 cwd:/root filename:/usr/bin/rm]: rm -f /etc/fstab.BAK
2015-02-11T19:05:19+00:00 labrat-1 snoopy[896]: [uid:0 sid:11679 tty:/dev/pts/2 cwd:/root filename:/usr/bin/tail]: tail -f /var/log/messages

These are default output locations on various Linux distributions:

Distribution Snoopy output location Notes
CentOS /var/log/secure
Debian /var/log/auth.log
Ubuntu /var/log/auth.log
(others) /var/log/messages (potentially, could be elsewhere)

For actual output format and destination, check your Snoopy and syslog configuration.

Configuration

If the configuration file support is available in your Snoopy build (it probably is), Snoopy can be reconfigured on-the-fly.

The configuration file is (most likely, but depending on the build) located at /etc/snoopy.ini.

Supported configuration directives are explained in the default configuration file.

FAQ - Frequently asked questions

Frequently asked questions and answers are collected in the doc/FAQ.md file in this repository.

Security disclaimer

WARNING: Snoopy is not a reliable auditing solution.

Rogue users can easily manipulate environment to avoid their actions being logged by Snoopy. Consult this FAQ entry for more information.

Contributing to Snoopy development

Consult the following documents for information related to Snoopy development:

Getting support

Information is available in a dedicated document about getting support.

License

Snoopy is released under GNU General Public License version 2.

Online resources

Snoopy development is located at the following URI:

Additional git repository mirrors (read-only) are available here:

Credits

Snoopy Command Logger was originally created and maintained by:

Contribution acknowledgements are available at the following locations:

Snoopy is currently maintained by Bostjan Skufca Jese.

snoopy's People

Contributors

bostjan avatar deatharse avatar teon-git avatar jwilk avatar lukas227 avatar xyproto avatar bskufcate avatar bcg62 avatar xiongchiamiov avatar jarlob avatar josephfrazier avatar jburnham avatar marcosfouces avatar migueloangelo avatar moceap avatar nhooey avatar pskyne avatar ken3 avatar gitter-badger 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.