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. |

| Subject: | Re: Howto strace apache as nobody/apache user? |
|---|---|
| Date: | Wed, 31 May 2006 20:06:48 -0000 |
What about just running strace with "-p" to trace a running process. You may want to turn down the # of running servers to 1 so you can montor the active one, or setup an strace for each process. dmz Rizki Wicaksono <rizki.wicaksono@gmail.com> said:
Hi List, Does anyone know how to strace/ktrace-ing apache httpd server as nobody/apache user ? Apache initially starting as root then it forks into many process after leaving its root credentials, usually being apache or nobody (depends on httpd.conf). So, by theory if I could be apache/nobody user, I will be able to strace/ktrace-ing any process that owned by apache/nobody user. So i put small cmd.php shell to do that. With this simple code: <pre><? passthru($_GET['cmd']); ?></pre> Using my browser pointing to http://localhost/cmd.php?cmd=id, confirm that it has apache credentials. After reading the output of ps aux (http://localhost/cmd.php?cmd=ps aux), i chose one process id of httpd owned by apache to test. When I try using URL http://localhost/cmd.php?cmd=strace -p apache_pid 2>/tmp/err, I got operation not permitted error. The same happen to freebsd box using ktrace command. Is this a security feature of apache or what? Thanks before - Rizki Wicaksono - ------------------------------------------------------------------------------ This List Sponsored by: Cenzic Concerned about Web Application Security? Why not go with the #1 solution - Cenzic, the only one to win the Analyst's Choice Award from eWeek. As attacks through web applications continue to rise, you need to proactively protect your applications from hackers. Cenzic has the most comprehensive solutions to meet your application security penetration testing and vulnerability management needs. You have an option to go with a managed service (Cenzic ClickToSecure) or an enterprise software (Cenzic Hailstorm). Download FREE whitepaper on how a managed service can help you: http://www.cenzic.com/news_events/wpappsec.php And, now for a limited time we can do a FREE audit for you to confirm your results from other product. Contact us at request@cenzic.com for details. ------------------------------------------------------------------------------
--
/----------------------------------------------------------\
David M. Zendzian * dmz@dmzs.com
(415) 867-7812 - phone || (510) 549-9187 - fax
-------------
Imagination is greater than knowledge * Albert Einstein
Every day is a good day, whether you like it or not! * DMZ
\----------------------------------------------------------/
------------------------------------------------------------------------------
This List Sponsored by: Cenzic
Concerned about Web Application Security?
Why not go with the #1 solution - Cenzic, the only one to win the Analyst's
Choice Award from eWeek. As attacks through web applications continue to rise,
you need to proactively protect your applications from hackers. Cenzic has the
most comprehensive solutions to meet your application security penetration
testing and vulnerability management needs. You have an option to go with a
managed service (Cenzic ClickToSecure) or an enterprise software
(Cenzic Hailstorm). Download FREE whitepaper on how a managed service can
help you: http://www.cenzic.com/news_events/wpappsec.php
And, now for a limited time we can do a FREE audit for you to confirm your
results from other product. Contact us at request@cenzic.com for details.
------------------------------------------------------------------------------
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Wireless PenTesters Hardware, Ivan . |
|---|---|
| Previous by Thread: | RE: Howto strace apache as nobody/apache user?, Shane Warner |
| Next by Thread: | httpedit: low-level interface to HTTP, Lluis Mora |
| Indexes: | [Date] [Thread] [Top] [All Lists] |