deviato / DroidPPPwn

PPPwn_cpp for Android + App Frontend [needs rooted device]
82 stars 2 forks source link

No Root solution via VPN #37

Closed Invictaz closed 1 month ago

Invictaz commented 1 month ago

Would it be possible to do a VPN like solution to have libpcap without root?

See https://github.com/emanuele-f/PCAPdroid

As a route via Shizuku and adb only works on Android 11+ iirc

deviato commented 1 month ago

No, you need real packet forging at OSI Level 2. VPN-like solutions act as a man-in-the-middle between the app and the network, are able to decrypt locally generated traffic for inspection, but not to alter the real content.

Invictaz commented 1 month ago

I don't know what OSI level 2 is.

FonzTech commented 1 month ago

Well, I think this is technically possible. It involves a lot of work, but you can definitely alter the outcoming packet via a "VPN service". The "Vpn Api" has changed during the years, mainly for security requirements, but packet altering is definitely possible. Just think about "SSL packet sniffers" apps.