Nmap Security Scanner
*Intro
*Ref Guide
*Install Guide
*Download
*Changelog
*Book
*Docs
Security Lists
*Nmap Hackers
*Nmap Dev
*Bugtraq
*Full Disclosure
*Pen Test
*Basics
*More
Security Tools
*Pass crackers
*Sniffers
*Vuln Scanners
*Web scanners
*Wireless
*Exploitation
*Packet crafters
*More
Site News
Site Search:
Exploit World
Advertising
About/Contact
Credits
Sponsors:
edgeos



Nmap Hackers: Re: Nmap and xlogmaster

Re: Nmap and xlogmaster

From: ajax <ajax_at_mobis.com>
Date: Thu, 28 Jan 1999 19:49:10 -0600 (EST)

Hi, in regard to your question about an append option to the -o option,
it seems easy enough. The solution lies around ~198 of nmap.c:
  case 'o':
    if (o.logfd != NULL) fatal("Only one log filename allowed");
    o.logfd = fopen(optarg, "w");
    if (!o.logfd)
      fatal("Failed to open output file %s for writing", optarg);
    break;

You want to replace the second parameter to fopen with a "a" instead of a
"w".

later,

 ajax_at_mobis.com | The skill of accurate perception
 Unix Network Admin | is called cynicism by those who
 Mobile Internet Services, Inc. | don't possess it.

On Thu, 28 Jan 1999, Erik Parker wrote:

> On a machine of ours, I tested using xlogmaster and nmap.. This could have
> been done several ways, but since we run xlogmaster, this is how I did it.
>
> We run tcplog on the machine, and when a connection attempt occurs it
> shows:
>
> Jan 28 15:39:33 auth4 tcplog[68]: ssh connection attempt from localhost
> (127.0.0.1):1059
>
> So.. Using xlogmaster, anytime it see's "ssh connection attempt" it
> executes /root/program
>
> /root/program contains:
>
> tail /var/log/messages | grep -i "ssh connection attempt from" |awk
> '{print $10}'|xargs nmap -O >> /root/nmaplog
>
> That way it logs all the open ports, and tries to guess their OS.
>
> Two things... Is there a way to get it to show the actual fingerprint that
> it comes back with, in addition to its guess? ANd using the -o option, for
> output to logfile, is there, or plans for an append option to that. I
> don't want to lose the logs everytime it tries, so for now I'll use >>
>
>
>
>
> Erik Parker
> netmask_at_303.org
>
> http://radio.cuervocon.org/ramgen/encoder/live.rm
> Real Audio G2 - Wednesday Nights 10pm-2am CST.
> "Signals from Dementia" - By Dj-Netmask
> Industrial / Hard Rock / Techno / Psycho Stories
>
>
Received on Jan 28 1999

[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]
edgeos