# Girsh | Automatically Spawn A Reverse Shell Fully Interactive

**URL:** <https://onehack.st/t/girsh-automatically-spawn-a-reverse-shell-fully-interactive/175383>\
**Category:** Tools & Scripts\
**Tags:** tools, hacking, tips-tricks\
**Created:** [March 15, 2021, 10:05am UTC](https://onehack.st/t/girsh-automatically-spawn-a-reverse-shell-fully-interactive/175383 "2021-03-15T10:05:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BlueHacker](https://onehack.st/user_avatar/onehack.st/bluehacker/32/174721_2.png) [@BlueHacker](https://onehack.st/u/BlueHacker)\
**Post date:** [March 15, 2021, 10:05am UTC](https://onehack.st/t/girsh-automatically-spawn-a-reverse-shell-fully-interactive/175383/1 "2021-03-15T10:05:19Z")

</div>

![image](https://onehack.st/uploads/default/original/3X/a/2/a26487c4394d2250ed6bdf9d29d2a59bafa79cf8.jpeg)

# Girsh (Golang Interactive Reverse SHell)

Who 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).

## Description

With Girsh, just run it and it will detect the OS and execute the correct commands to upgrade it to a full interactive reverse shell.

For a Linux:

- Get the terminal’s size
- Spawn a tty using python2.7, python3 and python
- Change the terminal as raw

For a Windows:

- Dowload [ConPTY](https://github.com/antonioCoco/ConPtyShell) on the same machine and same port as the reverse shell server
- Listen for getting the ConPTY reverse shell

## Usage

Two modes are available:

### Simple listener

```auto
go run main.go listener -h
Usage:
  girsh listen [flags]

Flags:
  -h, --help help for listen

Global Flags:
  -d, --debug Debug output
  -p, --port int port to listen (default is 1234) (default 1234)

```

### Interactive

```auto
go run main.go -h
Generate a reverseshell oneliners (credits shellerator).
        And listen then run stty raw -echo and send the python command to spawn a tty shell if it's Linux
        or use ConPTY if it's windows

Usage:
  girsh [flags]
  girsh [command]

Available Commands:
  help Help about any command
  listen Listen and spawn a fully interactive for windows and linux client

Flags:
  -d, --debug Debug output
  -h, --help help for revshell
  -p, --port int port to listen (default is 1234) (default 1234)

```

## Demo

### Linux

[![Gif for linux victim](https://github.com/nodauf/Girsh/raw/main/images/girsh-linux.gif)](https://github.com/nodauf/Girsh/blob/main/images/girsh-linux.gif)

### Windows

## GitHub:

> **[GitHub - nodauf/Girsh: Automatically spawn a reverse shell fully...](https://github.com/nodauf/Girsh)**
>
> Automatically spawn a reverse shell fully interactive for Linux or Windows victim
