mailing list archives
[PATCH] --gui option
From: "Kris Katterjohn" <katterjohn () gmail com>
Date: Sat, 13 Oct 2007 12:23:58 -0500
With UMIT being added, and with OS package systems to surely keep nmapfe
packages lying around for a while, I thought that adding a small --gui
option to detect umit/nmapfe and run them would be cool. Other programs
with GUIs tend to have -g or -G switches to enable them ("vim -g", "ettercap
-G", etc.). It could also be good in testing for Nmap GUIs in scripts so
they don't have to try the different names themselves, just test for "nmap
--gui"'s exit value (it dies with fatal() now if exec() fails or none are
found, and if they use --gui with an older version, fatal() is called for an
I thought about using -G (-g is used all ready), but I figured --gui was
I used the same basic code for the "f" option in --interactive used to find
nmap in PATH for this, so I just made a "findprog()" in main.cc and used it
for both instead of duplicating.
Aside from that, there isn't all that much being added so it's not bogging
anything down. It's pretty simple.
The patch is attached, so let me know what you think!
Sent through the nmap-dev mailing list
Archived at http://SecLists.Org
- [PATCH] --gui option Kris Katterjohn (Oct 13)