mirror of
https://github.com/nmap/nmap.git
synced 2025-12-20 14:39:02 +00:00
NCAT_REMOTE_ADDR environment variables set in all --*-exec child processes. (this is a merge of ncat-env-conninfo as of r31516)
10 lines
245 B
Lua
10 lines
245 B
Lua
#!/usr/bin/lua
|
|
|
|
--Print the following NCAT_* variables and their values:
|
|
envs = {'REMOTE_ADDR', 'REMOTE_PORT', 'LOCAL_ADDR', 'LOCAL_PORT', 'PROTO'}
|
|
|
|
for _,v in pairs(envs) do
|
|
v = 'NCAT_' .. v
|
|
print(("%s=%s"):format(v, os.getenv(v)))
|
|
end
|