harsha-0110 / PPPwn-Luckfox

Alternative method to run PPPwn on Luckfox Pico Plus/Pro/Max with additional features.
GNU General Public License v3.0
42 stars 9 forks source link

PPPwn-Luckfox

An alternative method to 0x1iii1ii/PPPwn-Luckfox running PPPwn on Luckfox Pico Plus/Pro/Max with additional features.

Features

Prerequisites

Downloads

Custom Buildroot/Ubuntu Image for PPPwn-Luckfox

Luckfox Model Buildroot NAND Image Buildroot SD Image Ubuntu Image
Luckfox Pico Pro/Max download download download
Luckfox Pico Plus/Mini download download download

SocToolKit for flashing image into SD card

Installation

Buildroot(NAND/SD) Installation (Windows)

  1. Download the Buildroot(NAND/SD) image for your respective Luckfox Pico Model, SocToolKit from above and extract them. If you want to install on NAND, download and install DriverAssitant-RK.

  2. Follow this SD tutorial to flash the OS onto the SD card for the Luckfox. Or this NAND tutorial to flash the OS onto the NAND of the Luckfox.

  3. Skip this step if you are installing on the NAND. After flashing the OS, eject the SD card and insert it into the Luckfox.

  4. Now connect Luckfox device to PC via Type-C cable.

  5. On your PC open Control Panel -> Network and Internet -> Network and Sharing Center -> Change Adapter Options. You will find Remote NDIS based Internet Sharing Device. Right-click and choose Properties.

  6. Double-click on Internet Protocol Version 4 (TCP/IPv4). Set the IPv4 address to 172.32.0.100 and click on subnet mask and click OK.

  7. Open MobaXterm, choose Session->SSH, and enter the IP address of Luckfox pico as 172.32.0.93 and click OK, enter login root and password luckfox.

  8. Download this repo, unzip and rename folder to PPPwn-Luckfox drag and drop the files into /root in the Mobaxterm SSH browser(SSH files viewer).

  9. Run the following commands in SSH:

    cd PPPwn-Luckfox
    chmod +x install.sh
    ./install.sh
  10. After Reboot you can visit http://172.32.0.93/ using any browser to access the web-ui and modify the config.

Buildroot Installation (MacOS) - ATTENTION - NAND ONLY!!!

  1. Download the Buildroot NAND image for your respective Luckfox Pico Model, SocToolKit from above and extract them.

  2. Grab your self a copy of upgrade tool v2.25 for mac and android platform tools.

  3. Plug your luckfox into usb while holding the boot button and on your mac's terminal, check that your board is listed:

    sudo /path/to/upgrade_tool ld
  4. To upgrade your firmware, we just need the update.img from the custom buildroot:

    sudo /path/to/upgrade_tool uf /path/to/update.img
  5. We can check when the device finished rebooting by checking for presence in adb:

    adb wait-for-device && adb devices
  6. Send the necessary files into the correct path:

    adb push /path/to/extracted-PPPwn-Luckfox /root/PPPwn-Luckfox
  7. Grab a shell from the device and start installation:

    adb shell
  8. In Luckfox shell ([root@luckfox ]$), run the following commands:

    cd /root/PPPwn-Luckfox/
    chmod +x install.sh
    ./install.sh

Ubuntu SD Installation (Windows)

  1. Download the Ubuntu image for your respective Luckfox Pico Model, SocToolKit from above and extract them.

  2. Follow this tutorial to flash the OS onto the SD card for the Luckfox.

  3. After flashing the OS, eject the SD card and insert it into the Luckfox. Plug the Type-C cable into the Luckfox to power it up and connect one end of the Ethernet cable to the Luckfox and the other end to a router.

  4. Log in to the Luckfox using SSH, the ip address of the LuckFox Pico device can be obtained from Router's admin page or using network tools like Fing:

    Login: pico
    Password: luckfox
  5. Run the following commands in SSH:

    sudo git clone -b Ubuntu https://github.com/harsha-0110/PPPwn-Luckfox.git
    cd PPPwn-Luckfox
    sudo chmod +x install-dep.sh install.sh
    sudo ./install-dep.sh
    sudo ./install.sh
  6. After Reboot you can visit http://172.32.0.70/ using any browser to access the web-ui and modify the config.

Web Interface Features

The web interface is available at http://<your-device-ip>/ and http://10.1.1.1/ on PS4 using PPPoE connection.

Configuration

Web Interface

The Config page is available at http://<your-device-ip>/config.php and http://10.1.1.1/config.php on PS4 using PPPoE connection

Manual Configuration

You can manually edit the configuration file located at /etc/pppwn/config.ini.

Usage

Running PPPwn

Update

Update Ubuntu:

To update the project with the latest changes from the repository:

  1. Run the update script:
    cd PPPwn-Luckfox
    sudo ./update.sh

PS4 Setup:

Notes

Contributing

Feel free to submit issues or pull requests for improvements and bug fixes.

Credits

Special Thanks to

License

This project is licensed under the MIT License. See the LICENSE file for more details.