... 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;
# else
- isr00t = !(geteuid());
+ isr00t = 1;
# endif // __amigaos__
#else
isr00t = 1;
=========== SNIP ==========================================================================>8
-----Original Message-----
From: Uri Gilad
Sent: Monday, May 16, 2005 12:52 PM
To: nmap-dev_at_insecure.org
Subject: Running NMAP as a non root user - patch
Hi,
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.
Nmap patch.
Uri Gilad
ugilad_at_forescout.com
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Received on May 16 2005