{"id":22492486,"url":"https://github.com/six-two/shell-command-logger","last_synced_at":"2025-03-27T20:30:24.677Z","repository":{"id":57466708,"uuid":"471405766","full_name":"six-two/shell-command-logger","owner":"six-two","description":"Logs command outputs","archived":false,"fork":false,"pushed_at":"2023-09-13T18:25:18.000Z","size":319,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T06:48:12.535Z","etag":null,"topics":["logging","pentest","python","scriptreplay"],"latest_commit_sha":null,"homepage":"https://shell-command-logger.six-two.dev","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/six-two.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-18T14:44:25.000Z","updated_at":"2024-12-30T09:26:26.000Z","dependencies_parsed_at":"2022-09-19T09:01:18.264Z","dependency_job_id":null,"html_url":"https://github.com/six-two/shell-command-logger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/six-two%2Fshell-command-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/six-two%2Fshell-command-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/six-two%2Fshell-command-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/six-two%2Fshell-command-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/six-two","download_url":"https://codeload.github.com/six-two/shell-command-logger/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245919536,"owners_count":20693902,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["logging","pentest","python","scriptreplay"],"created_at":"2024-12-06T18:18:03.745Z","updated_at":"2025-03-27T20:30:24.649Z","avatar_url":"https://github.com/six-two.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shell command logger (scl)\n[![PyPI version](https://img.shields.io/pypi/v/shell_command_logger)](https://pypi.org/project/shell_command_logger/)\n![License](https://img.shields.io/pypi/l/shell_command_logger)\n![Python versions](https://img.shields.io/pypi/pyversions/shell_command_logger)\n\nThis program uses the linux `script` and `scriptreplay` commands to record and replay the output of any desired commands.\n\n## Documentation\n\nThis README just contains basic usage information.\nFor more please consult the [documentation](https://shell-command-logger.six-two.dev/).\nIt is also provided in the `docs` folder and can be locally viewed by following these steps:\n\n1. Install development dependencies (only required once):\n    ```bash\n    python3 -m pip install -r requirements-dev.txt\n    ```\n2. Building the documentation and starting a local webserver:\n    ```bash\n    mkdocs serve\n    ```\n3. Open [localhost:8000](http://localhost:8000)\n\n\n## Installation\n\nInstall via `pip`:\n```bash\npip install shell-command-logger[full]\n```\n\n## Usage\n\nTo record a command, you just prefix it with `scl log`:\n\n```bash\nscl log ls -1 /\n```\n\nYou can use `scl replay` to interactively choose and replay a file.\nWith `scl search` you can search logged commands.\nFor more information see the [documentation](https://shell-command-logger.six-two.dev/) or run `scl --help`.\n\n\n## Known issues\n\n- `script` does strange things to input (I think to `\\r`), so you should not wrap any netcat variants (`nc`, `ncat`, `netcat`).\n- `Ctrl+C` kills `scl`, even if the program you call would handle the key combination.\n    This is especially annoying with tools like `msfconsole`.\n\n\n## Notable changes\n\n### Version 0.4.1\n\n- By default do not attempt to deal with \"unnecessary\" `\\r` added by script ay more. It caused too many troubles. If you want/need the old behavior, set the environment variable `SCL_STRIP_CR` to the value `1`.\n- Pass `SIGINT` signals (usually triggered by `Ctrl-C`) to the process being logged instead of being interrupted -\u003e logging things like shells should work (better)\n- Removed aliases for problematic tools (msfconsole, nc, ncat, netcat)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsix-two%2Fshell-command-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsix-two%2Fshell-command-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsix-two%2Fshell-command-logger/lists"}