Home page logo
/

nmap-dev logo Nmap Development 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;
 # 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 () 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 () forescout com 


_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev


  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]
AlienVault