#!/usr/bin/python import struct import socket import telnetlib import time ''' nasm -f bin -o shell.bin shell.asm ''' def readuntil(f, delim='bksh> '): data = '' while not data.endswith(delim): data += f.read(1) return data def p(v): return struct.pack('