deviato / DroidPPPwn

PPPwn_cpp for Android + App Frontend [needs rooted device]
105 stars 5 forks source link

[Feature Request] Run On Boot Toggle #29

Closed kevsestre closed 1 month ago

kevsestre commented 4 months ago

Request to have a toggle to run exploit on boot

sauyadav commented 2 months ago

Please! It will be very helpful. Also provide an option to auto start exploit on app boot and starting the app minimized.

deviato commented 2 months ago

Please! It will be very helpful. Also provide an option to auto start exploit on app boot and starting the app minimized.

Are you going to leave your android device permanently switched on? Or turn it back on every time together with the ps4? Because in the first case, the app would probably be killed by the android system.

sauyadav commented 2 months ago

It is the first case but my device has enough ram so it won't be killed off.

deviato commented 2 months ago

It is the first case but my device has enough ram so it won't be killed off.

It's not a question of ram. Android system kills processes that have been running for too long to save battery power. Another problem is that, once the payload is injected, the exploit terminates execution. By restarting it immediately afterwards, it would continue to attempt the exploit with the ps4 running, the app cannot know when the ps4 is switched off and on again to restart the exploit. Other systems such as pi-pwn adopt the behaviour of auto-shutting down the device once the exploit is successful, and then you have to manually switch it back on together with the ps4.

sauyadav commented 2 months ago

My use case is like this, every evening I'll turn on power on my room electricity which will in turn power on raspberry pi that is connected to my dumb tv and running Android tv. I use of media and YouTube. Also I have installed DroidPPPwn on it too. This Raspberry pi is also connected to my PS4 pro too by Ethernet. So what I want is that DroidPPPwn runs on every boot and when I turn on my PS4 pro it jailbreaks it automatically.

deviato commented 2 months ago

My use case is like this, every evening I'll turn on power on my room electricity which will in turn power on raspberry pi that is connected to my dumb tv and running Android tv. I use of media and YouTube. Also I have installed DroidPPPwn on it too. This Raspberry pi is also connected to my PS4 pro too by Ethernet. So what I want is that DroidPPPwn runs on every boot and when I turn on my PS4 pro it jailbreaks it automatically.

I think I can code something like a service to autorun at boot, but I cannot guarantee that it will run forever. So, if you only need it at each poweron/boot it should work.

sauyadav commented 1 month ago

Ok, thank you so much.

deviato commented 1 month ago

Ok, thank you so much.

Please check this test version DroidPPPwn-1.4-TEST.zip

sauyadav commented 1 month ago

I installed it and restarted RPi. But it is not working. Also when I check Auto run is overflow menu, it returns to app main screen and when I open the overflow menu again, Auto run is unchecked. Also, now is not working manually either.

deviato commented 1 month ago

I installed it and restarted RPi. But it is not working. Also when I check Auto run is overflow menu, it returns to app main screen and when I open the overflow menu again, Auto run is unchecked. Also, now is not working manually either.

Did you get the 'Service started' notification? The app does not print any output on the main window when it is running as a service, it runs in the background. You have to select the right firmware first, and then click AutoRun from the menu, ghdn the service starts immediately. The only visible output is on LogCat (you can see it opening a shell and giving the command logcat -s Droid).

deviato commented 1 month ago

Also try this new test version DroidPPPwn-1.4-TEST2.zip

sauyadav commented 1 month ago

It works!! Thank you so much. I selected Autorun from overflow menu of app, selected correct firmware and restarted the RPi. On boot I got Magisk notification of root privilege for DroidPPPwn. Then I started ps4 and it got PPPwn after few tries. Thanks again!

deviato commented 1 month ago

I am pleased. Then I can proceed to publish the new release.