{"id":19544866,"url":"https://github.com/ariary/sexonthebash","last_synced_at":"2025-09-13T22:34:27.486Z","repository":{"id":109493400,"uuid":"396670989","full_name":"ariary/sexonthebash","owner":"ariary","description":"Unprivileged and stealth shell input and output listeners. Differerent approach for keylogging with Shell/bash. ","archived":false,"fork":false,"pushed_at":"2023-10-13T12:56:33.000Z","size":49,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T17:11:38.853Z","etag":null,"topics":["bash","golang","keylogger","pentest","spy"],"latest_commit_sha":null,"homepage":"","language":"Go","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/ariary.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-16T07:19:39.000Z","updated_at":"2024-06-28T10:54:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"36068bf8-2a36-4060-a826-59e2ff1282c5","html_url":"https://github.com/ariary/sexonthebash","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariary%2Fsexonthebash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariary%2Fsexonthebash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariary%2Fsexonthebash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariary%2Fsexonthebash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ariary","download_url":"https://codeload.github.com/ariary/sexonthebash/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251041419,"owners_count":21527189,"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":["bash","golang","keylogger","pentest","spy"],"created_at":"2024-11-11T03:32:41.102Z","updated_at":"2025-04-26T19:31:45.534Z","avatar_url":"https://github.com/ariary.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# sexonthebash 🍹\n\n\u003cdiv align=center\u003e\n\n\u003chr size=15px color=\"ff5733\" width=75%\u003e\n\u003ch3\u003e\u003ci\u003eTL;DR\u003c/i\u003e\u003c/h3\u003e\nNo talks needed,  drinks are on me. I want to use it [\u003ca href=\"#-usage\"\u003e🚀\u003c/a\u003e]\n\n\u003chr size=15px color=\"ff5733\" width=75%\u003e\n\u003c/div\u003e\n\nStealth shell input and output listeners. Differerent approach for keylogging with Shell. \n\nIt provides 2 utilities imitating a shell to capture input and output:\n - `sexonthebash`: capture output and input of **bash** commands (`script`,`screen -L -Logfile session.log` equivalent)\n - `shellonthebeach`: capture input and output of **/bin/sh** command (the same thing as `sexonthebash` with less vodka)\n\nYou are free to do what you want with these data afterwards (DNS exfiltration, etc).\n\nCould be used to:\n- spy on other users on the same machine, for CTF for example\n- get an interactive `/bin/sh` interactive (ie. With arrow keys, backspace etc)\n\n\n| ***Just for educational purposes, do not use it if against someone in real-life if you do not have permission*** |\n|:------------------------------------------------------------------------------------------------------------------:|\n|*Any idea, criticism, contribution is welcome*|\n\n\n\n## 🔦 Idea\n\nProvide a different approach for keylogging (log only command on `bash`/`sh`). But some juicy information could be grabbed from it.\n\nThe aim of `sexonthebash` is to be launched under a bash session by any means and to imitate bash behaviour to lure the victim in a way that the victim doesn't feel like they're somewhere other than a bash session.\n\nIdem for `shellonthebeach`, to be launched in place of a `sh` tty\n\n## 💺 Installation\n### Download binary\nFrom [releases](https://github.com/ariary/sexonthebash/releases) section\n\n### From source\n#### Prerequisite\n\n - golang installed\n - make installed\n - be ill-intentioned\n \n Clone the repo and download the dependencies locally:\n\n```\ngit clone https://github.com/ariary/AravisFS.git\nmake before.build\n```\n\n### sexonthebash\n\tmake build.sexonthebash\n\n### shellonthebeach\n\tmake build.shellonthebeach\n\n## 🚀 Usage \n\nLaunch it, and exec your usual shell commands. If you see nothing suspect it is perfect.\n\n### Launch sexonthebash\nIn a bash session:\n```\n./stealth_bash.sh\n```\nLaunch the command `exit` to exit the listener and find the log in `.input.log` and `.output.log`\n\n### Launch shellonthebeach\nIn a sh session:\n```\n./stealth_shell.sh\n```\nLaunch the command `exit` to exit the listener. Nothing is done with captured commands from now\n\n## 💭Limits/improvements\n\n📬 **Please tell me if you see some bugs,improvements etc!** (with issue, PR etc)\n\n### shellonthebeach\n\n- The command outputs are not printing in real-time\n- Nothing is done with captured commands\n\n### sexonthebash\n\nBe able to store (or send to a remote place) the captured output and input in a near real time (ie. A way to not waiting anymore that the user has finished his bash session to get those data)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fariary%2Fsexonthebash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fariary%2Fsexonthebash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fariary%2Fsexonthebash/lists"}