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: ssh_get_info.nasl(12634), debian local checks, environment variables

Subject: Re: ssh_get_info.nasl(12634), debian local checks, environment variables, and pread()
Date: Wed, 10 Aug 2005 16:14:42 -0400
I found a workaround for the meantime.  

By exporting COLUMNS=160 and starting nessusd by hand
 (/etc/init.d/nessusd start) The environ was carried down to the
libnasl pread call.

Still would like to see a way of setting environs (safely) on pread.

-anon



On 8/9/05, Michel Arboi <mikhail@nessus.org> wrote:
On Tue Aug 09 2005 at 22:10, Michel Arboi wrote:

The right way to do it would probably be:
 buf = pread(cmd:"sh", argv:make_list("sh", "-c", "COLUMNS=160 dpkg
-l"));

Or rather
buf = pread(cmd:"sh", argv:make_list("sh", "-c", '"COLUMNS=160 dpkg -l"'));
_______________________________________________
Nessus mailing list
Nessus@list.nessus.org
http://mail.nessus.org/mailman/listinfo/nessus

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

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