Omega Owners Forum

Chat Area => General Discussion Area => Topic started by: tunnie on 19 October 2012, 11:41:48

Title: Any Android Experts?
Post by: tunnie on 19 October 2012, 11:41:48
I'm looking to capture HTTP traffic, on a gingerbread device (mainly the response) while on 3G/Mobile data, I know I can easily do this on WiFi using a custom proxy and some capture software, but the issue I'm attempting to capture only happens when on mobile data.

I've seen blogs relating to TCP Dump on a rooted device, but looks a bit too hardcore linux for me. I'm just after an application which would capture the HTTP response & request from an application. So far ones I've found are for WiFi/Bluetooth only  :(
Title: Re: Any Android Experts?
Post by: henryd on 19 October 2012, 12:10:43
I'm an Android user but totally clueless with tech,I reckon Martian is your man :y
Title: Re: Any Android Experts?
Post by: cem_devecioglu on 19 October 2012, 12:21:32
this seems useful
http://www.kandroid.org/online-pdk/guide/tcpdump.html (http://www.kandroid.org/online-pdk/guide/tcpdump.html)
Title: Re: Any Android Experts?
Post by: Kevin Wood on 19 October 2012, 12:59:48
I can't see how you'd easily do it other than using TCPDump+Libpcap to log the traffic at the network interface. Collect a log, play it back into Wireshark and you should be able to see what's going on.
Title: Re: Any Android Experts?
Post by: tunnie on 19 October 2012, 13:15:36
Well done it, used something called Shark For Root. You just run it in the background with a few parameters set & it captured the raw HTTP logs. It dumped them in the root of the SD & as you say Kevin, Wireshark told me what I needed to see.

Worked a treat, as I captured what I needed to on multiple operators & WiFi.

Quite pleased as the "dedicated" support team for this product were unable to resolve it, so came to my team. Yet again, we got the data required.  :D
Title: Re: Any Android Experts?
Post by: albitz on 19 October 2012, 13:25:56
Ive read this thread three times,and not one single word of it made any sense to me whatsoever. :-[ ;D ;D
Title: Re: Any Android Experts?
Post by: taitinson on 19 October 2012, 13:28:04
Ive read this thread three times,and not one single word of it made any sense to me whatsoever. :-[ ;D ;D
+1 :y
Title: Re: Any Android Experts?
Post by: henryd on 19 October 2012, 13:39:29
Ive read this thread three times,and not one single word of it made any sense to me whatsoever. :-[ ;D ;D

Thank Christ for that,thought it was just me :-[
Title: Re: Any Android Experts?
Post by: omegod on 19 October 2012, 14:43:21
Ive read this thread three times,and not one single word of it made any sense to me whatsoever. :-[ ;D ;D

Thank Christ for that,thought it was just me :-[

+3 and gave me a headache
Title: Re: Any Android Experts?
Post by: Martian on 19 October 2012, 17:14:22
You could have had your answer a lot quicker if you had simply called me Mark  ;D
Title: Re: Any Android Experts?
Post by: henryd on 19 October 2012, 17:24:45
You could have had your answer a lot quicker if you had simply called me Mark  ;D

I did say that :D :y :y
Title: Re: Any Android Experts?
Post by: tunnie on 19 October 2012, 17:25:23
You could have had your answer a lot quicker if you had simply called me Mark  ;D

Well I did have to go to a meeting half way through what I was doing, get back 45 mins later. "Eh where was I?"  ;D



Title: Re: Any Android Experts?
Post by: Martian on 19 October 2012, 17:36:18
You could have had your answer a lot quicker if you had simply called me Mark  ;D

Well I did have to go to a meeting half way through what I was doing, get back 45 mins later. "Eh where was I?"  ;D
I do have one app here I think you'll like.

It basically kills all Wi-Fi access wherever you are, and the Wi-Fi only gets reinstated when YOU decide to allow it.
Let me know if you want a copy to play with  ;)
Title: Re: Any Android Experts?
Post by: tunnie on 19 October 2012, 17:49:48
You could have had your answer a lot quicker if you had simply called me Mark  ;D

Well I did have to go to a meeting half way through what I was doing, get back 45 mins later. "Eh where was I?"  ;D
I do have one app here I think you'll like.

It basically kills all Wi-Fi access wherever you are, and the Wi-Fi only gets reinstated when YOU decide to allow it.
Let me know if you want a copy to play with  ;)

Sounds interesting, can it be customised to allow individual apps access?

Could cut down some of the noise from other apps when de-bugging
Title: Re: Any Android Experts?
Post by: Martian on 19 October 2012, 18:04:05
Sounds interesting, can it be customised to allow individual apps access?

Could cut down some of the noise from other apps when de-bugging
Unfortunately not, it simply denies network access to either individual devices or the whole building (your choice).
Not so much a useful tool, but fun to watch when the network techies try to work out where the packets are being lost (already done The Cloud in our local Weatherspoons)  ;D
Title: Re: Any Android Experts?
Post by: tunnie on 19 October 2012, 18:20:27
Sounds interesting, can it be customised to allow individual apps access?

Could cut down some of the noise from other apps when de-bugging
Unfortunately not, it simply denies network access to either individual devices or the whole building (your choice).
Not so much a useful tool, but fun to watch when the network techies try to work out where the packets are being lost (already done The Cloud in our local Weatherspoons)  ;D

sounds like a great app to have some fun with!
Title: Re: Any Android Experts?
Post by: Omegatoy on 19 October 2012, 19:45:51
well it used to be my handle in the CB days, ;D but the cb only had a few channels, but you could have upper and lower and of course dx etc, a volume control, a squelch control, and you had to swr the ariel,apart from that none of this post made any sense to me either!! ::)
Title: Re: Any Android Experts?
Post by: Rods2 on 19 October 2012, 20:18:36
There you go, it should be as clear as mud after reading this.

http://en.wikipedia.org/wiki/Transmission_Control_Protocol (http://en.wikipedia.org/wiki/Transmission_Control_Protocol)
Title: Re: Any Android Experts?
Post by: Omegatoy on 19 October 2012, 21:09:45
There you go, it should be as clear as mud after reading this.

http://en.wikipedia.org/wiki/Transmission_Control_Protocol (http://en.wikipedia.org/wiki/Transmission_Control_Protocol)

Hmm was playing in the mud today on the quad never saw any of those things in it though!! :y
Title: Re: Any Android Experts?
Post by: Martian on 19 October 2012, 21:10:48
There you go, it should be as clear as mud after reading this.

http://en.wikipedia.org/wiki/Transmission_Control_Protocol (http://en.wikipedia.org/wiki/Transmission_Control_Protocol)
Here's the pertinent bit http://en.wikipedia.org/wiki/Transmission_Control_Protocol#Denial_of_service  ;)
Title: Re: Any Android Experts?
Post by: TheBoy on 20 October 2012, 14:20:55
And whats wrong with tcpdump? Its what real sysadmins use (when constrained to work with crappy Linux ;D).

Grab it to a file, then import into any analyser, including the freeware Wireshark (worth uninstalling Wirehsark when done, as its prone to various exploits).
Title: Re: Any Android Experts?
Post by: tunnie on 20 October 2012, 14:26:00
And whats wrong with tcpdump? Its what real sysadmins use (when constrained to work with crappy Linux ;D).

Grab it to a file, then import into any analyser, including the freeware Wireshark (worth uninstalling Wirehsark when done, as its prone to various exploits).

On a computer probably nothing, but trying to get it working on an Galaxy SII was fun. Shark For Root was just dead easy, install app (assuming rooted) press start, go do other stuff on phone, go back to app, press stop. Done, TCP log dumped in root of SD.
Title: Re: Any Android Experts?
Post by: TheBoy on 20 October 2012, 15:05:09
And whats wrong with tcpdump? Its what real sysadmins use (when constrained to work with crappy Linux ;D).

Grab it to a file, then import into any analyser, including the freeware Wireshark (worth uninstalling Wirehsark when done, as its prone to various exploits).

On a computer probably nothing, but trying to get it working on an Galaxy SII was fun. Shark For Root was just dead easy, install app (assuming rooted) press start, go do other stuff on phone, go back to app, press stop. Done, TCP log dumped in root of SD.
No more difficult on a (rooted) phone than a server  :-\. Still, I know you wannabe techies need point and click...  ...anything to avoid having to understand the systems :P ;D
Title: Re: Any Android Experts?
Post by: tunnie on 20 October 2012, 15:21:06
And whats wrong with tcpdump? Its what real sysadmins use (when constrained to work with crappy Linux ;D).

Grab it to a file, then import into any analyser, including the freeware Wireshark (worth uninstalling Wirehsark when done, as its prone to various exploits).

On a computer probably nothing, but trying to get it working on an Galaxy SII was fun. Shark For Root was just dead easy, install app (assuming rooted) press start, go do other stuff on phone, go back to app, press stop. Done, TCP log dumped in root of SD.
No more difficult on a (rooted) phone than a server  :-\. Still, I know you wannabe techies need point and click...  ...anything to avoid having to understand the systems :P ;D

Of course, pressing buttons is easy.  ;D

Trouble is its over 3 years now since I really touched Linux  :(
Title: Re: Any Android Experts?
Post by: TheBoy on 20 October 2012, 16:54:42
Trouble is its over 3 years now since I really touched Linux  :(
Its trying (badly) to be a Unix clone. Its hasn't changed in a million years ;D
Title: Re: Any Android Experts?
Post by: tunnie on 20 October 2012, 16:59:13
Trouble is its over 3 years now since I really touched Linux  :(
Its trying (badly) to be a Unix clone. Its hasn't changed in a million years ;D

Actually in the last couple of hours, I've run my first command in ages, in fact its about the only one I use here:

/etc/init.d/tomcat stop

;D ;D ;D
Title: Re: Any Android Experts?
Post by: TheBoy on 20 October 2012, 17:36:03
We try not to give our ASG root access, a little knowledge is normally lethal to server health ;D