Skip to main content
Introduction
============
sudosh-replay is a web replay of sudosh. web is base on flask,It is microframework
for python . sudosh is an auditing shell filter and can be used as a login shell.
Sudosh records all keystrokes and output and can play
back the session as just like a VCR. for more infomation of sudosh ,please see
http://sourceforge.net/projects/sudosh2/?source=navbar. The web replay is inspired by
TermRecord ,https://github.com/theonewolf/TermRecord


Running Tests
=============
Install and config sudosh2.
1.down load suosh2 from http://sourceforge.net/projects/sudosh2/
2.make;install
3.vim /etc/sudosh.conf
# Sudosh Configuration File
logdir = /var/log/sudosh
default shell = /bin/sh
delimiter = -
syslog.priority = LOG_INFO
syslog.facility = LOG_LOCAL2
clearenvironment = no

# Allow Sudosh to execute -c arguments? If so, what?
-c arg allow = scp
-c arg allow = rsync
4.modify user login shell
vim /etc/password
root:x:0:0:root:/root:/usr/local/bin/sudosh
5.vim /etc/shells
/bin/sh
/bin/bash
/sbin/nologin
/bin/dash
/bin/tcsh
/bin/csh
/usr/local/bin/sudosh
6. vim /etc/default/useradd
# useradd defaults file
GROUP=100
HOME=/home
INACTIVE=-1
EXPIRE=
#SHELL=/bin/bash
SHELL=/usr/local/bin/sudosh
SKEL=/etc/skel
CREATE_MAIL_SPOOL=yes
-----------------------------------------------------
install sudosh-replay
1.install virtualenv,pip install virtualenv
2.mkdir sudosh-replay
3./usr/local/python/bin/envirtualenv env;. env/bin/activate
4.wget https://pypi.python.org/packages/source/p/pbr/pbr-0.8.2.tar.gz --no-check-certificate
5.wget https://pypi.python.org/packages/source/s/sqlalchemy-migrate/sqlalchemy-migrate-0.9.1.tar.gz#md5=5f0237ed55041b9a831d4d18d0a46f53 --no-check-certificate
6.pip install -r requirements.txt
7.pip install sudosh-replay,or python setup.py install
7.run application: sudosh_replay.py

Release files for sudosh-replay 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sudosh-replay 0.0.2
File Size Uploaded
sudosh-replay-0.0.2.tar.gz 4.5 MB Details

Release files / sudosh-replay-0.0.2.tar.gz

Download URL sudosh-replay-0.0.2.tar.gz
Size 4.5 MB
Tags Source
SHA-256 checksum
How to use checksums
75339436f643f7ea97c592a2c1e85a7ef49a06cf36e1ea8645a2f4d863ec0a15
BLAKE2b-256 checksum
How to use checksums
6acaae45d085add8fb804d411b6d04c43bd9bb8bd8f95ddc5dfff99c4012d771
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page