Nmap Development mailing list archives
[PATCH] --gui option
From: "Kris Katterjohn" <katterjohn () gmail com>
Date: Sat, 13 Oct 2007 12:23:58 -0500
Hi everyone! 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 unknown option). I thought about using -G (-g is used all ready), but I figured --gui was good. 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! Thanks, Kris Katterjohn
Attachment:
gui.patch
Description:
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- [PATCH] --gui option Kris Katterjohn (Oct 13)