https://github.com/caputomarcos/gotcha
GOTCHA - The SSH-TTY control Interface
https://github.com/caputomarcos/gotcha
linux python310 strace
Last synced: 2 months ago
JSON representation
GOTCHA - The SSH-TTY control Interface
- Host: GitHub
- URL: https://github.com/caputomarcos/gotcha
- Owner: caputomarcos
- License: mit
- Created: 2022-03-12T19:15:35.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-06-02T19:48:29.000Z (almost 3 years ago)
- Last Synced: 2025-09-19T21:35:36.923Z (6 months ago)
- Topics: linux, python310, strace
- Language: Python
- Homepage: https://blog.essavida.ai/the-ssh-tty-control-interface/
- Size: 53.8 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
GOTCHA - The SSH-TTY control Interface
======================================
Requirements
------------
* Python 3.10.7
* Linux syscall tracer `(strace)`
* Root Privileges Required.
Installation
------------
From source::
git clone https://github.com/caputomarcos/gotcha.git
cd gotcha
python3 -m venv venv
source venv/bin/activate
pip install -r requirements-dev.txt
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