Home page logo

nmap-dev logo Nmap Development mailing list archives

Re: [NSE] New httpspider library and http-email-harvest script
From: Martin Holst Swende <martin () swende se>
Date: Thu, 08 Dec 2011 20:18:44 +0100

On 12/08/2011 06:38 PM, Djalal Harouni wrote:
On Thu, Dec 08, 2011 at 01:43:09PM +0100, Martin Holst Swende wrote:
On 12/06/2011 11:50 PM, Patrik Karlsson wrote:
Hi all,

I've just committed (r27349) a httpspidering library inspired by Paulino's
previous work.
The script http-email-harvest is the first script that makes us of it and
collects e-mail addresses from spidered web content.

Comments and feedback are, as always, welcome.

Would it be possible to have a prerule script which modifies the
http-library to enable 'sniffing' of different things, such as email.
Consider the following:

nmap --script http-grep, http-enum --script-args
serverbanners"  <target>

For that to work, the http-grep would have to monkeypatch the http
library and add a couple of 'greppers' which would analyse all http
responses before they are
passed to http-enum. Then we could add a bunch of greppers which would
be very simple to implement and could be used anytime http is used, and
leverage existing

The email-harvest script could be replaced by
nmap --script http-grep, http-spider --script-args
http-grep.harvest="email" <target>

Is it at all possible for a pre-rule script to do this? Would it make
We could do better than a script that modifies a library, we can register
callbacks in http-enum etc. There is the "Improve NSE HTTP architecture" [1]
proposal (without code).

[1] http://seclists.org/nmap-dev/2011/q2/967

I'd forgotten about that proposal, it definitely makes some good points!
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 ]