Python

modify telnetlib buffer

1. Intro

If you want to change the socket buffer size of Telnetlib

 

2. How to do?

sed -i "s/self.sock.recv(50)/self.sock.recv(250)/" /usr/lib/python3.6/telnetlib.py

 

Back To Top