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: [PATCHed] Let NMAP_UNPRIVILEGED == --unprivileged

[PATCHed] Let NMAP_UNPRIVILEGED == --unprivileged

From: Kris Katterjohn <katterjohn_at_gmail.com>
Date: Thu, 11 Jan 2007 20:37:26 -0600

The attached patch (/nmap SVN rev 4344) allows the NMAP_UNPRIVILEGED
environment variable to be an alternative to --unprivileged like
NMAP_PRIVILEGED is for --privileged.

Thanks,
Kris Katterjohn

Index: NmapOps.cc
===================================================================
--- NmapOps.cc (revision 4343)
+++ NmapOps.cc (revision 4344)
@@ -182,6 +182,8 @@
 #else
   if (getenv("NMAP_PRIVILEGED"))
     isr00t = 1;
+ else if (getenv("NMAP_UNPRIVILEGED"))
+ isr00t = 0;
   else
     isr00t = !(geteuid());
 #endif

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

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