{"id":13509283,"url":"https://github.com/nodauf/Girsh","last_synced_at":"2025-03-30T13:32:00.549Z","repository":{"id":45417640,"uuid":"343406402","full_name":"nodauf/Girsh","owner":"nodauf","description":"Automatically spawn a reverse shell fully interactive for Linux or Windows victim","archived":false,"fork":false,"pushed_at":"2023-04-15T14:50:51.000Z","size":1127,"stargazers_count":351,"open_issues_count":6,"forks_count":47,"subscribers_count":8,"default_branch":"main","last_synced_at":"2024-08-02T02:13:34.453Z","etag":null,"topics":["conpty","go","golang","pentest","redteam","reverse-shell"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nodauf.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}},"created_at":"2021-03-01T12:21:11.000Z","updated_at":"2024-07-30T18:04:14.000Z","dependencies_parsed_at":"2022-08-31T01:15:43.735Z","dependency_job_id":"e5d77fa1-dfe4-4268-8531-a0bff5b1174f","html_url":"https://github.com/nodauf/Girsh","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodauf%2FGirsh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodauf%2FGirsh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodauf%2FGirsh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodauf%2FGirsh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nodauf","download_url":"https://codeload.github.com/nodauf/Girsh/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222552801,"owners_count":17002160,"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":["conpty","go","golang","pentest","redteam","reverse-shell"],"created_at":"2024-08-01T02:01:05.644Z","updated_at":"2024-11-01T09:31:16.519Z","avatar_url":"https://github.com/nodauf.png","language":"Go","funding_links":[],"categories":["Go","redteam"],"sub_categories":[],"readme":"[![Go Report Card](https://goreportcard.com/badge/github.com/nodauf/Girsh)](https://goreportcard.com/report/github.com/nodauf/Girsh)\n# Girsh (Golang Interactive Reverse SHell)\n\nWho didn't get bored of manually typing the few lines to upgrade a reverse shell to a full interactive reverse shell (tty spawn, stty size ..., stty raw -echo) or typing the command to use [ConPTY](https://github.com/antonioCoco/ConPtyShell).\n\n## Description\n\nWith Girsh, just run it and it will detect the OS and execute the correct commands to upgrade it to a full interactive reverse shell.\n\nFor a Linux:\n- Get the terminal's size\n- Spawn a tty using python2.7, python3 and python\n- Change the terminal as raw\n\nFor a Windows:\n- Bypass AMSI and use [ConPTY](https://github.com/antonioCoco/ConPtyShell) to spawn an interactive terminal\n- Listen for getting the ConPTY reverse shell\n\n## Custom command\n```\nsessions: Manage route to socks servers\nconnect: Manage route to socks servers\nmenu: Start the reverse shell menu\noptions: Manage current options (default print them)\nstart: Start the listener\nstop: Stop the listener\nrestart: Restart the listener\nhelp: help command\n```\n\n## Usage\n\nTwo modes are available:\n\n### Simple listener\n```\ngo run main.go listener -h\nUsage:\n  girsh listen [flags]\n\nFlags:\n  -h, --help   help for listen\n\nGlobal Flags:\n  -d, --debug      Debug output\n  -p, --port int   port to listen (default is 1234) (default 1234)\n```\n\n### Interactive\n```\ngo run main.go -h\nGenerate a reverseshell oneliners (credits shellerator).\n        And listen then run stty raw -echo and send the python command to spawn a tty shell if it's Linux\n        or use ConPTY if it's windows\n\nUsage:\n  girsh [flags]\n  girsh [command]\n\nAvailable Commands:\n  help        Help about any command\n  listen      Listen and spawn a fully interactive for windows and linux client\n\nFlags:\n  -d, --debug      Debug output\n  -h, --help       help for revshell\n  -p, --port int   port to listen (default is 1234) (default 1234)\n```\n\n## Demo\n\n### Linux\n![Gif for linux victim](./images/girsh-linux.gif)\n### Windows\n![PNG for windows victim](./images/girsh-windows.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodauf%2FGirsh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnodauf%2FGirsh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodauf%2FGirsh/lists"}