Nmap Development mailing list archives
Re: --lua-exec stream redirection on Windows
From: Patrick Donnelly <batrick () batbytes com>
Date: Mon, 24 Jun 2013 11:37:15 -0400
On Sat, Jun 22, 2013 at 1:38 PM, David Fifield <david () bamsoftware com> wrote:
Jacek is trying the approach of reassigning Lua's io.stdin and io.stdout variables before running the requested program. This is a bit problematic because, as Patrick noted, there are other places where stdin and stdout can leak, for example io.lines called with no arguments. But perhaps with enough tweaking this idea will work.
I think in the end this just wouldn't be a good solution. Scripts which would call os.execute or use a library that talks to stdin/stdout wouldn't work as expected. So what Jacek has done now seems like one of the better options, IMO. -- Patrick Donnelly _______________________________________________ Sent through the dev mailing list http://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
Current thread:
- --lua-exec stream redirection on Windows David Fifield (Jun 22)
- Re: --lua-exec stream redirection on Windows Jacek Wielemborek (Jun 22)
- Re: --lua-exec stream redirection on Windows Jacek Wielemborek (Jun 24)
- Re: --lua-exec stream redirection on Windows Patrick Donnelly (Jun 24)
- Re: --lua-exec stream redirection on Windows Jacek Wielemborek (Jun 24)