Skip to content

bash history collector. Web (php/mysql) component plus bash functions

Notifications You must be signed in to change notification settings

fredsmith/history-db

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

history-db

About

History DB is very similar to the shell-sink project (https://github.com/joshuacronemeyer/shellsink), but with the goal of being as easy to install, and as portable, as possible.

It consists of 2 parts

  • A server component built on a very simple mysql database and php installation
  • A pair of bash functions that can be included in a bashrc file to automatically post commands run to the web server, and to download and sync the local bash history file with the server.

Configuration

  • Create the MySQL database on your central server using db/schema.sql and grant your web server appropriate access to that database.

  • make the web directory accessible on a web server with php and php-mysql.

  • Modify the php files to include a new download password (for download.php) and the MySQL connection parameters (for both download.php and index.php)

  • include bash/bashrc-funcs in your bashrc somehow, either with a source statement, or copy+paste

  • add the following to your bash $PROMPT_COMMAND variable: post_history; history -a

About

bash history collector. Web (php/mysql) component plus bash functions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published