Hello all,

I think it should be very insteresting to perform openvas os fingerprint 
mechanism,
by integrating an xml parser like sax (simple api for xml), to enhance plugins 
development.
I've used this technique and it's very productive.
so I've developed a routine to make thinks more easy, here the explainations:


purpose:

Enhance plugin development and openvas OS fingerprint mechanism


Rationale:


Programming language: python
Modules  used(all these are standars, so no installation need!): sax, sys, 
socket, os, re

Advantages:
1) software information are stored in xml format, that makes informations more 
portable
2) only one script to parses all banner: http, ssh, telnet, pop3, smtp, etc...
3) no need to write new script to detect a new software, only add the banner in 
the xml file,
I've already done with http.xml, ssh.xml, telnet.xml, pop3.xml, and more ...
4) Well documented
5) fast


 
Design and Implementation

Note: see the link bellow for attached zip archive with 3 files (only for 
testing purposes)
1) smtp.xml: file to be parsed for os fingerprint
2) bannerparser.py: python routine to parsing the banner passed to it as 
parameter
3) remote-smtp-detect.py: python script example to remotly fingerprint os 
through smtp banner, also print the banner,
you can also find in the code an ip address to test.  in the code just change 
SRC_DIR = 'E:\\projects\\openvas\\contest' variable
to the path in with all the 3 file are.

syntax (assuming that python is in your PATH): python remote-smtp-detect.py 
140.105.60.207  25
or: python remote-smtp-detect.py w.x.y.z  465 ssl

test it, and let me know, I think it will be more useful.

the unique difficulty could be integrating sax in openvas or implement a nasl 
interface to sax.

http://lists.wald.intevation.org/pipermail/openvas-plugins/2008-September/000110.html

===
Christian Eric Edjenguele
IT Security Software Developer & Researcher
tel. +39 3408580513
View my linkedin profile: http://www.linkedin.com/in/edjenguele
My blog: http://www.edjenguele.blogspot.com
---
Management, Developers, Security Professionals – can only result in one thing…… 
better security.
http://www.owasp.org/index.php/OWASP_NYC_AppSec_2008_Conference Sept 22nd-25th 
2008 

__________________________________________________
Do You Yahoo!?
Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto 
spazio gratuito per i tuoi file e i messaggi 
http://mail.yahoo.it 
_______________________________________________
Openvas-discuss mailing list
[email protected]
http://lists.wald.intevation.org/mailman/listinfo/openvas-discuss

Reply via email to