I was wondering how to monitor network traffic (like wireshark) and output the data into a csv file on the SD card. Has anyone seen anything like this? I don't want to start developing something thats already around.
I found this video showing it being done on a beagle board: http://www.youtube.com/watch?v=ZFH55WbhCXs
I also came across this guy who posed a similar question of google groups: http://groups.google.com/group/android-internals/browse_thread/thread/160159e24510fb4f
This might interrest you:
http://pdk.android.com/online-pdk/guide/tcpdump.html
packetlss said:
This might interrest you:
http://pdk.android.com/online-pdk/guide/tcpdump.html
Click to expand...
Click to collapse
cyanogenmod already has tcpdump. I've used it well. you can use 'ip address' to see your interfaces to use with the -i option.
Just ran into this while searching, Did you end up developing something?
have a look for shark in the market, its a packet sniffer and it has an optional extra application to read the dumps
anzoshi said:
have a look for shark in the market, its a packet sniffer and it has an optional extra application to read the dumps
Click to expand...
Click to collapse
Just got Shark for root and Shark reader, it does the work for me, thank you
Did anyone find sniffer like ettercap?
tcpdump log files can be opened in wireshark.
Sorry to bump an old thread, is there any packet capture app which grabs data network packets? Not wi-fi or bluetooth packets, but 2g/3g packets.
Thanks!!
askpcguy said:
Sorry to bump an old thread, is there any packet capture app which grabs data network packets? Not wi-fi or bluetooth packets, but 2g/3g packets.
Thanks!!
Click to expand...
Click to collapse
and to bump it again (sorry mods), shark provides 3g packet capture
ryant22 said:
and to bump it again (sorry mods), shark provides 3g packet capture
Click to expand...
Click to collapse
I'm not able to find any information regarding shark and 3g capture.
I only found this http://forum.xda-developers.com/archive/index.php/t-675206.html
It says on the page you have linked to "android packet sniffing app. It dumps all (wifi and/or 3g) traffic into...."
Sent from my U20i using XDA App
Honestly I forgot why I was asking in the first place! Oh what a day job can do to free time.
Sent from the miui matrix SGH-i897
How to use tcpdump to hack wifi?
dhkr123 said:
tcpdump log files can be opened in wireshark.
Click to expand...
Click to collapse
How to use these tcpdump to hack a wifi. Plz give me a link?
Thanks in advance.
Is there way to know for each line in the log (each packet in Shark's log) which android application is responsibe for it? which application sent/recived this packet...?
Pls delete this post
SniffDroid
I know, i'm answering very late, but i developped a widget called SniffDroid available on GooglePlay (SniffDroid)
Please test it and let me know if you like !!
SeriousDroid
Related
Does anyone know or use software that can scan and located any wifi signal and do a auto log on to any available open network?
Google for it!
It seems something like Hitchhicker will do what are you looking for...
skylab1 said:
Does anyone know or use software that can scan and located any wifi signal and do a auto log on to any available open network?
Click to expand...
Click to collapse
WiFiFoFum, google a bit.
Cheers
Hi, im in uni and one of my module requires me to make an android app that will be usefull for the university i.e GPS location for each calssrooms if someone gets lost. please will you help me in suggesting some ideas on what app to make.
Thanks Guys!!!
10076757 said:
Hi, im in uni and one of my module requires me to make an android app that will be usefull for the university i.e GPS location for each calssrooms if someone gets lost. please will you help me in suggesting some ideas on what app to make.
Thanks Guys!!!
Click to expand...
Click to collapse
How to record courses... via a bluetooth mic on the teacher's desktop.
And then transform the recording in text. With the possibility to turn on/off the mic when he's talking about his wife and how he banged her the night before...
an app which records and is a note taker at the same time, with you being allowed to tag certain areas of the recording (lecture) with appended notes and stuff.
Btw, if you do make it, pm me the link !
ozmulti said:
an app which records and is a note taker at the same time, with you being allowed to tag certain areas of the recording (lecture) with appended notes and stuff.
Btw, if you do make it, pm me the link !
Click to expand...
Click to collapse
Microsoft word 2008 does it...(the MAC version).
What about something that automatically switches your phone to silent mode when you're in a lecture? You could base that off your calendar to know when your lectures are. (Note: I think this kind of app has been done before, but it should be challenging enough to be an interesting assignment.)
Steven__ said:
What about something that automatically switches your phone to silent mode when you're in a lecture? You could base that off your calendar to know when your lectures are. (Note: I think this kind of app has been done before, but it should be challenging enough to be an interesting assignment.)
Click to expand...
Click to collapse
I believe Tasker does this
Sent from my GT-I5700 using Tapatalk
The add-on will allow a user to set the X-Forwarded-For header using Firefox Mobile.
Download Here or Here
I got tired of looking for a way to do this, so I did it my self and thought I would share.
Tested with Firefox Mobile 16.0.1.
Minimum version: 15.0
Maximum version: 16.*
With this add on for firefox, a mobile user can access content from a website that restricts users to a certain region.
For instance, my mobile phone connects to gateways in Oklahoma or Texas, it switches between the two, to connect to the internet. But, I live in Arkansas. So when using watchESPN website to stream football games, if the game is blacked out in the the state of my gateway, then watchESPN will block me from watching the game, even if it isn't blocked in Arkansas.
However, if you set the X-Forwarded-For header to an IP from a state that isn't blacked-out then watchESPN works. To find an IP just google "(state) ip address" and some example IPs or IP ranges should appear.
This is based on code by Jakob Landbo, his X-Forwarded-For add-on for Firefox Desktop, which is based on this MDN article. To recompile it for Firefox Mobile, I had to change the entire way the preferences (IP setting) worked, import component utility services explicitly, and build it against the latest Add-On SDK with the "--force-mobile" and "--mobile-app firefox" commands. Rewriting the preferences code to work with Firefox Mobile was the brunt of what I did.
How can we install it ?
nice +1
Good add on but how do we install it or use it???
karmakula said:
Good add on but how do we install it or use it???
Click to expand...
Click to collapse
+1
Can this be used to watch hulu or something from Canada?
EDIT: YES IT CAN!!! Thanks Dev!
hedphones said:
Can this be used to watch hulu or something from Canada?
EDIT: YES IT CAN!!! Thanks Dev!
Click to expand...
Click to collapse
Errr, no. It can be used to browse the site, but doesn't seem to work with streaming. I tried a few IP Addresses from Dallas and Houston, all of which gave me a geographical error when I tried to stream on Hulu.
Can this be used to watch/listen to BBC radio/TV shows and various other world streaming services? I've been wanting to get BBC Radio 1 and 1Xtra streaming to my phone for a while now as well as use some other UK based Television shows that don't allow US customers to stream.
To install it just visit the download link from Firefox mobile and Firefox will install it. Then, go to the add on menu to change the IP that it sends.
This just adds an X-Forwarded-For header to all requests, so any page that looks for that header to determine where you are will be fooled. I know watchESPN works this way. The others, hulu, bbc, etc., I don't know. But, many streaming sites accept the header as valid because most public proxies that people use to try to avoid the geographical restrictions add the header, and so, streaming sites use it as an proxy by-pass counter-measure. This add-on allows you to exploit that counter-measure.
Hello,
Does it work like a VPN ? like if i'm in China i can go on blocked website ?
hedphones said:
Can this be used to watch hulu or something from Canada?
EDIT: YES IT CAN!!! Thanks Dev!
Katsuro said:
Errr, no. It can be used to browse the site, but doesn't seem to work with streaming. I tried a few IP Addresses from Dallas and Houston, all of which gave me a geographical error when I tried to stream on Hulu.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
It could be that this worked for hedphones and not for katsuro becuase katsuro's carrier strips the x-forwarded-header from all mobile request. Also, it could be that you tried it over WIFI, instead of mobile data, because I know my WIFI router strips the x-forwared-header from the request. You can check to see if the x-forwared-for header is being forwared by visiting whatismyip.com after installing and enabling it.
digitalH said:
Hello,
Deos it work only for US ? Does it work like a vpn ? like if im in china i can go on youtube ?
Click to expand...
Click to collapse
No this will not help you avoid the great firewall of china. It can change where the request looks like it came from, not where it is going. And, firewalls, at work or in china, block traffic based on where it is going.
Katsuro said:
Errr, no. It can be used to browse the site, but doesn't seem to work with streaming. I tried a few IP Addresses from Dallas and Houston, all of which gave me a geographical error when I tried to stream on Hulu.
Click to expand...
Click to collapse
Ya, You're right.... Can only browse. However, I can now watch streaming media from PBS now so still happy
BTW, this also works with Firefox on my Macbook Pro!
michaelmotes said:
No this will not help you avoid the great firewall of china. It can change where the request looks like it came from, not where it is going. And, firewalls, at work or in china, block traffic based on where it is going.
Click to expand...
Click to collapse
Ok thank you for your answer and good luck with your project
Thanks for your development!
Hey All,
I had to update this thread a little it was pretty terrible on wording and full details. (Sorry About That)
The current hotspot hack still works on this new update too which is now CRL2.
You still need to add dun but it will look like this example below....
Ex: default,mms,dun,xcap,supl << Credits to whoever found this out first I just applied it to here and it works I’m currently using it now for this post :fingers-crossed::good:
*In order to edit your APN you will have to download Quick Shortcut App from the Play store*
Another thing if you didn’t know Good Lock is out and working perfectly too with new clock options and custom pulldown options that you can set to your liking.
*I added screenshots to help set what I set or how my good lock looks.*
I have a T-Mobile S8+ on Sprint network, and OTA keeps failing.
Can I just ODIN T-Mobile S8+ with Sprint's RIB firmware when it comes out?
Will I lose data?
lentm said:
I have a T-Mobile S8+ on Sprint network, and OTA keeps failing.
Can I just ODIN T-Mobile S8+ with Sprint's RIB firmware when it comes out?
Will I lose data?
Click to expand...
Click to collapse
that im am not sure of...id reommend readin around before you upgrade
alot of things has changed in the ui...im sure some code have changed too
Tha_Dynasty2049 said:
that im am not sure of...id reommend readin around before you upgrade
alot of things has changed in the ui...im sure some code have changed too
Click to expand...
Click to collapse
Thanks, I still can't find the answer in the other threads though.
What does xcap and supl do for the apn settings?
zune70 said:
What does xcap and supl do for the apn settings?
Click to expand...
Click to collapse
they was added by sprint in the newest update
it was not like this before the update
XCAP is a protocol which enables a user configuring his service data (e.g., modifying a call forwarding number, changing his barring services) on the Multimedia Telephony Application Server (MTAS). The XCAP flow is typically carried over the default bearer of the Internet APN.
SUPL is a technology which utilizes existing standards where available and possible, to transfer assistance data and positioning data over a User Plane bearer, such as IP, to aid network and SUPL Enabled Terminal (SET) based positioning technologies in the calculation of a SET's position
lentm said:
Thanks, I still can't find the answer in the other threads though.
Click to expand...
Click to collapse
Id say leae it then...id like to have a perfect working phone over guessing for a new software you may not like
Tha_Dynasty2049 said:
The new October Patch is nice so far....they have disabled Calling Plus but gave u the real feature
which is under connections and then voice networks and you will see VoLTE
turn it on if you want to use internet and phone at the same time.
Besides that we got AR Emojis and now super slow motion.
My hotspot hack still works on this new update too.
You still need to add dun but it will look like this below....
Ex: default,mms,dun,xcap,supl << Credits to whoever found this out first I just applied it to here and it works im currently using it now for this post :fingers-crossed::good:
Another thing if you didnt know GoodLock is out and working perfectly too with new clock options and custom pulldown options
*I added screenshots to help set what i set or how my good lock looks.*
Click to expand...
Click to collapse
How do we get the hotspot?
EDIT: NVM, got it!
JoeFCaputo113 said:
How do we get the hotspot?
EDIT: NVM, got it!
Click to expand...
Click to collapse
Great...
I did forget to mention i got to my apn settings by using Quick Short Cut Maker App
Tha_Dynasty2049 said:
Great...
I did forget to mention i got to my apn settings by using Quick Short Cut Maker App
Click to expand...
Click to collapse
Have you done the new update yet? Did Hotspot still work?
13druber said:
Have you done the new update yet? Did Hotspot still work?
Click to expand...
Click to collapse
Yes currently using it on CRK1 now to reply
Is there a way to convert CRL2 to CRL 1?
This is still working on CRL2. I just redid mine last night. Are you having a problem with it?
Hi everyone, I am trying to use my rooted Nook Simple Touch for the first time since early 2020, and when using the Browser app, I keep getting this warning message
Security Warning
There are problems with the security certificate for this site.
The name of the site does not match the name of the certificate.
Click to expand...
Click to collapse
If I use Opera Mini, this problem doesn't happen. But another app which used to work for me back in early 2020 is now having Network Errors, and I found a comment somewhere in the app's github repo that it downloads data using the main browser. So I suspect that the security warning and and the app's network errors are related?
Does anyone know why this warning is happening or how to fix it? Has something changed with regards to how the NST connects to the internet via the browser since early 2020 which could be causing the issue?
sd156 said:
Hi everyone, I am trying to use my rooted Nook Simple Touch for the first time since early 2020, and when using the Browser app, I keep getting this warning message
If I use Opera Mini, this problem doesn't happen. But another app which used to work for me back in early 2020 is now having Network Errors, and I found a comment somewhere in the app's github repo that it downloads data using the main browser. So I suspect that the security warning and and the app's network errors are related?
Does anyone know why this warning is happening or how to fix it? Has something changed with regards to how the NST connects to the internet via the browser since early 2020 which could be causing the issue?
Click to expand...
Click to collapse
The NST still has a lot of life left in it, but not perhaps as a vehicle for internet browsing. You don't identify the "browser", but about the only two options for the NST at this date that I know of are Opera Mobile (or "Classic"--very similar) and Opera Mini. Of the two, the more practical and satisfying is Opera Mini. This is because the security checks are done by Opera's up-to-date servers before the site content is reformatted and sent off to the browser.
It's not perfect and some sites just won't display or won't display properly, but it's "pretty good" for infrequent and casual browsing.
Opera Mobile has settings for TLS 1.2 but their effect is spotty at best. Security requirements at web sites are a moving target and what worked last month may not work this month. And its rendering of HTML on many sites leaves a great deal to be desired. To be fair, some of the newer "tricks" just won't work with Android 2.1, so it's not all the browsers fault.
An app that uses the browser to download something? Not sure exactly what that means, but if it's using the Android Download Manager then you are probably running into the security issue either because of no TLS 1.2 (B&N only dealt with this issue for their own connection to the device) OR because a certificate in the cacerts.bks file has died since the last time you tried it successfully.
If it's the TLS thing, there's no hope. Like I said, websites and servers tighten rules all the time and there is no way to address that on the NST. If it's an expired certificate, it may be possible to track down which one has died and replace it.
For that, a logcat of a download/login/whatever attempt might be helpful (or not). Or maybe the error message mentions the certificate? If you could reference the github and/or app in question, that might help also.
Edit: See the "Edit" at the bottom this post... I looked into this more myself and found some answers
_____________________________________________________________________________
Hi @nmyshkin, thanks for your detailed reply.
You don't identify the "browser"
Click to expand...
Click to collapse
The "browser" that I'm referring to is literally the app called Browser which I think came pre-installed on the NST. (Its icon is a circle showing North and South America... let me know if you're still not sure what I'm referring to)
An app that uses the browser to download something? Not sure exactly what that means... If you could reference the github and/or app in question, that might help also.
Click to expand...
Click to collapse
The app I'm using is called Ankidroid. Here's a link to the github repo/comment which mentions using the browser to download. I'm using v2.4.4 (last stable release to support android 2.1):
- https://github.com/ankidroid/Anki-Android/issues/3075#issuecomment-125547244
- https://github.com/ankidroid/Anki-Android/tree/v2.4.4
A logcat of a download/login/whatever attempt might be helpful (or not)
Click to expand...
Click to collapse
Here is the logcat (but I removed all lines which don't contain the app name (anki) in them to remove clutter, so if it looks like something's missing let me know and I can give you the full log)
- https://pastebin.com/Du5rcT04
It looks like the following exceptions are being thrown:
- javax.net.ssl.SSLException: Not trusted server certificate
- java.security.cert.CertificateException: java.security.cert.CertPathValidatorException: TrustAnchor for CertPath not found
Does that mean anything to you?
if it's using the Android Download Manager...
Click to expand...
Click to collapse
I tried searching through the code for DownloadManager, and I was able to find one occurrence, but it's in some xml file. Does this seem like it could be relevant?
- https://github.com/ankidroid/Anki-A...iDroid/src/main/res/values/04-network.xml#L71
... because a certificate in the cacerts.bks file has died since the last time you tried it successfully
Click to expand...
Click to collapse
How can I check if a certificate in cacerts.bks has died and fix it if that's the case?
If it's the TLS thing, there's no hope
Click to expand...
Click to collapse
Hopefully not this then :O
_____________________________________________________________________________
Edit:
I looked into that exception a bit more, and
It looks like the following exceptions are being thrown:
- javax.net.ssl.SSLException: Not trusted server certificate
- java.security.cert.CertificateException: java.security.cert.CertPathValidatorException: TrustAnchor for CertPath not found
Click to expand...
Click to collapse
I found an issue in the github repo which references this same exception
- https://github.com/ankidroid/Anki-Android/issues/6317
A comment says that this is the cause
- https://support.sectigo.com/article...ddTrust-External-CA-Root-Expiring-May-30-2020
And another comment says that the connection won't work on older devices which don't support TLS1.2
- https://github.com/ankidroid/Anki-Android/issues/6317#issuecomment-650341494
There's a workaround mentioned in the comment (installing a sync server) so I'll try that then. Thanks for responding in this thread and helping me identify this issue
sd156 said:
The "browser" that I'm referring to is literally the app called Browser which I think came pre-installed on the NST. (Its icon is a circle showing North and South America... let me know if you're still not sure what I'm referring to)
Click to expand...
Click to collapse
I'm surprised that it worked back in 2020! That old browser is past its expiration date--and then some. I don't even have it on my devices any more.
sd156 said:
The app I'm using is called Ankidroid. Here's a link to the github repo/comment which mentions using the browser to download. I'm using v2.4.4 (last stable release to support android 2.1):
- https://github.com/ankidroid/Anki-Android/issues/3075#issuecomment-125547244
- https://github.com/ankidroid/Anki-Android/tree/v2.4.4
Click to expand...
Click to collapse
Ah. I helped someone with Ankidroid in the past although I can't find the post now.
sd156 said:
Here is the logcat (but I removed all lines which don't contain the app name (anki) in them to remove clutter, so if it looks like something's missing let me know and I can give you the full log)
- https://pastebin.com/Du5rcT04
It looks like the following exceptions are being thrown:
- javax.net.ssl.SSLException: Not trusted server certificate
- java.security.cert.CertificateException: java.security.cert.CertPathValidatorException: TrustAnchor for CertPath not found
Does that mean anything to you?
Click to expand...
Click to collapse
Yes and no. It's clearly unhappy about the SSL but the certificate that appears to be mentioned is not the one used at anikiweb.net.
sd156 said:
How can I check if a certificate in cacerts.bks has died and fix it if that's the case?
Click to expand...
Click to collapse
I went to ankiweb.net on my PC and looked at the certificates they use. One seems to be USERTrust RSA. This is in the most up-to-date cacerts.bks for the device. Did you ever update your cacerts.bks? There is an updated file at the end of the first post in the referenced thread. You don't need to look at all the other stuff (unless you want to). In any caase, this seems to make no difference since mine is updated.
There is a second certificate from Sectigo but I can't seem to extract that from Firefox the way I do others. That's the certificate the old Browser complains about and that certificate is NOT in the cacerts.bks file.
sd156 said:
There's a workaround mentioned in the comment (installing a sync server) so I'll try that then. Thanks for responding in this thread and helping me identify this issue
Click to expand...
Click to collapse
Yeah, I took a brief look at that. Looks a bit intimidating, but perhaps not if you're motivated to get it working.
I installed 2.4.4 just to see what we were talking about. Since Opera Mini is my browser, that's what opened. It looks promising, but like many sites with non-static content, it does not display completely. You go to a topic and all you get is a search bar, not a listing of what exists (like you see on the PC). Opera Mobile simply fails to establish a connection. Not surprising.
Finally I replaced the old Browser app in /system/app and tried that out . You can get past the certificate errors by just saying to "continue" but the eventual display is just like in Opera Mini. Only a search bar appears if you select a category like "Chemistry", no listing of existing shared decks.