Capturing android network traffic by setting up a VPN?

3

0

I'm trying to capture an app's network traffic, the proxy option in the Android OS is not proxying everything the app is sending/receiving. Would it be possible to setup a VPN server and analyze all network traffic that is passing though my Android phone?

Arya

Posted 2015-10-27T20:07:15.810

Reputation: 437

1VPN running within your own network that would indeed work – Ramhound – 2015-10-27T20:08:44.260

how would I go about setting it up? Would I be using openvpn with wireshark? – Arya – 2015-10-27T20:13:09.973

OpenVPN + wireshark (or just plain old tcpdump) will work. You may need to analyse the data on the external Interface - ie the traffic leaving your network, as, in my experience, OpenVPN tun interfaces and libpcap (the underlying capture mechanism on a Linux system) don't always work. – davidgo – 2015-10-27T20:31:05.680

@Arya Both/all of the above – Ramhound – 2015-10-27T20:54:27.800

Answers

0

http://mitmproxy.org/index.html

This is all you need. It is proxy attacking your application via man-in-the-middle attack and you can see everything application is sending/receiving. Bonus points it works when app is using HTTPS too. (By installing certificates on your device. It's super simple too :) ).

nmiculinic

Posted 2015-10-27T20:07:15.810

Reputation: 111

I would need to run it on Linux am I right? – Arya – 2015-11-12T22:13:32.527

It seems it doesn't work anymore on Android 6 – Pere – 2018-02-06T11:31:35.890