You are not logged in.

#1 2013-03-03 03:09:53

Xi0N
Member
From: Bilbao - Spain
Registered: 2007-11-29
Posts: 772
Website

nmap: Run certain commands without being root

Is there a way to run any command on nmap without having to be the root user?

many times I get the message, for example: "TCP/IP fingerprinting requires root privileges!"


Any configuration that can be changed to correct this?

Thanks!

Offline

#2 2013-03-03 08:41:19

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: nmap: Run certain commands without being root

You could use sudo.

Offline

#3 2013-03-03 10:54:36

Xi0N
Member
From: Bilbao - Spain
Registered: 2007-11-29
Posts: 772
Website

Re: nmap: Run certain commands without being root

Here's the thing:
I'm learning to use pentest apps, and one of them is written in java and uses nmap to function.
The correct approach would be to not launch the whole java app as root, but just, somehow, make nmap permit to to be executed full-featured by non-root users: Using sudo su and running the app as root makes java go nuts, complaining about X:

Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable.

What could the solution be?

Thanks!

Offline

#4 2013-03-03 19:53:11

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,546
Website

Re: nmap: Run certain commands without being root

It seems that you are looking at two problems:
1. root does not have access to the graphics display and
2. you need to use sudo to run the app (as was posted priviously)

To fix the access to the display use (as your user) xhost + localhost 0.0
That should do it.

R.

Offline

Board footer

Powered by FluxBB