Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

could not open /system/bin/run-as #39

Closed
zdzicho0 opened this issue Dec 18, 2016 · 5 comments
Closed

could not open /system/bin/run-as #39

zdzicho0 opened this issue Dec 18, 2016 · 5 comments

Comments

@zdzicho0
Copy link

zdzicho0 commented Dec 18, 2016

Code generating info:

	int f=open(argv[1],O_RDONLY);
	if (f == -1) {
		LOGV("could not open %s", argv[1]);
		return 0;
	}
	if (fstat(f,&st) == -1) {
		LOGV("could not open %s", argv[1]);
		return 0;
	}

Do You know what can be the reason ?

shell@m0:/system/bin $ ls -l run-as
-rwxr-x--- root     shell        9432 2014-01-25 09:03 run-as

Samsung Galaxy S3

@timwr
Copy link
Owner

timwr commented Dec 19, 2016

Very strange. Perhaps you can try pull the latest and run make test. You will at least know whether your device is vulnerable.

@zdzicho0
Copy link
Author

zdzicho0 commented Dec 20, 2016

sh-3.2# adb shell 'cat /data/local/tmp/test2'
yournotvulnerable
sh-3.2# adb shell 'cat /data/local/tmp/test2' | xxd
00000000: 796f 7572 6e6f 7476 756c 6e65 7261 626c  yournotvulnerabl
00000010: 650d 0a                                  e..

@lili15480
Copy link

No way,Root has no command to execute

@lili15480
Copy link

Damn SELinux

@anthony24kb
Copy link

Hello timwr. Could you provide a zip with the latest compiled binaries for all architectures? Thank you. Have a great christmas.

@timwr timwr closed this as completed in 347bcdf Jan 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants