Skip to content

Instantly share code, notes, and snippets.

@adamdoupe

adamdoupe/server.py

Created Apr 18, 2019
Embed
What would you like to do?
import sys
import time
import nclib
r = nclib.Netcat(listen=("localhost", 9090))
while not r.closed:
line = r.recv_line()
r.send(line)
import sys
import time
import nclib
r = nclib.Netcat(("localhost", 9090), udp=False)
r.interact()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment