Привет, все, что я работал над python в последнее время и читаю Blackhat Python, который приводит меня к созданию tcpproxy, и я получаю ошибку Сломанный канал в строке
# Send it to our request handler
local_buffer = request_handler(local_buffer)
# Send off the data to the remote host
remote_socket.send(remote_buffer)
print "[==>] Sent %d bytes" %len(local_buffer)
# Receive back the response
remote_buffer = receive_from(remote_socket)
if len(remote_buffer):
print "[<== Received %d bytes from remote." % len(remote_buffer)
hexdump(remote_buffer)
# Send to our response handler
remote_buffer = response_handler(remote_buffer)
# Send the response to the local socket
client_socket.send(remote_buffer) # Here's where the
# Broken pipe starts