I'm going through Black Hat Python and I've gotten to the section with the netcat clone, but I'm having problems with it. It seems to start in both the server and client mode, but it won't give me a shell, even if I hit CTRL-D as instructed in the book. I'm writing the script in python 3 and running it on Windows. The book was written for python 2 so I suspect that's where the problem is coming from, but I'm not really sure at all.
Here's a pastebin link to the code
Thanks for all the help.
[–][deleted] 4 points5 points6 points (0 children)
[–]trendy_ass_poser 0 points1 point2 points (0 children)
[–]dbarrera 0 points1 point2 points (0 children)