sudosh web replay
Project description
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
============
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sudosh-replay-0.0.2.tar.gz
(4.5 MB
view details)
File details
Details for the file sudosh-replay-0.0.2.tar.gz.
File metadata
- Download URL: sudosh-replay-0.0.2.tar.gz
- Upload date:
- Size: 4.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75339436f643f7ea97c592a2c1e85a7ef49a06cf36e1ea8645a2f4d863ec0a15
|
|
| MD5 |
0e1e13b1e4be01b5536ad973f0a190af
|
|
| BLAKE2b-256 |
6acaae45d085add8fb804d411b6d04c43bd9bb8bd8f95ddc5dfff99c4012d771
|