Nmap Development mailing list archives

Re: --lua-exec stream redirection on Windows


From: Jacek Wielemborek <wielemborekj1 () gmail com>
Date: Mon, 24 Jun 2013 19:29:54 +0200

2013/6/24 Patrick Donnelly <batrick () batbytes com>:
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.


Thanks, I completely didn't think of that. So I guess we'll stick to
this solution.
_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/


Current thread: