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 Focus-Linux
[Top] [All Lists]

Re: Re[2]: Linux hardening

Subject: Re: Re[2]: Linux hardening
Date: Mon, 29 Aug 2005 19:04:46 -0400

On Aug 23, 2005, at 12:58 PM, Kir wrote:

How did u modify your wget or curl for not to download to /tmp and /var/tmp?


It`s simple, really: you can modify source code of the wget to include string matching (strncmp(url, "/tmp", 4)) and throwing exception on positive result. Then all you need to do is recompile code and replace original wget with the new one.


What do you mean? Curl prints to STDOUT. If someone manages to exec a shell, couldn't he just redirect the curl output to /tmp as he desires?


Anyway, it seems to me it'd be more effective to make sure he cannot execute whatever it is he downloaded; the noexec flag and GRSec's TPE would probably both be useful for that.

Or did I misunderstand you?

Dan

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