On 30 avr, 01:58, Chris Stratton <cs07...@gmail.com> wrote:
> On Apr 29, 5:19 am, wadhah dawahi <wadhah.daw...@gmail.com> wrote:

> > and with using   setuid(0)  and setgid(0)  why this dont work ???
>
> These calls are not magic.  Nothing within the code of an executable
> can get you root, unless it exploits a bug.

but how the exexutable su work: with his code it works with setuid,
getuid and execv ("/system/bin/shell",args)
how can i found a bug to give me the privilege like a root

>it's then up to the program logic to decide if it should exit with an error, 
>run a command as root, or drop privileges
and become some (different) ordinary user to run a command.

how can i modify my code to tell the program logic to run a command as
root??

thnks in advance

-- 
You received this message because you are subscribed to the Google Groups 
"Android Security Discussions" group.
To post to this group, send email to android-security-discuss@googlegroups.com.
To unsubscribe from this group, send email to 
android-security-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/android-security-discuss?hl=en.

Reply via email to