Home page logo

nmap-dev logo Nmap Development mailing list archives

Re: xmpp.nse
From: Henri Doreau <henri.doreau () greenbone net>
Date: Sat, 30 Apr 2011 12:09:11 +0200


this is a nice script. I've successfully tested it against several xmpp servers.

Sounds ok for me, functions should probably be "localized" (defined
with local scope modifier) though.

I would also replace successive if statements by elseif's in the main
loop to avoid performing useless checks. Something like:

if tag.name == "starttls" then
   is_starttls = true
elseif tag.name == "required" then

Another detail: there is no need to supply the specific host.ip field
as first argument of connect(), the host table is fine.


Henri Doreau |  Greenbone Networks GmbH  |  http://www.greenbone.net
Neuer Graben 17, 49074 Osnabrueck, Germany | AG Osnabrueck, HR B 202460
Executive Directors: Lukas Grunwald, Dr. Jan-Oliver Wagner
Sent through the nmap-dev mailing list
Archived at http://seclists.org/nmap-dev/

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]