deviato / DroidPPPwn

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

Android x86 stdin pppwn not found #4

Closed Invictaz closed 4 months ago

Invictaz commented 4 months ago

What am I missing to run it?

deviato commented 4 months ago

Check the latest version reading carefully the known bugs section in Readme

Invictaz commented 4 months ago

Maybe it's because my device is x86 32 bit instead of ARM 32 bit (it's a tablet). Normally the libhoudini converts ARM to X86 but I hope you can make an X86 build for 32 bit Android as well.

I will report after manually extracting and testing the V1.1

deviato commented 4 months ago

Yes, it's definitely for that reason, they are different architectures. However, the x86 binaries could already be compiled easily on a Linux machine via the original PPPwn_cpp repository!

Invictaz commented 4 months ago

Yes but that is x86 for pc not x86 for Android?

deviato commented 4 months ago

It can cross compile I think... however you can compile directly on your device with Termux like I did. Install Termux from here https://f-droid.org/repo/com.termux_118.apk. Open termux and give these commands: apt -y update && apt -y upgrade apt install git build-essential binutils libpcap tsu git clone --recursive https://github.com/xfangfang/PPPwn_cpp.git cd PPPwn_cpp cmake -B build cmake --build build -t pppwn If no errors you can test the bin with: build/pppwn Finally you can copy the new binaries in /data/data/it.deviato.droidpppwn/lib, or send me so I can include them in the app. The files are pppwn, libpcap.so.1.10.4 and libc++_shared.so This commands create the package pppwnbin.tar.gz in your sdcard root: tsu tar czvf /sdcard/pppwnbin.tar.gz /data/data/com.termux/files/home/PPPwn_cpp/build/pppwn /data/data/com.termux/files/usr/lib/libpcap.so.1.10.4 /data/data/com.termux/files/usr/lib/libc++_shared.so

Invictaz commented 4 months ago

I placed it and modded it to 755. Unfortubately it gives not executable 32 bit ELF file

I'm hoping to compile it now.

Invictaz commented 4 months ago

The compilation is a succes, I uploaded the file below. Remember it is X86 32 bit not 64bit.

The ioctl is because I removed the ethernet dongle temporarily.

However the libpcap.so.1 is not working on Android X86 yet. So for now it only runs in Termux. I might need to cross compile it but I don't know the flag to compile it for this architecture. You happen to know it @deviato ? I tried getting the file from data/data/com.termux/files/use/lib but it gives the same problem.

In Termux It needs 4 or 5 tries instead of 1 via Windows 11 or 1 or 2 on my Pi Zero 1. It is however much faster than the Python version.

The most problematic stage is the "scanning for corrupted objects" which fails quite some times before it works.

Screenshot_20240527-023143

Succes

20240527_015740

pppwn-androidx86.zip

deviato commented 4 months ago

Forgot to say, after copying libpcap.so.1.10.4 to data/data..appfolder you have to rename it to libpcap.so.1

pokemoneyte commented 4 months ago

I tried to reach you from different places but I couldn't reach you, so I use this place. Is it possible to run this exploit via Hotspot connection? I tried yesterday with pppoe wifi connection but ps4 couldn't get ip address. I don't know anything about coding. if I'm saying something impossible sorry about that.

Invictaz commented 4 months ago

The libpcap.so.1.10.4 should be used instead of libpcap.so.1 from the termux usr lib folder.

deviato commented 4 months ago

That's what I said before, but you have to rename it to libpcap.so.1 after copying

Invictaz commented 4 months ago

It now seems to work, even worked first try compared to five tries needed under Termux.

However there is a small warning. Any way to solve it or doesn't it matter?

WARNING: linker: Warning: unable to normalize ""

20240528_004159

Here are all the files to make it work on Android X86 - 32 bit, not 64bit

droidpppwn-androidx86.zip