Nmap Development mailing list archives
Re: nmap-2.54b27+V-2.4
From: MadHat <madhat () unspecific com>
Date: Fri, 27 Jul 2001 08:39:27 -0500
Here is a patch I added for the "grepable" output with version (-sV with -oG <file>), because I use a script to search the -oG output and wanted the version info added... Thanks for this feature.
The search script is pretty simple, I use it as both a CGI and a CLI script. Nothing spectacular, but it works... http://www.unspecific.com/nmap/nmap-search if anyone cares. Sorry, not sure if I did the diff right, still learning. diff -u nmap-2.54b27+V/output.c nmap-2.54b27+V./output.c --- nmap-2.54b27+V/output.c Thu Jul 26 20:38:43 2001 +++ nmap-2.54b27+V./output.c Fri Jul 27 07:50:01 2001 @@ -238,9 +238,16 @@ curr = curr->next; } - log_write(LOG_MACHINE,"%d/%s/%s/%s/%s/%s//", current->portno, state, - protocol, (current->owner)? current->owner : "", - (service)? service->s_name: "", rpcmachineinfo); + if (o.versionscan) {+ log_write(LOG_MACHINE,"%d/%s/%s/%s/%s/%s/%s/%s//", current->portno, state,
+ protocol, (current->owner)? current->owner : "", + (service)? service->s_name: "", rpcmachineinfo,+ (current->protocol)? current->protocol : "", (current->version)? current->version : "");
+ } else { + log_write(LOG_MACHINE,"%d/%s/%s/%s/%s/%s//", current->portno, state, + protocol, (current->owner)? current->owner : "", + (service)? service->s_name: "", rpcmachineinfo); + }log_write(LOG_XML, "<port protocol=\"%s\" portid=\"%d\">", protocol, current->portno);
log_write(LOG_XML, "<state state=\"%s\" />", state); At 09:23 PM 7/26/2001 -0500, Jay Freeman \(saurik\) wrote:
All right, I was feeling guilty for not having updated my CVS server since nmap 2.54BETA22 was released, so I've riffled through all the recent versions, merged them in, and cut an actual release. I haven't had the time to add any new features, however (been spending most of my time on my C# decompiler); this is just merging Fyodor's updates. Here is a list of the issues with it: Fyodor threw me a curve ball and added more symbolic links to the distribution. My response was to simply delete install-sh from nbase and libpcap, which actually seems to be a better way of going about this anyway (configure then scans through a few parent directories looking for it, and pulls config.guess and config.sub from the same location), and I recommend it for the real distribution as well. I noticed that nmapfe.h doesn't have header insulation, and it was being included twice in my copy (likely due to a strange set of merges), so I added it. Once again, I recommend this for the actual distribution as well. It doesn't compile on my new FreeBSD box (runs FreeBSD-CURRENT, up to date as of a week and a half ago) for multiple reasons. One of which is that the abandoned anakrino code (that doesn't even do anything) wouldn't compile as libxml wasn't there (which frightens me...). I removed the dependency, but it still wouldn't compile as gcc on FreeBSD doesn't deal with -c in a way I would expect any sane compiler to do (it puts the outputs from the files in the "scans" directory into the directory that gcc is executed in). I can't mentally deal with the prospect of creating a second Makefile or adding a special build rule (which is likely the most direct way to fix this) right now, so I'm simply not supporting it for this release... isn't as if this would have worked in the last few releases either :-). The source as downloaded has corrupted Win32 project files, but they are fine on CVS. I don't know what I did to the poor things; I will look into it. If you want to actually compile it yourself (rather than using the binary I provide... which I didn't test, so I wouldn't blame you), get it off CVS. I just had the realization that someone might be on this list who wasn't around when I announced the last version of nmap+V or (more importantly) the few announcements that actually explained what it was. Ummm... hmmm... ok, here was the original announcement of the first version (man that was a long time ago...): http://lists.insecure.org/nmap-hackers/2000/Apr-Jun/0076.html . FTP Information: Source: ftp://ftp.saurik.com/pub/nmap/nmap-2.54b27+V-2.32.tgz Patch: ftp://ftp.saurik.com/pub/nmap/nmap+V-2.32 Win32 Binaries: ftp://ftp.saurik.com/pub/nmap/nmap-2.54b27+V-2.32.win32.zip CVS Information: Repository: :pserver:cvs () saurik com:/cvs/nmap Module: nmap Password: cvs Sincerely, Jay Freeman (saurik) saurik () saurik com --------------------------------------------------------------------- For help using this (nmap-dev) mailing list, send a blank email to nmap-dev-help () insecure org . List run by ezmlm-idx (www.ezmlm.org).
-- MadHat at unspecific.com ---------------------------------------------------------------------For help using this (nmap-dev) mailing list, send a blank email to nmap-dev-help () insecure org . List run by ezmlm-idx (www.ezmlm.org).
Current thread:
- nmap-2.54b27+V-2.4 Jay Freeman (saurik) (Jul 26)
- Re: nmap-2.54b27+V-2.4 Fyodor (Jul 27)
- Re: nmap-2.54b27+V-2.4 MadHat (Jul 27)
- Re: nmap-2.54b27+V-2.4 Jay Freeman (saurik) (Jul 27)
- Re: nmap-2.54b27+V-2.4 MadHat (Jul 27)
- Re: nmap-2.54b27+V-2.4 Fyodor (Jul 27)
- Re: nmap-2.54b27+V-2.4 Jay Freeman (saurik) (Jul 27)