TCPdump on S8 - Samsung Galaxy S8 Questions and Answers

So there is hidden tcpdump enabler but I need an OTP? Is there anyway around this? I thought OTP is for buying stuff? tcpdump is a free linux tool.
Reason I need this is I am trying to get Larix to work. It is an Android RTMP streamer app. It will not connect to my rtmp media server so I'd like to look at the packets between the S8 and media server. I do not have direct access to the media server.
Thanks
Ray

You'll need root for packet capturing. Best get your hands on a sniffer for a man in the middle attack on your own server and capture packets that way. Unless someone knows of a rootless packet capturing method. Only way I can think of is having a hardwired laptop with wifi hotspot enabled on it and capture the packets that way.

You can actually use an app that setup a local VPN connection and then you have access to the packets.
play.google.com/store/apps/details?id=jp.co.taosoftware.android.packetcapture
play.google.com/store/apps/details?id=app.greyshirts.sslcapture

Valkiry said:
You'll need root for packet capturing. Best get your hands on a sniffer for a man in the middle attack on your own server and capture packets that way. Unless someone knows of a rootless packet capturing method. Only way I can think of is having a hardwired laptop with wifi hotspot enabled on it and capture the packets that way.
Click to expand...
Click to collapse
You will not be able to put your wifi radio in monitor mode without root, if you can at all.

partcyborg said:
You will not be able to put your wifi radio in monitor mode without root, if you can at all.
Click to expand...
Click to collapse
But you dont need to for the case he asked .
As soon as the app is started and the full VPN tunnel is up, all the traffic is routed via the VPN connection, so the app is receiving all the traffic from the device.
If you want to capture WiFI frames, then you need more than just root. The wifi card needs to be put in promiscuous mode...if that is supported on Android I don't know.

rigocalin said:
But you dont need to for the case he asked .
As soon as the app is started and the full VPN tunnel is up, all the traffic is routed via the VPN connection, so the app is receiving all the traffic from the device.
If you want to capture WiFI frames, then you need more than just root. The wifi card needs to be put in promiscuous mode...if that is supported on Android I don't know.
Click to expand...
Click to collapse
Which is why I quoted the person who asked

Related

Can I make tablet an AP?

I want to make my tablet a Wi-Fi hotspot so I can share files by connecting my phone to the tablet Wi-Fi ap, and start a ftp server.
Can it be done? I tried foxfi but it crashed when I tried to enable AP.
I can use my phones tether option, but when I do my ftp app says "please connect to a network"
Thanks
Swiped from my Nexus 10 using xda-developers app
To clarify, I want to share ftp from my phone, connected to host AP on my nexus 10, and access on my nexus 10. I have been able to connect my laptop and tablet to my phone AP, and successfully shared files (apache2 http server) from my laptop to tablet, but this requires my laptop to be constantly on, also my phone.
Bump.....
Swiped from my Nexus 10 using xda-developers app
thank you ))
ismayilovali said:
thank you ))
Click to expand...
Click to collapse
For what? Lol
Swiped from my Nexus 10 using xda-developers app
Bump...
Sigh, I really wish I could get it working.
I downloaded an iwconfig binary but it says:
Code:
# iwconfig
lo no wireless extensions.
sit0 no wireless extensions.
wlan0 no wireless extensions.
ip6tnl0 no wireless extensions.
p2p0 no wireless extensions.
Im confused what you are trying to accomplish. If you host the FTP on your phone, and want to connect the Nexus 10 to the FTP to share files, then all you do is on your phone turn on wifi tether, and connect to the wireless network the phone creates from your N10. I dont think it is possible to make a tablet an access point that doesnt have a cell service internet connection. In order for the Nexus 10 to be an "access point" it would actually be just a repeater from your routers (or phones, or whatever) internet connection. But you already have that on your phone and by making your phone the hotspot you just connect your tablet to the phone like it was connecting to any normal wireless network.
EniGmA1987 said:
Im confused what you are trying to accomplish. If you host the FTP on your phone, and want to connect the Nexus 10 to the FTP to share files, then all you do is on your phone turn on wifi tether, and connect to the wireless network the phone creates from your N10. I dont think it is possible to make a tablet an access point that doesnt have a cell service internet connection. In order for the Nexus 10 to be an "access point" it would actually be just a repeater from your routers (or phones, or whatever) internet connection. But you already have that on your phone and by making your phone the hotspot you just connect your tablet to the phone like it was connecting to any normal wireless network.
Click to expand...
Click to collapse
No, I just want my Nexus 10 to be able to HOST [read: have IP 192.168.43.1], to be able to connect my phone to it [192.168.43.105], so that my FTP app will see I really am connected to wifi.
In tether mode, phone has 192.168.43.1, however the app doesn't recognize it as being connected since it's in tether, and not regularly connected to wifi, and will not start because it says Please connect to a network.
This is why I would like my Nexus 10 to host an infrastructure network.
Well sorry but I dont know how to help you with that sort of setup. or if it will even work. I highly doubt it will work since normally you MUST be on data to start a tether. This is because it configured your wifi radio for a different mode that allows others to connect. I dont think it is possible to have the same radio be configured in two separate ways at the same time.
WHy not just do what the majority of people do and get a dropbox for free and host the files there. Your tablet and phone will both be able to access it.
EniGmA1987 said:
Well sorry but I dont know how to help you with that sort of setup. or if it will even work. I highly doubt it will work since normally you MUST be on data to start a tether. This is because it configured your wifi radio for a different mode that allows others to connect. I dont think it is possible to have the same radio be configured in two separate ways at the same time.
WHy not just do what the majority of people do and get a dropbox for free and host the files there. Your tablet and phone will both be able to access it.
Click to expand...
Click to collapse
Look, you have no clue what you're talking about.
I know what I intend to do will work IF I could get my tablet to make a network in infrastructure mode. I do not want to hear about "better ways" to do it, you have no clue what my situation is.
You are really wrong on a lot of points [you do not need an actual data connection/plan to start a tether network, on pretty much any phone that supports it], you really don't know, I understand, but please stop saying "it can't be done," or just stop replying. Also I cannot just use dropbox because it would take a zillion years to upload 4GB movies. And when I'm traveling [like now] I do not always have wifi.
lol. Wow dude what a **** post. Here I am trying to help you and you be a complete ass about it my suggestion? I thought of soemthing that might work and was going to post it but since you feel like telling me to go **** myself then same to you buddy.
I think I am picking up what you are laying down.
You want to start a wireless network between your N10 and your phone without using a wireless router or access point device.
If you were trying this back in the old days you would simply use a ethernet cross over cable between two ethernet cards and set them to have the same subnet.
Can't say that I know how to do this though with wireless networking.
Sent from my Nexus 10 using Tapatalk HD
This is the type of thing Wifi Direct is supposed to be for. The Nexus 10 supports that, it's under the menu in wireless settings. Not sure if your phone does, of course.
Also, depending on AP settings, two devices (clients) on the same wireless network can communicate with each other. It's relayed through the AP, so it will be somewhat slower.
mvmacd said:
Look, you have no clue what you're talking about.
I know what I intend to do will work IF I could get my tablet to make a network in infrastructure mode. I do not want to hear about "better ways" to do it, you have no clue what my situation is.
You are really wrong on a lot of points [you do not need an actual data connection/plan to start a tether network, on pretty much any phone that supports it], you really don't know, I understand, but please stop saying "it can't be done," or just stop replying. Also I cannot just use dropbox because it would take a zillion years to upload 4GB movies. And when I'm traveling [like now] I do not always have wifi.
Click to expand...
Click to collapse
You are being a **** man.. and I uploaded borderlands 2 in less than 3 hours to my drop box.. you don't need data tho, but you may need a cellular radio. Why not use a PC or a USB otg cable and connect the 2? Do it all the time with my N7 and HTC vivid
Sent from my Vivid 4G using Tapatalk 2
Still not clear as to what the problem is. Since both on 192.168 non-routable networks presumably they are sitting next to one another. Then who cares which device is the AP? One should be able to run ftp server and the other ftp client. Since he doesn't need data then it seems ftp is just to access one device from the over - no true tether for external data.
Still Charged Up
Here's what I did and it works to share files between phone and tablet without PC using ftp. Both devices running ES File Explorer. Droid Charge phone hotspot started - has IP address 192.168.43.1. Turn on ftp server within es file explorer on phone. Connect to phone from tablet over WiFi. Phone assigns tablet IP address - in this case 192.168.43.131. On the tablet open es file explorer and define the ftp server that is running on the phone. Once done perform the ftp connection from the tablet to the phone. You can then ftp between the two for as much as you want.
I am paying for phone tethering app on phone. The apps I see in the market seem to identify issues with JB or seem just too old to depend on. Regardless, if you just want to ftp between the two you do not need tethering. You need an app that will act as a hotspot managing devices, security and IP addresses. Another option is a cheap portable access point. Again, you keep focusing on ftp - not the internet. The ap creates a WiFi network that your phone and tablet can connect to - no different than a crossover cable between two wired Ethernet devices. As long as the both are on the same network you are good to go.
BTW - you may think you've perfectly explained what you are looking for answers to. You have not so you should not be too surprised at some of the answers.
Sent from my Nexus 10 using xda app-developers app
Reilly1812 said:
Here's what I did and it works to share files between phone and tablet without PC using ftp. Both devices running ES File Explorer. Droid Charge phone hotspot started - has IP address 192.168.43.1. Turn on ftp server within es file explorer on phone. Connect to phone from tablet over WiFi. Phone assigns tablet IP address - in this case 192.168.43.131. On the tablet open es file explorer and define the ftp server that is running on the phone. Once done perform the ftp connection from the tablet to the phone. You can then ftp between the two for as much as you want.
I am paying for phone tethering app on phone. The apps I see in the market seem to identify issues with JB or seem just too old to depend on. Regardless, if you just want to ftp between the two you do not need tethering. You need an app that will act as a hotspot managing devices, security and IP addresses. Another option is a cheap portable access point. Again, you keep focusing on ftp - not the internet. The ap creates a WiFi network that your phone and tablet can connect to - no different than a crossover cable between two wired Ethernet devices. As long as the both are on the same network you are good to go.
BTW - you may think you've perfectly explained what you are looking for answers to. You have not so you should not be too surprised at some of the answers.
Sent from my Nexus 10 using xda app-developers app
Click to expand...
Click to collapse
actually I explained it pretty well: can nexus 10 be an AP? How?
Look up AP on Google.
Reilly1812 said:
Still not clear as to what the problem is. Since both on 192.168 non-routable networks presumably they are sitting next to one another. Then who cares which device is the AP? One should be able to run ftp server and the other ftp client. Since he doesn't need data then it seems ftp is just to access one device from the over - no true tether for external data.
Still Charged Up
Click to expand...
Click to collapse
I think I explained my FTP doesn't honor tether mode, it technically can access wlan0 to get ip to bind, just the dev didn't allow it.
XxSHaDoWxSLaYeRxX said:
You are being a **** man.. and I uploaded borderlands 2 in less than 3 hours to my drop box.. you don't need data tho, but you may need a cellular radio. Why not use a PC or a USB otg cable and connect the 2? Do it all the time with my N7 and HTC vivid
Sent from my Vivid 4G using Tapatalk 2
Click to expand...
Click to collapse
You're missing the point. I want to INSTANTLY stream from phone to tablet.
also I only have 0.6Mbps up.
derobert said:
This is the type of thing Wifi Direct is supposed to be for. The Nexus 10 supports that, it's under the menu in wireless settings. Not sure if your phone does, of course.
Also, depending on AP settings, two devices (clients) on the same wireless network can communicate with each other. It's relayed through the AP, so it will be somewhat slower.
Click to expand...
Click to collapse
yeah, Rezound don't got Wi-Fi direct.
EniGmA1987 said:
lol. Wow dude what a **** post. Here I am trying to help you and you be a complete ass about it my suggestion? I thought of soemthing that might work and was going to post it but since you feel like telling me to go **** myself then same to you buddy.
Click to expand...
Click to collapse
Sorry for coming off like that, you just kept telling me things that were irreverent to the op, I got a little ticked. Sorry
Swiped from my Rezound using xda-developers app
Not sure if it's what your looking for, but how about http://code.google.com/p/android-wifi-tether/ ?
When I tether my tablet to my phone (haven't tried other way around), it see's its WiFi as a normal WiFi, not as a mobile hotspot or anything. There's different device profiles to choose from, and I think a choice for either ad-hoc or infrastructure; and it's free
Instantly stream from phone to tablet? If that is all you need then the tablet does not need to function as AP - the phone can do it. All you need is the two units on the same network.
I'm done with this thread. Good luck.
Still Charged Up
Reilly1812 said:
Instantly stream from phone to tablet? If that is all you need then the tablet does not need to function as AP - the phone can do it. All you need is the two units on the same network.
I'm done with this thread. Good luck.
Still Charged Up
Click to expand...
Click to collapse
That's the problem, my main router only gets about 150KB/s when I stream it both connected to that. I need a router in my room, and my phone has a tether mode that acts as a router [192.168.43.1, gives DHCP IPs, etc]. The only thing, the program I used ["FTP server"] doesn't recognize I have a 192.168 IP, because it sees the regular wifi is off [and tethering is on, which I solely use as a router, not internet].
I will look into the other file manager mentioned, it sounds like it might be able to do what I'm looking for. thanks
espionage724 said:
Not sure if it's what your looking for, but how about http://code.google.com/p/android-wifi-tether/ ?
When I tether my tablet to my phone (haven't tried other way around), it see's its WiFi as a normal WiFi, not as a mobile hotspot or anything. There's different device profiles to choose from, and I think a choice for either ad-hoc or infrastructure; and it's free
Click to expand...
Click to collapse
Yeah I did try this. It fails, the log says it failed to set SSID, and a couple other things that are mandatory in order for it to work. :S thanks
mvmacd said:
That's the problem, my main router only gets about 150KB/s when I stream it both connected to that. I need a router in my room, and my phone has a tether mode that acts as a router [192.168.43.1, gives DHCP IPs, etc]. The only thing, the program I used ["FTP server"] doesn't recognize I have a 192.168 IP, because it sees the regular wifi is off [and tethering is on, which I solely use as a router, not internet].
I will look into the other file manager mentioned, it sounds like it might be able to do what I'm looking for. thanks
Yeah I did try this. It fails, the log says it failed to set SSID, and a couple other things that are mandatory in order for it to work. :S thanks
Click to expand...
Click to collapse
If all you want to do is stream movies and music, try searching Play store for a DLNA Media Server. A quick search on Google turned up many. You should be able to forget about what wireless router, IP, etc, - your phone/tablet should show up to the network as a DLNA Media Server.
The other solution with ES File Explorer will indeed work as a file access component. I use it at home to access movies on my home network.

Sprint blocking inbound ports? Want to use VNC Server over 3G/4G

IMHO a data connection I'm paying for is a data connection. I'm peeved at the thought that Sprint is not allowing outside world inbound port connections to my device (S4). I have a technically challenged mother-in-law and it'd be great if I could VNC into her device to help her.
Droid VNC Server supposedly allows this over 3G/4G and even shows my external IP address, but all connections fail.
VMLite Server ( http://goo.gl/Q14Hq ) does work, but ONLY via local WiFi.
Anyone have experience with getting this to work over 3G/4G data connection or a way around this?
Lol dude, do you think your "ip adress" is unique on cellphone? Of course not...
You are paying to have DATA in your cellphone, not a internet service. Use wifi..
armyturtle said:
IMHO a data connection I'm paying for is a data connection. I'm peeved at the thought that Sprint is not allowing outside world inbound port connections to my device (S4). I have a technically challenged mother-in-law and it'd be great if I could VNC into her device to help her.
Droid VNC Server supposedly allows this over 3G/4G and even shows my external IP address, but all connections fail.
VMLite Server ( http://goo.gl/Q14Hq ) does work, but ONLY via local WiFi.
Anyone have experience with getting this to work over 3G/4G data connection or a way around this?
Click to expand...
Click to collapse
You're doing better then I am if you have it working at all. I'm on rooted MF9 and haven't found a working server yet. Only tried the free ones so far though. May have to give in and buy VMLite I reckon.
Have you thought about using a MDM to access her device. At my job we use SOTI Mobile Device Management (recommended by Samsung), with this software I am able to remote access and control any android, ios and Windows xp-Windows 8 on any network. I have tried 3G, LTE and Wifi. Our school currently has 670 Galaxy Note 10.1 and I can control each and every one. I can remote in to the device run programs, watch videos and push out Apps silently without having to have the student login into google services. Most companies will give you at least a 2 week trial to see if you like it and that is when you can remote in to their device.
pmcnano said:
Lol dude, do you think your "ip adress" is unique on cellphone? Of course not...
You are paying to have DATA in your cellphone, not a internet service. Use wifi..
Click to expand...
Click to collapse
"Lol dude", my old Epic 4G had a unique IP, as does my partner's current Epic Touch. (So did my Palm Pre.) But the Epics are/were Wimax, so it must be that Sprint got stingy when they moved to LTE.
Sucks for me. I know there are dynamic DNS updaters... anyone know of a persistent reverse SSH tunnel app?
armyturtle said:
IMHO a data connection I'm paying for is a data connection. I'm peeved at the thought that Sprint is not allowing outside world inbound port connections to my device (S4). I have a technically challenged mother-in-law and it'd be great if I could VNC into her device to help her.
Droid VNC Server supposedly allows this over 3G/4G and even shows my external IP address, but all connections fail.
VMLite Server ( http://goo.gl/Q14Hq ) does work, but ONLY via local WiFi.
Anyone have experience with getting this to work over 3G/4G data connection or a way around this?
Click to expand...
Click to collapse
Have you thought about TeamViewer? I use that from my mobile to log into my parents computer to help them.
Setup a VPN connection and use that to connect to what you want?
Sent via mobile

[Q] Virtual network on android?

Hi. i am working on a project with arduino and android wifi. i wanna connect my arduino to my smartphone, using my smartphone as a router with a wifi hotspot, but i don't wanna share my data connection. how do i do this? i just wanna test something regarding wifi range, so all i need is my arduino to connect to the smartphone as if the smartphone was a router. is this possible?
TL;DR
Can i use my smartphone as a router, allowing me to connect my arduino to it?
My question is why would you want to specifically not share data? Simplest answer is to put your phone on Airplaine Mode... AFAIK
I found an article that doesn't quite match your question but may give you some insight: http://stackoverflow.com/questions/...by-using-the-shell-on-a-rooted-android-device
Personally I think you would have to use some shell commands and some iptables modifications to achieve what you want.. I use DroidWall to modify iptables and block apps from connecting to the internet. Possibly you could block "Tethering" from the Internet using this app.
Hope all goes well,
Sent from my HTCONE using xda app-developers app

[Q] WiFi hotspot traffic not going through VPN.

So I'm trying to hide some network traffic from my provider Three UK. As my new contract only has 2gb hotspot and I really miss the old unlimited system they had.
Now I'm only trying to tether an android tablet to the phone nothing else, so I'm not sure how they're detecting that it's tethered bandwidth.
Figured I'd try using a VPN to hide the data but now I'm confused. My phone isn't actually sending the hotspot traffic over the VPN.
I tested local traffic and the values show that is going through the VPN, but anything via the hotspot is not. Any idea why? See speed at the top of this bad image, then VPN speed below.
i.imgur kbxyPJR.png
Looking into this further, my tablet get's a seperate IP than my phone, both provided by Three UK.
The vpn might not help much depending on you setup. Usuall there is a packet counter for tethering, among other things. Try providing output from these commands via adb shell or terminal emulator, probably need to be ran as root.
iptables -L -n -x -v
ip route show
ip rule show
Usually iptables rules get reset on a reboot, I usually run iptables -F, which flushes all rules a -Z should reset counters. But starting with the output of those three should help to figure out whats going on exactly.
Sent from my SM-G900P using XDA Free mobile app
The major issue being I don't want to root the device that's being the hotspot.
I can tether invisibly via bluetooth and some simple apps but these are far from perfect and cause errors in things such as plex etc.
The wifi hotspot is interesting though. It seems to actually work as a little server, gives out a new connection to the devices not just sharing it's own. To get 2 different external IP addresses, very interesting.
Pantho86 said:
The major issue being I don't want to root the device that's being the hotspot.
I can tether invisibly via bluetooth and some simple apps but these are far from perfect and cause errors in things such as plex etc.
The wifi hotspot is interesting though. It seems to actually work as a little server, gives out a new connection to the devices not just sharing it's own. To get 2 different external IP addresses, very interesting.
Click to expand...
Click to collapse
I have never heard of it giving out external IP addresses, maybe its something specific to you carrier. If thats the case why not connect it via bluetooth to a linux pc, make the pc the access point, then you can route and rewrite packets easily.
Sent from my SM-G900P using XDA Free mobile app
miked63017 said:
I have never heard of it giving out external IP addresses, maybe its something specific to you carrier. If thats the case why not connect it via bluetooth to a linux pc, make the pc the access point, then you can route and rewrite packets easily.
Sent from my SM-G900P using XDA Free mobile app
Click to expand...
Click to collapse
Well, if we're adding a PC to the mix I could just USB tether then output wifi from there.
However, it's mainly while im at work watching TV at lunch on the tablet.
Pantho86 said:
Well, if we're adding a PC to the mix I could just USB tether then output wifi from there.
However, it's mainly while im at work watching TV at lunch on the tablet.
Click to expand...
Click to collapse
In that case I am pretty sure you will need root. They are probably seeing that you are tethering by either iptables packet counters, creative routing, or user agent strings. If you are tethering another android device for watching media then it is unlikely they are catching you by user agent strings, since both devices should have android user agents. If you are opposed to rooting the device maybe you could buy a cheap one, root it, and swap the sim card into it when you want to tether?
Sent from my SM-G900P using XDA Free mobile app
Pantho86 said:
So I'm trying to hide some network traffic from my provider Three UK. As my new contract only has 2gb hotspot and I really miss the old unlimited system they had.
Now I'm only trying to tether an android tablet to the phone nothing else, so I'm not sure how they're detecting that it's tethered bandwidth.
Figured I'd try using a VPN to hide the data but now I'm confused. My phone isn't actually sending the hotspot traffic over the VPN.
I tested local traffic and the values show that is going through the VPN, but anything via the hotspot is not. Any idea why? See speed at the top of this bad image, then VPN speed below.
i.imgur kbxyPJR.png
Click to expand...
Click to collapse
I posted a guide on how to do this, its the only method that's worked for me, but you need to be rooted
SmokeyTech1 said:
I posted a guide on how to do this, its the only method that's worked for me, but you need to be rooted
Click to expand...
Click to collapse
Well bugger, I really don't want to root my Z3 due to all the DRM software on it.
I can tether USB and Bluetooth without being detected, but WiFi hits this snag still sadly. I can USB tether to a laptop then wifi share from there but that's getting a bit long toothed to just tether my tablet.
The Bluetooth tethering works but flash apps and a few others don't really like it, plex etc.

Use android phone as a router and block certain dns/routing addresses (Google DNS)?

Hey guys I can't seem to find an answer to what I am trying to accomplish.
Firstly I have an android phone (Nexus 6 rooted) that I use with an app called VPN hotspot. This lets me connect all my devices to the rooted phone while using a vpn to bypass geo restrictions. This is great for the most part but alot of buffering happens (not always but still annoying)
I pay for my own DNS service (unlocator) and I use that to bypass geo restrictions via phone. Unfortunately you cannot do that with the Chromecast because Google hardcore's the DNS into the firmware. That means when I try to use a UK app while abroad the Chromecast checks it's location and the casting wont work. Blocking routing addresses (8.8.8.8 & 8.8.4.4) allows me to achieve what I want. Unfortunately I can't find an app or anything that would allow me to do that on my rooted phone.
I used to have a router (was stolen) that could block Google's DNS adding static routing addresses to it. I wanted to know can an app do that via phone before I go out and purchase a new router.
My ideal situation would be to use my rooted phone as a little wireless router, have an app block those addresses/DNS, run VPN hotspot app from here, connect my Chromecast and daily driver phone to the rooted phone and be able to cast like I did with the router. If anyone has any ideas or apps that work for this type of setup can you please let me know. I know I can go out and buy a new router but I see the potential in using my old phone as a router and thought maybe it is possible.
Thank you guys.
Got help via Reddit. It can be done.

Categories

Resources