Skip to content

Instantly share code, notes, and snippets.

@adamdoupe
Created April 18, 2019 17:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamdoupe/fa53c586c2bab357e0a97a524a865240 to your computer and use it in GitHub Desktop.
Save adamdoupe/fa53c586c2bab357e0a97a524a865240 to your computer and use it in GitHub Desktop.
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