Skip to content

Instantly share code, notes, and snippets.

@zedsec390 zedsec390/pty.py.patch
Last active Aug 29, 2015

Embed
What would you like to do?
Patch for 2.7.6 Python (rocket ported tools) pty.py - allows for spawning shell via python
--- pty.py.old 2015-08-21 12:29:10.000000000 -0500
+++ pty.py 2015-08-21 12:29:10.000000000 -0500
@@ -61,6 +61,7 @@
return master_fd, tty_name
for x in 'pqrstuvwxyzPQRST':
for y in '0123456789abcdef':
+ y='000' + y
pty_name = '/dev/pty' + x + y
try:
fd = os.open(pty_name, os.O_RDWR)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.