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 Development: Re: [PATCH] Flushing console input buffer in nmap_tty.cc (pt2)

Re: [PATCH] Flushing console input buffer in nmap_tty.cc (pt2)

From: Kris Katterjohn <katterjohn_at_gmail.com>
Date: Wed, 31 Jan 2007 16:15:30 -0600

Kris Katterjohn wrote:
> ------------------------------------------------------------------------
> r4349 | kris | 2007-01-12 18:21:19 -0600 (Fri, 12 Jan 2007) | 1 line
>
> I'm trying to find a good way to flush the input queue in nmap_tty.cc
> for Windows (which I can't test). I'm using tcflush() for UNIX of course
> (which works very well and seems a good bit faster when I test it, like
> pressing a lot of buttons in a row), and I'm putting
> FlushConsoleInputBuffer() in for Win32 for now. Reading some docs and
> other code, I think the way I put it in now *should* work. Hopefully
> somebody on nmap-dev can test it out and we can put this in instead of
> the loop-and-read used now to flush it. It's not a big bottleneck or
> anything, but it should help out if we can get this Win32 thing working.
> ------------------------------------------------------------------------
>

I have, after a little trouble, been able to install MS VC++ Express on
a Window machine, and I tested this out. Like using tcflush() on UNIX, I
noticed a (good) difference.

I'm going to test it a little more and become more familiar with VC++.
As long as everything is still running smoothly, I'm considering merging
this to /nmap later tonight or tomorrow. If you object to this, please
say so! :)

Thanks,
Kris Katterjohn

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org
Received on Jan 31 2007

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