{"id":13815703,"url":"https://github.com/cornerpirate/socat-shell","last_synced_at":"2025-05-15T09:33:18.131Z","repository":{"id":101256943,"uuid":"51088107","full_name":"cornerpirate/socat-shell","owner":"cornerpirate","description":"Socat can be used to establish a reverse shell with bash tab completion and full shell functionality","archived":false,"fork":false,"pushed_at":"2016-02-04T16:35:31.000Z","size":666,"stargazers_count":147,"open_issues_count":0,"forks_count":42,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-08-04T04:09:22.616Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cornerpirate.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-04T16:17:08.000Z","updated_at":"2024-08-02T10:28:44.000Z","dependencies_parsed_at":"2023-04-27T03:56:02.627Z","dependency_job_id":null,"html_url":"https://github.com/cornerpirate/socat-shell","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/cornerpirate%2Fsocat-shell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cornerpirate%2Fsocat-shell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cornerpirate%2Fsocat-shell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cornerpirate%2Fsocat-shell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cornerpirate","download_url":"https://codeload.github.com/cornerpirate/socat-shell/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225342817,"owners_count":17459480,"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-04T04:03:55.141Z","updated_at":"2024-11-19T11:30:54.576Z","avatar_url":"https://github.com/cornerpirate.png","language":"Shell","funding_links":[],"categories":["Shell","\u003ca id=\"01e6651181d405ecdcd92a452989e7e0\"\u003e\u003c/a\u003e工具"],"sub_categories":["\u003ca id=\"e9f97504fbd14c8bb4154bd0680e9e62\"\u003e\u003c/a\u003e反向代理"],"readme":"# socat-shell\n\nWhen you get a shell on a linux server you get a really limited level of interactivity.\nYou can use socat to establish a fully interactive shell which allows:\n* Tab autocompletion\n* Job management by CTRL+C and CTRL+Z etc\n* Bash history via CTRL+R etc. \nBasically you get bash as if you are SSHed into the target.\n\nIn order to get this goodness you need to:\n* 1) Already have a shell on the victim\n* 2) Have a means of uploading files to the victim\n* 3) Have an established means of communicating to your listener (using TCP).\nThis tool is not going to find any vulnerbilities for you, or confirm egress filtering. \nThis will only be useful in elevating your existing shell to a more functional one.\n\nThe victim must either have \"socat\" installed, or both \"gcc\" and \"make\" so that compilation is possible.\n\nYour listener server must have \"socat\" installed (by default on Kali).\n\nUpload the socat.tar file to your victim, and use your existing shell access to extract that.\nBy executing \"socat-shell.sh\" you will achieve the following:\n* 1) Check for the existence of the \"socat\" binary in the current directory.\n* 2) If it does not find that then it will check for \"gcc\" and \"make\".\n* 3) If those pre-reqs are met, then it will extract the socat source and compile it\n* 4) When successful the binary for \"socat\" will now exist in the current directory. Additionally, the last lines of output will show how to start your listener and how to execute the connection back from the victim.\n\nDislaimer\n\nFor research purposes only, do not use this on any target which you do not have permission to do so.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcornerpirate%2Fsocat-shell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcornerpirate%2Fsocat-shell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcornerpirate%2Fsocat-shell/lists"}