mailing list archives
RE: Running NMAP as a non root user - patch
From: "Uri Gilad" <ugilad () forescout com>
Date: Mon, 16 May 2005 14:53:54 +0300
... seems like the patch file was stripped along the way - here is a "cut&paste" version :
The patch is agaist nmap-3.48 - but as you can see, it can be easily ported to any version.
8<========= SNIP ==========================================================================
--- nmap-3.48/NmapOps.cc 2003-09-16 09:04:55.000000000 +0300
+++ nmap-3.48/NmapOps.cc~ 2005-04-03 10:30:36.323610160 +0300
@@ -159,7 +159,7 @@
# ifdef __amigaos__
isr00t = 1;
- isr00t = !(geteuid());
+ isr00t = 1;
# endif // __amigaos__
isr00t = 1;
=========== SNIP ==========================================================================>8
From: Uri Gilad
Sent: Monday, May 16, 2005 12:52 PM
To: nmap-dev () insecure org
Subject: Running NMAP as a non root user - patch
using the linux kernel capabilities
(http://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.4/capfaq-0.2.txt), and the following patch for nmap
it is possible to run nmap as a non-root user granting it only raw network capabilities.
Share and enjoy !
Attached - a patch for nmap Kernel patch.
ugilad () forescout com
Sent through the nmap-dev mailing list
Re: Running NMAP as a non root user - patch Fyodor (May 16)
RE: Running NMAP as a non root user - patch Uri Gilad (May 16)
- Re: Running NMAP as a non root user - patch, (continued)