0x1iii1ii / PPPwn-Luckfox

PPPwn PS4 Exploit for Luckfox Pico Pro/Max/Plus/Mini
GNU General Public License v3.0
191 stars 22 forks source link

Possible to keep Luckfox on after PPPwn with script stopped??? #59

Closed ItsJokerZz closed 2 weeks ago

ItsJokerZz commented 3 weeks ago

I'd like to keep the Mini B on after running but suspend/stop running the script, rather than shutting it down...

I'm trying to have it plugged into my PC, jailbreak and stop running the script so I can connect my console via ethernet, as with having it soldered to the board, it wont be able to connect to ethernet via the port... while on. I am trying to also use the Luckfox for a UART via the GPIO headers. Could we get an option for this?

... Or could someone kindly point my in the right direction to do so, thank you and keep up the great work!

EDIT: If not possible, I'd perfer not to, but could you help with running the script manually if possible, since I have to SSH to the Luckfox for the UART anyways but I'd perfer to auto jailbreak, stop the script and stay on and ready.

0x1iii1ii commented 3 weeks ago

I really don't get your question, but with current features, you can run it manually from the web, you just need to configure it by untick the auto-run PPPwn option.

ItsJokerZz commented 3 weeks ago

To clarify, I'm asking if can you add a feature where the PPPwn process stops running after the console has been jailbroken?

Right now, it continues running unless the Luckfox is set to shutdown afterward. I don’t want it to be shut down, but I don’t want the script to keep running because, while it’s active, my console can’t connect via ethernet with the Luckfox soldered to the console’s ethernet, it prevents the console from connecting to ethernet from my router while the script is running. However, if PPPwn isn’t running, the console connects to ethernet just fine. I need the script to stop after the consoles jailbroken.

I’ve also tried using the web browser method, but it didn’t work at all—the page wouldn’t load on the console. I’d rather not go that route. I’d prefer to SSH in and run it manually at that rate, but ideally, I’d like an option to automatically stop the PPPwn service/script after jailbreaking, while keeping the Luckfox powered on. Thanks in advance!

harsha-0110 commented 3 weeks ago

I get your problem. But pppwn stops after the execution and you won't be able to connect to internet via Ethernet because luckfox will be occupying the ethernet port. I have a work around, you can modify the shutdown button to turn off the eth0 of the luckfox so that it won't interfere with Ethernet cable to connect with internet and you can ssh using type c port or uart.

harsha-0110 commented 3 weeks ago

If you wanna change shutdown button to turn off eth0 replace the following code in exec.sh.

killall pppoe-server
sleep 1
awk -v OFS=: '{gsub("\"shutdown_flag\": true", "\"shutdown_flag\": false")}1' "$CONFIG_FILE" >/tmp/tmp.$$.json && mv /tmp/tmp.$$.json "$CONFIG_FILE"
chmod 777 "$CONFIG_FILE"
sleep 1
halt

to

awk -v OFS=: '{gsub("\"shutdown_flag\": true", "\"shutdown_flag\": false")}1' "$CONFIG_FILE" >/tmp/tmp.$$.json && mv /tmp/tmp.$$.json "$CONFIG_FILE"
chmod 777 "$CONFIG_FILE"
sleep 1
ifconfig eth0 down
ItsJokerZz commented 3 weeks ago

I just replaced the line ... halt with ifconfig eth0 down and am trying now...

EDIT: it still shutdown afterwards... ☹️

ItsJokerZz commented 3 weeks ago

I also cannot use stty for UART because running ls /dev/ttyS* returns... ls: /dev/ttyS*: No such file or directory but the Luckfox Mini B does support.

https://wiki.luckfox.com/Luckfox-Pico/Luckfox-Pico-UART#2-serial-port-testing-shell

and it did work on the plus model with an SD card image rather than NAND.

UPDATE: got it working with the SD card method and an older version (1.0.2 i think) which is fine but... I cannot get what I need working on the NAND flash which I'd perfer since it's faster but I couldn't get

0x1iii1ii commented 3 weeks ago

added to the latest commits https://github.com/0x1iii1ii/PPPwn-Luckfox/commit/b194d28fe0b7385c1fb30dd00e601f0ff6c1a908

ItsJokerZz commented 2 weeks ago

Worked and can connect to via ethernet now, but the GPIO UART headers are unavailable, as mentioned in the previous message. I'd really perfer to get it fixed and stop using the sd card as its very slow like 5+ mins but the flash was sometimes seconds, but is the only way the UART headers work, using Ubuntu.