if by compatible you mean 'can I use them in the same program,' then the answer is yes. If you mean 'do they produce compatible perl data structures,' then the answer is no :). I believe Nmap::Parser produces simple hashes / arrays of hashes as it is designed to be quick and lightweight, whereas Nmap::Scanner uses classes to produce more tightly typed objects, which is more appropriate and useful for a larger program where code maintenance is a concern.
Both are very useful modules (well, Nmap::Scanner is useful in my opionion, seems like many others don't share that view :P, such is life).
What are the parts of each that you want that have you thinking about using both? Just curious.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well currently I'm writing a project called everscan. (link: http://ghettoshell.net/~thefinn/everscan ). I'm considering rewriting it all for version 1.0 and wish to change over to Nmap::Scanner for obvious reasons. I'd like to add system types and things like that to the database. I could REALLY do with some example code of using Nmap::Scanner and Nmap::Parser together.
I also have no idea why people don't think this is a great module. I find it far faster than nmap propper - especially for what I'm doing. It also seems to give more reasonable os fingerprints.
Thanks
TF
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks, you should see the next project I'm working on if you like that. ;)
I have some serious work ahead of me. I'd really like to know about this Parser thing. It would make life much easier for me where putting everything in the sql database is concerned. I also (haha) just found perlcc which will make 1.0 an executable-only release I think ;)
If you want to have a cool discussion about the project email me, I could definately do with another set of hands :)
TF
thefinn@tpg.com.au
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Does anyone know if these modules are compatible ?
Hi,
if by compatible you mean 'can I use them in the same program,' then the answer is yes. If you mean 'do they produce compatible perl data structures,' then the answer is no :). I believe Nmap::Parser produces simple hashes / arrays of hashes as it is designed to be quick and lightweight, whereas Nmap::Scanner uses classes to produce more tightly typed objects, which is more appropriate and useful for a larger program where code maintenance is a concern.
Both are very useful modules (well, Nmap::Scanner is useful in my opionion, seems like many others don't share that view :P, such is life).
What are the parts of each that you want that have you thinking about using both? Just curious.
Well currently I'm writing a project called everscan. (link: http://ghettoshell.net/~thefinn/everscan ). I'm considering rewriting it all for version 1.0 and wish to change over to Nmap::Scanner for obvious reasons. I'd like to add system types and things like that to the database. I could REALLY do with some example code of using Nmap::Scanner and Nmap::Parser together.
I also have no idea why people don't think this is a great module. I find it far faster than nmap propper - especially for what I'm doing. It also seems to give more reasonable os fingerprints.
Thanks
TF
TF,
Cool project :)!
I am glad that you are finding the module useful :) .. it is only as accurate as nmap is, it is just a filter / convertor after all.
I will see if I can come up with some code that uses both Nmap::Scanner and Nmap::Parser together ... :)
Thanks again for using the module, please let me know if you have any suggestions for making it more useful / easier to use etc.
Thank you,
Max
Thanks, you should see the next project I'm working on if you like that. ;)
I have some serious work ahead of me. I'd really like to know about this Parser thing. It would make life much easier for me where putting everything in the sql database is concerned. I also (haha) just found perlcc which will make 1.0 an executable-only release I think ;)
If you want to have a cool discussion about the project email me, I could definately do with another set of hands :)
TF
thefinn@tpg.com.au
Sorry about not getting back to you sooner, I will do my best to play with the two modules together this weekend.
Sounds like an interesting project :) .. I will email you!
- Max