Skip to content

LD_PRELOAD hack to save shell commands in an sqlite database

Notifications You must be signed in to change notification settings

linuxthor/shellsee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

shellsee

LD_PRELOAD hack to save shell commands in an sqlite database.

Hooks calls to fork() in order to extract the command being run and saves it to a database (along with userid and timestamp.)

Build it with:

gcc -Wall -o shell_hook.so shell_hook.c -shared -ldl -lsqlite3

Load it with:

LD_PRELOAD=$(pwd)/shell_hook.so /bin/bash

About

LD_PRELOAD hack to save shell commands in an sqlite database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages