Nmap Development mailing list archives
Re: NSE: IDL parser
From: Patrick Donnelly <batrick () batbytes com>
Date: Fri, 14 May 2010 01:15:57 -0600
Hi Dražen, 2010/5/12 Dražen Popović <dpopovic () lss hr>:
Hi guys, I spent my day trying to figure out PIDL as it represents The Parser for IDL. As David noticed it is used to generate Wireshark dissectors, as well as SAMBA Python bindings, SAMBA client and server stubs. I came to conclusion that PIDL would be our best approach in the matter. I downloaded the PIDL [1] and SAMBA IDL files [2] from SVN repository. One tip that pidl manual [3] provided is to look at the internal tree representation...so I did. It seems that PIDL operates on this ".pidl" representation of ".idl"s. What is great about ".pidl"s is that their structure is relatively simple and could be parsed in a reasonable time period. ".pidl" is actually one big Perl variable =). Using this internal representation PIDL could be extended for other languages, purposes, as demonstrated with Wireshark, Python and SAMBA. One should just parse the ".pidl" which is simpler in syntax than ".idl". If you're interested in taking a look at ".pidl": bash$pidl --dump-idl-tree="echo.pidl" echo.idl "echo.idl" is a testing interface used by SAMBA developers and it's distributed along with SAMBA [2]. This should be our testing IDL as well. @Patrick: For the time being I don't see Lpeg as part of NSE runtime, as far as MS-RPC is concerned of course. But it's definitely something to consider in the future. [1] svn://svnanon.samba.org/samba/branches/SAMBA_4_0/source/pidl [2] svn://svnanon.samba.org/samba/branches/SAMBA_4_0/source/librpc/idl [3] http://search.cpan.org/~ctrlsoft/Parse-Pidl-0.01/pidl
How do you see the entire system working? I fear I don't understand how it all comes together. It sounds like you will use PIDL to generate C stubs that we will bind to NSE? -- - Patrick Donnelly _______________________________________________ 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 [GSoC] Infrastructure Tasks Patrick Donnelly (Apr 18)
- Re: NSE [GSoC] Infrastructure Tasks David Fifield (Apr 18)
- Re: NSE [GSoC] Infrastructure Tasks Patrick Donnelly (Apr 24)
- Re: NSE: IDL parser David Fifield (May 12)
- Re: NSE: IDL parser Dražen Popović (May 12)
- Re: NSE: IDL parser Ron (May 13)
- Re: NSE: IDL parser Fyodor (May 13)
- Re: NSE: IDL parser Patrick Donnelly (May 14)
- Re: NSE: IDL parser Dražen Popović (May 12)
- Re: NSE [GSoC] Infrastructure Tasks David Fifield (Apr 18)