---
description: >-
  The following is a collection of bind and reverse shells which give you a
  fully working PTY.  This is far superior to a normal bind or reverse shell, as
  you have job control and an interactive PTY and
---

# Python pty shells

The following is a collection of bind and reverse shells which give you a fully working PTY. This is far superior to a normal bind or reverse shell, as you have job control and an interactive PTY and can do such things as use nano/vi to write files, su to elevate privs/change user, and ssh onward.

Python pty shells - [https://github.com/infodox/python-pty-shells](https://github.com/infodox/python-pty-shells)

Listener setup - sudo python3 tcp\_pty\_shell\_handler.py -b 10.10.14.28:5555
