Skip to main content

SSH-TTY control Interface

Project description

GOTCHA - The SSH-TTY control Interface

Requirements

  • Python 3.10.7
  • Linux syscall tracer (strace) https://strace.io/
  • Root Privileges Required.

Installation

From source::

git clone https://github.com/caputomarcos/gotcha.git
cd gotcha
make build && make pyinstaller
sudo make install

From pypi::

sudo su -
pip3 install ttyGotcha

Usage::

$ gotcha 
    usage: gotcha [-h] [-v] [-q] [-l] [-s [{1,2,3}]] [-t [tty]] [-a] [--replay [session]] [--speed [speed]] [--snapshot [session]]

    ·:.                                                            .:·

         ██████╗  ██████╗ ████████╗ ██████╗██╗  ██╗ █████╗ ██╗██╗██╗
        ██╔════╝ ██╔═══██╗╚══██╔══╝██╔════╝██║  ██║██╔══██╗██║██║██║
        ██║  ███╗██║   ██║   ██║   ██║     ███████║███████║██║██║██║
        ██║   ██║██║   ██║   ██║   ██║     ██╔══██║██╔══██║╚═╝╚═╝╚═╝
        ╚██████╔╝╚██████╔╝   ██║   ╚██████╗██║  ██║██║  ██║██╗██╗██╗
         ╚═════╝  ╚═════╝    ╚═╝    ╚═════╝╚═╝  ╚═╝╚═╝  ╚═╝╚═╝╚═╝╚═╝

    .:·                                                             ·:.

    options:
    -h, --help            show this help message and exit
    -v, --verbose         Turn on verbose output
    -q, --quiet           Enable quiet mode
    -l, --list            List available SSH Sessions
    -s [{1,2,3}], --session-files [{1,2,3}]
                            List Session Files
    -t [tty], --tty [tty]
                            Point GOTCHA to specific TTY
    -a, --auto            Lazy mode, auto-attach to first found session
    --replay [session]    Play previously recorded session
    --speed [speed]       Playback Speed
    --snapshot [session]  Export Session Output to Text Format


        *** root privileges required for this software. ***

WITH sudo::

sudo gotcha
usage: gotcha [-h] [-v | -q] [-l | -s [{1,2,3}] | -t [tty] | -a | --replay [session]]

Community Distributions

Feel free! All contributions are welcome. =)

TO DO

  -v, --verbose         Turn on verbose output
  -q, --quiet           Enable quiet mode

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ttyGotcha-1.0.1.tar.gz (21.1 kB view hashes)

Uploaded Source

Built Distribution

ttyGotcha-1.0.1-py3-none-any.whl (15.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page