Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Nessus-Users
[Top] [All Lists]

Re: Root for local check

Subject: Re: Root for local check
Date: Wed, 24 May 2006 16:49:41 +0200
Bonleu, Julien dijo:
I tried to connect directly to the host with the same user I use for
Nessus and I get all the information regarding the different package
installed with dpkg -l.

But when I try to use the same user with Nessus, the report contains
only the “scanned” information. When I give Nessus a root account to
log on, the report contain all the information about the packages. So
I don’t understand why!!


This all sounds like an environment issue. When you log in with a user some of the ~/.bash_profile, ~/.bashrc or similar are sourced and you get a proper PATH defined. However, when Nessus logs in (without using a shell, but just using direct commands through SSH) the PATH is not well defined


If it works locally with a non root account, it’s supposed to work in
Nessus with the same account because it’s the same command.

Not really, if the PATH is set by shell configuration files for the user you are running with. Consider this (it's a Solaris system):


$ echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X/bin
$ ssh -l admin localhost 'echo $PATH'
admin@localhost's password:
/usr/bin:/bin:/usr/sbin:/sbin

Using SSH with no shell is not the same as using SSH with a shell. Try running 'set' locally (with a shell) and remotely (through SSH) to see the difference.

Regards

Javier

_______________________________________________
Nessus mailing list
Nessus@list.nessus.org
http://mail.nessus.org/mailman/listinfo/nessus

<Prev in Thread] Current Thread [Next in Thread>