I want to log in as root using the system call in Xcode. I tried this code without success:
System("su"); System("alpine");
or
System("su root"); System("alpine");
or
System("su root alpine");
When I google, I found out that this is done using NSTask or NSPipe . Can someone tell me how to run multiple system commands using NSTask and NSPipe ?
Please give me some tips about this or another method for this. I use this app on jailbroken iPhone.
More information here .
source share