Hi,
as I observed to Guy (maybe I forgot :-), writing the decode stuff for SMB
is very mechanical, and Luke Leighton stresses that doing MSRPC will be
even worse.
To that end, I am currently writing a perl program that can help me churn
out the SMB decode routines ... This will read in files of definitions
culled from the CIFS drafts and spit out decode routines.
Current syntax of my definition files go along the lines of:
SMB <name> {
request {
[UCHAR|USHORT|SMB_DATE etc] <name>* [= <val]; ...
}
response {
....
}
[response { ... }]*
}
Should have something in a couple of days, then I should be able to
generate and inspect code very quickly.
Regards
-------
Richard Sharpe, sharpe@xxxxxxxxxx, NIC-Handle:RJS96
NS Computer Software and Services P/L,
Samba (Team member www.samba.org), Ethereal (Team member www.zing.org) ...
Co-author, SAMS Teach Yourself Samba in 24 Hours