timwr / CVE-2016-5195

CVE-2016-5195 (dirtycow/dirtyc0w) proof of concept for Android
959 stars 395 forks source link

run-as: Package '<insert any package name here>' is unknown #22

Closed Arinerron closed 7 years ago

Arinerron commented 8 years ago

No matter what package I use, whether existent or not, always prints the above error message. I've tried run-as id, run-as ls -1Z /sbin/, run-as run-as, run-as dfbkdfvksfdigertgf, and more. All the same error message.

run-as: Package 'id' is unknown
run-as: Package 'ls' is unknown
run-as: Package 'run-as' is unknown
run-as: Package 'dfbkdfvksfdigertgf' is unknown

etc. I'd love if someone could help. Thanks!

CaramelFur commented 8 years ago

I had this problem too. The error occurs because the run-as command is not changed, and the reason for this is that you've pushed the wrong architecture to your device. The normal command you type is: make root but to push another architecture you use: make root-arm7 or make root-arm8

When the overwrite is succesful the response from run-as should be: running as uid 2000 uid 0

hope this helped

Arinerron commented 8 years ago

Thanks. That make target doesn't exist though...

Edit: Ah, nevermind. I hadn't pulled the latest commits yet.

Arinerron commented 8 years ago

@rubikscraft Now I'm getting an unknown command error, no matter if I use the target root, root-arm7, or root-arm8. If I access the file in /system/bin/ directly, it says permission denied. That must mean it is built for the wrong architecture still, even though I tried all three. I have an LG Nexus 5x.

timwr commented 7 years ago

@Arinerron the 5X is vulnerable. You arm64

Arinerron commented 7 years ago

@timwr make root-arm64? No such make target exists.

Edit: Nevermind, just make root like usual. Works, thanks!