{"id":13578703,"url":"https://github.com/b23r0/cliws","last_synced_at":"2025-04-05T19:33:32.753Z","repository":{"id":50737257,"uuid":"420583751","full_name":"b23r0/cliws","owner":"b23r0","description":"Cross platform interactive bind/reverse PTY shell","archived":false,"fork":false,"pushed_at":"2023-11-06T02:19:16.000Z","size":1985,"stargazers_count":154,"open_issues_count":0,"forks_count":26,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-05T16:48:12.641Z","etag":null,"topics":["interactive-shell","pentest","reverse-shell","terminal","websocket"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/b23r0.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-10-24T04:10:07.000Z","updated_at":"2024-10-23T01:35:45.000Z","dependencies_parsed_at":"2024-01-16T20:29:03.720Z","dependency_job_id":"fbb52069-af56-4196-8597-76e968c74907","html_url":"https://github.com/b23r0/cliws","commit_stats":{"total_commits":83,"total_committers":2,"mean_commits":41.5,"dds":"0.14457831325301207","last_synced_commit":"b028e1340635629f351518caef666eea8a8bda74"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b23r0%2Fcliws","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b23r0%2Fcliws/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b23r0%2Fcliws/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b23r0%2Fcliws/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/b23r0","download_url":"https://codeload.github.com/b23r0/cliws/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247393095,"owners_count":20931804,"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":["interactive-shell","pentest","reverse-shell","terminal","websocket"],"created_at":"2024-08-01T15:01:33.015Z","updated_at":"2025-04-05T19:33:30.218Z","avatar_url":"https://github.com/b23r0.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# Cliws [![Build Status](https://img.shields.io/github/workflow/status/b23r0/cliws/Rust)](https://app.travis-ci.com/b23r0/Cliws) [![ChatOnDiscord](https://img.shields.io/badge/chat-on%20discord-blue)](https://discord.gg/ZKtYMvDFN4) [![LastCommit](https://img.shields.io/github/last-commit/b23r0/cliws)](https://github.com/b23r0/Cliws/) [![Crate](https://img.shields.io/crates/v/cliws)](https://crates.io/crates/cliws)\nLightweight interactive bind/reverse PTY shell implementation by Rust.\n\n# Features\n\n* WebSocket\n* Full pty support: VIM, SSH, readline, Ctrl+X\n* Auto set terminal window size.\n* Reverse connection / Bind port\n* Support Win10+(Windows Server 2019+) \u0026 Linux \u0026 BSD \u0026 OSX\n\n# Build \u0026 Run\n\n`$\u003e cargo build --release`\n\n`$\u003e ./target/release/cliws`\n\n# Installation\n\n`$\u003e cargo install cliws`\n\n# Usage\n\n## Bind Mode\n\nYou can run a bash and listen port at 8000\n\n`$\u003e ./cliws -p 8000 bash -i`\n\nthen connect and get a comfortable shell.\n\n`$\u003e ./cliws -c ws://127.0.0.1:8000`\n\n## Reverse Mode\n\nFirst listen a port wait for shell\n\n`$\u003e ./cliws -l 8000`\n\nthen build a reverse connection\n\n`$\u003e ./cliws -r ws://127.0.0.1:8000 bash -i`\n\n# Example\n\n## Linux\n\n![image]( https://github.com/b23r0/Cliws/blob/main/example/cliws-vim.gif)\n\n## Windows(Reverse Mode)\n\n![image]( https://github.com/b23r0/Cliws/blob/main/example/cliws-windows.gif)\n\n# Invalid Characters\n\nIn Windows(Windows Terminal), the default `CodePage` encoding is UTF-8. When encountering the target of other language operating systems, invalid characters may occur. You can try the following methods to solve it.\n\nOpen Regedit and modified `[Machine]\\HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Nls\\CodePage\\OEMCP` value is 65001(DEC).\n\n# Reference\n\n* https://github.com/t57root/amcsh\n\n* https://github.com/philippkeller/rexpect\n\n* https://github.com/zhiburt/conpty\n\n* https://securityonline.info/conptyshell-interactive-reverse-shell/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb23r0%2Fcliws","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb23r0%2Fcliws","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb23r0%2Fcliws/lists"}