[Q] Android Packet sniffing NO Root - Android Q&A, Help & Troubleshooting

Hello,
I would need for a project the possibility, for sniffing packets from an App without rooting the phone.
First I thought, I could code a Proxy Server on my PC, but then I have seen, that when you want to use a Proxy for WiFi, only the browser, not the Apps use it on the phone
So the solution should look like following.
mobile device -------> PC (MitM) ---------> Internet
Its a kind of a man in the middle analysis.
The solution has to be transparent - the Internet Server shouldn`t realize that a PC is analyzing packets.
Packets should be forwarded 1:1 and just be copied away for later analysis.
The simpler the solution the better
Greet`s Erich

eriche said:
Hello,
I would need for a project the possibility, for sniffing packets from an App without rooting the phone.
First I thought, I could code a Proxy Server on my PC, but then I have seen, that when you want to use a Proxy for WiFi, only the browser, not the Apps use it on the phone
So the solution should look like following.
mobile device -------> PC (MitM) ---------> Internet
Its a kind of a man in the middle analysis.
The solution has to be transparent - the Internet Server shouldn`t realize that a PC is analyzing packets.
Packets should be forwarded 1:1 and just be copied away for later analysis.
The simpler the solution the better
Greet`s Erich
Click to expand...
Click to collapse
Well, without rooting your device I don't think you can find any app which can do this for you ! What you are trying to do is without having a magic wand you are trying to do a magic. I don't think you will get success !

without root access it is not possible bcoz for packet sniffing in PC also a backtrack environment is beat ........and in android we are not able to be an admin to redirect the hardware without root access

I was reading something about a VPN loopback work around.
Because VPN is integrated in Android.
So maybe its possible to tunnel to the PC where I can sniff packets
I have a very good idea for a project - so it would be disappointing when it fails only because there is no solution for non rooted devices.
GreeT`s erich

Howto Loopback VPN
tPacketCapture does packet capturing without using any root permissions.
tPacketCapture uses VpnService provided by Android OS.
Captured data are saved as a PCAP file format in the external storage.
If you want a more detailed analysis, please transfer the file to your PC and use the software handles PCAP format(such as Wireshark).
Click to expand...
Click to collapse
This is similar to what I am looking for.
Does anybody know a opensource project of such a sniffer?
How can I set up a loopback VPN Tunnel on PC for sniffing the traffic?
GreeT`s erich

I am looking for same, did you find an open source project for this?
project like tPacketCapture.

lilovirus said:
I am looking for same, did you find an open source project for this?
project like tPacketCapture.
Click to expand...
Click to collapse
Hey, could you find some useful info on this ? Can you please share.
Thanks

Related

[Q] Setup an Encrypted VPN on my home Ubuntu server for my Android

The title basically says it all. I already have an ubuntu server at home that I can ping. From outside my home network.
Basically I need too know what program I need to setup on my machine so I can securely tunnel all my network traffic through my server.
I would like to use the native android vpn settings, however I have SSHTunnel on my rooted gingerbread phone so I can use that as well.
Lastly, I am aware that I can purchase a VPN service. I just want to do this for the learning experience.
Configure Open VPN on your Operating system then download the open vpn client on your phone from Android market. The traffic will be routed then through your desired server. I think this is he way through which you can diversify the traffic from your server to android phone.
That really hit the spot! Thanks for the help!
Also, for everyone else who doesn't want to setup their own server there is also the app by the Tor Project.
Sent from my M865 using xda premium
Hi
Any detailed tutorial available on this topic? I tried to search in the forum, but could find it so far. Will search once again in detail, if somebody knows about it please provide me the link to the related post. Thanks
gopi

[APP] VPN Server on Android Device?

I'm looking to run a VPN server on my Android device so that I can set up a virtual network adapter on my PC to connect to the same network as my Android's wifi. I've seen plenty of Android VPN clients, but no server software.
Is there any software out there to run a VPN server on an android device?
I've heard OpenSSH runs an L2/L3 VPN, but I everything I can find on getting OpenSSH running on Android is all about ftp, and they usually wind up running an alternative. Is there a release of OpenSSH I can use on android for the purpose stated?
Thanks for your patience and support,
Serrath
Bumping the thread.
serrath said:
Bumping the thread.
Click to expand...
Click to collapse
I've ssh into my droid phone without a problem using SSHDroid. I'm also looking for how to setup a vpn server(vpnd) on the same droid phone. It might make it simpler for some work I do that requires access to the static ip address I have at home.
I may go with the following solution instead. blog.gidley.co.uk/2009/03/tunnelling-ssh-over-socks-proxy.html
If you're still looking, we just released Servers Ultimate from which the latest update (today) allows you also to run a VPN Server!
Have a look at the thread and let me know what you think of it! You do need a rooted ARM device to get it working (most devices are arm and if you think about a vpn server you're probably also rooted )
http://forum.xda-developers.com/showthread.php?t=1829334
Themuzz said:
If you're still looking, we just released Servers Ultimate from which the latest update (today) allows you also to run a VPN Server!
Have a look at the thread and let me know what you think of it! You do need a rooted ARM device to get it working (most devices are arm and if you think about a vpn server you're probably also rooted )
http://forum.xda-developers.com/showthread.php?t=1829334
Click to expand...
Click to collapse
i want some help in building an adblock app. I need to intercept all requests using vpn to local a vpn server.

[Q] show a captive portal for users that ride on my android portable hotspot

Hello,
I want to direct every user that connects through my portable hotspot I open on my Android to a captive portal - html page or something.
How can it be done? Is there any app for this? Is it possible?
I've searched and didn't find something like that, all I've found about captive portal is to automatically log in to a captive portal through the Android and not make the user that connect through the Android see/press a captive portal.
Also of course, I've found ways to do it on a normal router but not on a smartphone.
Thank you very much,
mikycomputers said:
Hello,
I want to direct every user that connects through my portable hotspot I open on my Android to a captive portal - html page or something.
How can it be done? Is there any app for this? Is it possible?
I've searched and didn't find something like that, all I've found about captive portal is to automatically log in to a captive portal through the Android and not make the user that connect through the Android see/press a captive portal.
Also of course, I've found ways to do it on a normal router but not on a smartphone.
Thank you very much,
Click to expand...
Click to collapse
Hello, Is anybody has answer for this?
Thanks,
Sorry I can't help but I've been searching myself for months. And this almost got my hopes up..
What I want to do is turn my device into a portable web server.
But here's what I envisioned. You are at a large convention. There is no Cellphone tower signal and the location doesn't provide wifi. You want people to get a PDF file on the spot. Blackberry, iOS, Android whatever can access the wifi. So you make a small portable device that can serve up webpages. I could do this all on a laptop. But 6 ounce device that can do all that would be much better.
So just putting it out there for some developer reading this going man why would someone want a captive portal on android.
mikycomputers said:
Hello,
I want to direct every user that connects through my portable hotspot I open on my Android to a captive portal - html page or something.
How can it be done? Is there any app for this? Is it possible?
I've searched and didn't find something like that, all I've found about captive portal is to automatically log in to a captive portal through the Android and not make the user that connect through the Android see/press a captive portal.
Also of course, I've found ways to do it on a normal router but not on a smartphone.
Thank you very much,
Click to expand...
Click to collapse
Having been pointed to this thread from another I was involved in, you may want to have a look at Using an Android as a webserver
Or...
kWS - Android Web Server
PAW Server for Android
+1, I need this as well.
Has anyone found a solution yet?
I've been thinking the same thing and could not get anything. I'm gonna try SimonTS post/reply and see if it works.
There is an app in Google Play with the name Paywall from fattin.com. It implements the captive portal logic but you have to be root in your device.
mikycomputers said:
Hello,
I want to direct every user that connects through my portable hotspot I open on my Android to a captive portal - html page or something.
How can it be done? Is there any app for this? Is it possible?
I've searched and didn't find something like that, all I've found about captive portal is to automatically log in to a captive portal through the Android and not make the user that connect through the Android see/press a captive portal.
Also of course, I've found ways to do it on a normal router but not on a smartphone.
Thank you very much,
Click to expand...
Click to collapse
Did you find any solution ?
Maybe by installing Ubuntu on the phone
Hi,
You can try to install Ubuntu by using multirom, and use a hotspot tutorial for linux. The bad thing is that you cannot use android apps while the hotspot is running, because you are in the Ubuntu OS. You can use Ubuntu apps either. It's a complicated solution, but the only one who is working.
@mikycomputers - any update on this ? I'm also looking for a similar app
Hi, is there any solution now?
Still no solution...
We gonna have to make an app....
Hi
Maybe netcut you can find it on playstore
mikycomputers said:
Hello,
I want to direct every user that connects through my portable hotspot I open on my Android to a captive portal - html page or something.
How can it be done? Is there any app for this? Is it possible?
I've searched and didn't find something like that, all I've found about captive portal is to automatically log in to a captive portal through the Android and not make the user that connect through the Android see/press a captive portal.
Also of course, I've found ways to do it on a normal router but not on a smartphone.
Thank you very much,
Click to expand...
Click to collapse
You can do it,if your device is rooted.
Generally any OS detects captive portal by looking for a specific site. Such as captive.apple.com by IOS and Android 8.0.0
You can simply redirect them to your server.
Edit hosts file in directory /system/etc/hosts
Code:
192.168.43.1 captive.apple.com
192.168.43.1 clients3.google.com
Replace 192.168.43.1 with your server address.
Don't forget to start your web server on port 80
I'll give more details,if still require.
Captive portal server app
I've just found this thread while searching on building a captive portal using WordPress and don't have enough posts to add URLs but here goes...
There is a project for raspi & certain routers that does this...
piratebox.cc
Which has now been ported to android by jochen ruehl who iirc is the guy who made paw server...
piratebox.cc/android
There is also lots more information about piratebox on his blog...
fun2code-blog.blospot.com/search/label/PirateBox
And if your interested in how it works or want to edit it to your own needs, the source code is on github...
github.com/joschi70/AndroidPirateBox
Hope this helps anyone who finds this thread In the future or maybe even the op
Keep rolling the doobies!
captive portal on android.
check this thread by me.
works 100% on rooted device.
Hey guys! I made a simple app for this purpose. I need your help to improve it.
For downloading app and source code check this thread https://forum.xda-developers.com/android/general/guide-setup-fake-captive-portal-android-t4011689

[Search] no root adblock without vpn

my problem is that i have a non rooted phone with vpn always on and im searching for an app to activating ad block on it.
My fix for it would be to use an android wide proxy or a custom dns that overrides vpn dns.
as title said an root app or an app that provides vpn solution wouldnt be what im searching for. I had once an adblock app that routes traffic trough local proxy beside the vpn but cant find it anymore
Update: i found AdHell but its only for Samsung Devices with knox. Any other solutions?
HeathenMan said:
Update: i found AdHell but its only for Samsung Devices with knox. Any other solutions?
Click to expand...
Click to collapse
any news on this one?
I wanna use protonVPN and adblcoker at same time
a bit of elbow grease to protect self from Privacy Raping
Some [open]vpn clients allow vpn side connection to Socks5. Some even allow toggle of LAN access from device. I am not claiming a finish product exists but perhaps this gives you some joy.
Perhaps your socks5 instance runs in Amazon AWS free tier. Maybe it runs locally on your android handset. Perhaps you run Privoxy itself on android. [@mod: privoxy is F/OSS older than this forum]. There are a few privoxy projects for android on github. Perhaps you pick their brain. It was that against which proxomitron competed [also F/OSS. Thank God for Scott Lemmon].
Using things in differing order you might search the article to which I may not link: Privoxy on Android (with EC2 VPN)
I wanted to bring the Amazon EC2-based Privoxy service to it, by way of a VPN.
Click to expand...
Click to collapse
There was no obvious way to contact the author who hasn't posted since 2016.
There is an OpenVPN service you can likely find the name of yourself offering *recently* an adblock toggle and AntiTracker toggle with a hardcode mode to protect you from predators like google and Fbook. It shouldn't be long before others emulate this functionality. It sports the vpn side socks5 option.
Or privoxy tunnel to remote [cloud (openvpn)]. See? Fun with permutations. Maybe from phone with ShadowSocks to cloud to vpn to web. "OpenVPN over shadowsocks". At this point look into sites helping Chinese dissidents.
You definitely then return here with your improvements to share.
The remaining question is how much is your time worth? Not much? Then search the web ad naseum for the 'ideal free' solution. Elsewise pony up some pennies for some cloud time as part of a solution.
Same question here !
And it seems that adhell is now only available for entreprise use
Wasn't AdGuard doing that?
yes you are right. it works with setting a private dns in the system settings with dns.adguard.com - no batterydrain - no more ads - no vpn - no root

General Tethering

Has anyone found a way to tether from the phone without being throttled?
mosh.org
mosh then forward traffic through the tunnel
no privilege elevation needed
Let me go have a look see at it. I'm not looking for the full 5G but God I lived through dial up once already.... and it looks to be open source which is even better!
XeoNoX said:
mosh.org
mosh then forward traffic through the tunnel
no privilege elevation needed
Click to expand...
Click to collapse
I am guessing you recommended this without actually having tried it because according to the mosh readme: "Mosh does not support X forwarding or the non-interactive uses of SSH, including port forwarding."
If mosh can be actually used for tunneling, would you please describe specifically how to do so? My general understanding of this would be to run a server app on the phone and then connect client devices like PC's and Android TV's using mosh in client mode to it to forward their traffic through it. However, I cannot find an SSH server app for Android which will run on Android 11 due to changes made by Google in Android 10 and above. My understanding of the official mosh documentation is that mosh requires an SSH server to establish a connection before it can run its own server mode.
In addition will mosh tunnel both IPv4 and IPv6 traffic? If so, how would this be setup? Would two separate server sessions be required?
Iv tried most of the paid apps in the store (Klink, Pdanet+ and so forth) and Klink while not full speed works the best but after a few days all of the sudden you lose the ability to use sites like Netflix, Amazon Prime Video, or oddly Minecraft services.
i get anywhere from 85-130mbps by using vpn hotspot + adguard. it requires root tho.

Categories

Resources