luadev
luadev copied to clipboard
fix not working when sending with netcat
for some reason it times out when trying to read a line from socket connection
https://github.com/osiris-plus/luadev-sh
This fix did not change anything in my testing of using both gnu-netcat and openbsd-netcat in MinGW.
nmap's ncat works fine without needing this fix.
This happens with nmap for windows.
Idk why there's even a zero timeout, I guess luasocket is not async? Then the correct fix would be trying to read the socket next frame if there's a timeout error (vararg 2 of read)