Nmap Development mailing list archives
Re: [NSE] rpc.lua Portmapper list cached in the NSE registry
From: Djalal Harouni <tixxdz () gmail com>
Date: Sat, 15 May 2010 01:17:54 +0100
On 2010-04-30 12:13:03 +0200, Patrik Karlsson wrote:
Hi Djalal, I tested the patch against a Linux server running NFS and it works great. My virtual OS X server behaves as badly as last time, so I don't think it makes a good reference. If someone else has the possibility to try this patch out against OS X please let us know. I'm uncertain about the memory implications of storing the rpcinfo table in the registry. I guess if you scan a Class B-network and identify 1000's of hosts running RPC it could become a problem. Cleaning up manually will probably be a problem as the script does not know if it is the last to use the cached data or not. So, a weak keyed table, suggested by Patrick, is probably the best bet.
Hi Patrik, Attached is a new patch to cache the RPC list in the NSE registry. I have used weak tables with weak values, so when running rpcinfo and nfs-* scripts they will send only tree RPC DUMP CALLS packets instead of +40 packets. I assume that the cached data has been collected twice by the garbage collector. -- tixxdz
Attachment:
rpc.lua.diff
Description:
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Re: [NSE] rpc library; Portmapper program list stored in the Djalal Harouni (Apr 25)
- Re: [NSE] rpc library; Portmapper program list stored in the Patrick Donnelly (Apr 25)
- Re: [NSE] rpc library; Portmapper program list stored in the Patrik Karlsson (Apr 30)
- Re: [NSE] rpc library; Portmapper program list stored in the David Fifield (May 04)
- Re: [NSE] rpc library; Portmapper program list stored in the Djalal Harouni (May 04)
- Re: [NSE] rpc library; Portmapper program list stored in the David Fifield (May 04)
- Re: [NSE] rpc library; Portmapper program list stored in the Djalal Harouni (May 04)
- Re: [NSE] rpc library; Portmapper program list stored in the David Fifield (May 04)
- Re: [NSE] rpc.lua Portmapper list cached in the NSE registry Djalal Harouni (May 14)
- Re: [NSE] rpc.lua Portmapper list cached in the NSE registry Patrik Karlsson (May 15)
- Re: [NSE] rpc.lua Portmapper list cached in the NSE registry Patrick Donnelly (May 15)
- Re: [NSE] rpc.lua Portmapper list cached in the NSE registry Djalal Harouni (May 15)
- Re: [NSE] rpc.lua Portmapper list cached in the NSE registry Patrick Donnelly (May 15)
- Re: [NSE] rpc.lua Portmapper list cached in the NSE registry Patrik Karlsson (May 16)
- Re: [NSE] rpc.lua Portmapper list cached in the NSE registry Djalal Harouni (May 17)
- Re: [NSE] rpc.lua Portmapper list cached in the NSE registry Patrik Karlsson (May 15)