BlueSocket authentication - Android Software Development

Hello Everyone,
I am developing an application which will try to automatically authenticate a phone when connected to a wifi hotspot that is using a BlueSocket system. This is normally used in universities and colleges. I wonder is anyone out there in a BlueSocket campus? And if you are would you use this application?

I'd definitely find an app like this really useful.
I hate having to open my browser and *hope* that it'll redirect me to the bluesocket login page.
Good luck on the app

Great, In my college the blue socket also does that, Sometimes redirects, and sometimes not. I have figured out that if the first page you attempt to access is a secure https:// page, then it won't redirect the traffic. However if its a regular, http:// page, then there is redirection. But that however works when it wants to. Some computers or browsers don't like being redirected like that i believe.
I currently have the app being able to specify what the server url is and login details, but some servers redirect weirdly. I will hopefully upload a beta in a couple of days.
Thanks for your interest.

I have uploaded this app into the market, all feedback should go to the following thread.
http://forum.xda-developers.com/showthread.php?t=1033331
[MARKET LINK]
https://market.android.com/details?id=com.emdnet.bsa
Thanks

Related

Vibrant Wifi problem (Clean Access)

I have a stock Samsung Vibrant. It connects to my home wifi network just fine and is very fast.
At my school we have to register the mac address' of devices we have on their Clean Access servers. I have registered many devices that work fine.
I registered the mac address of my Vibrant, and it can connect to the wifi, but it will not load a web page. Does anyone have any idea of what is wrong.
I also registered my roommates Vibrant. His does not work either.
I work at the Schools Tech Support so I have access to register and edit my phone on their Clean Access servers.
Does anyone have any solutions?
are you using WPA/WPAv2 or WEP + RADIUS authentication? Does your vibrant obtain an IP address successfully? Can you ping the default router?
The wifi that works at my apartment is WPA2.
The wifi at school is an open network. I can fully connect to their wifi.
Status Connected
Speed 48Mbps
Signal Strength Good
Security Open
IP address (a real IP address)
Im going out on a limb here. I am going to say its the Clean access and your "open network". I assume on your schools computer you use your student ID and some password. Your phone would need the same thing if that is the case. I know at my school, iphones are the only phones that can access our clean access. If its not the case then i am sorry.
my school runs clean access and it works fine. but they have two networks a guest and a login. i use the guest cause i don't want to waste the time to login. but i can try it on monday. typically with linux (i.e. android) you have a web portal and have to agree to some antivirus bs by clicking a button and that's it (and login for the non guest network). one thing i have noticed, though, is that typically i have to turn wifi on, connect to the network, try to load a page, it doesn't work, then i turn wifi off then immediately back on and try to load a page and it takes me to the login/terms portal page.
GTASouthPark said:
The wifi that works at my apartment is WPA2.
The wifi at school is an open network. I can fully connect to their wifi.
Status Connected
Speed 48Mbps
Signal Strength Good
Security Open
IP address 140.209.21.68
Click to expand...
Click to collapse
You should remove the IP from post. Anyways, it seems like the handshake is good. Note down the address of redirected terms and conditions page you get when trying to go online from a laptop. Then enter the same address in vibrant's browser once you are connected through Wifi ( or set it as homepage) and see if that lets it through.
Probably an issue with Android's lack of native NTLM support. AFAIK this is still unresolved. Have you tried using Fennec rather than the stock browser? I've heard you can authenticate properly using it.
Siks said:
Probably an issue with Android's lack of native NTLM support. AFAIK this is still unresolved. Have you tried using Fennec rather than the stock browser? I've heard you can authenticate properly using it.
Click to expand...
Click to collapse
interesting. i use dolphin hd and it works for the clean access web authentication page.
Could be, if your school does not have a guest account login for devices, that you are getting on the segregated network because CA cannot verify the "cleanliness" of your device. When I setup CA it verified patch levels and such on the non-guest network, so unless CA comes out with a Android client/access list, it may not work.
watcher64 said:
Could be, if your school does not have a guest account login for devices, that you are getting on the segregated network because CA cannot verify the "cleanliness" of your device. When I setup CA it verified patch levels and such on the non-guest network, so unless CA comes out with a Android client/access list, it may not work.
Click to expand...
Click to collapse
except then it wouldn't allow osx or linux. clean access requires an app for windows to verify service pack and av and whatever, but for linux and osx it doesn't. it wouldn't be able to (at least for linux).
funeralthirst said:
except then it wouldn't allow osx or linux. clean access requires an app for windows to verify service pack and av and whatever, but for linux and osx it doesn't. it wouldn't be able to (at least for linux).
Click to expand...
Click to collapse
That is correct but it can ID the operating system and has exceptions for those flavors ...
Hey it's me again.
I don't think it's an android thing because I had my G1 on the servers.
Normally what happens if you aren't registered on Clean Access is, if you open a web browser, you will be automatically redirected to an authentication page where you put in your school ID and password. This would work fine and allow me to get on the wifi, but it never came up on the web browser, it just tries to load the page for awhile and goes to a 'Page cannot be displayed' page.
Also I have tried using different browsers, including Dolphin HD.
If I can just get to the authentication page even it will be fine, I could work with that.
Also the school does have a guest login, but you have to get to the authentication page, and I wouldnt want guest access since it limits time, bandwidth, and features.
That is exactly what I said my last reply...Try putting https infront of your authentication URL, and make sure the java-script etc. is on in your browser...Try clearing cache and hit refresh as well. Also, see what happens if you set that URL as homepage...
GTASouthPark said:
Hey it's me again.
I don't think it's an android thing because I had my G1 on the servers.
Normally what happens if you aren't registered on Clean Access is, if you open a web browser, you will be automatically redirected to an authentication page where you put in your school ID and password. This would work fine and allow me to get on the wifi, but it never came up on the web browser, it just tries to load the page for awhile and goes to a 'Page cannot be displayed' page.
Also I have tried using different browsers, including Dolphin HD.
If I can just get to the authentication page even it will be fine, I could work with that.
Also the school does have a guest login, but you have to get to the authentication page, and I wouldnt want guest access since it limits time, bandwidth, and features.
Click to expand...
Click to collapse
did you try turning on wifi, wait for it to connect, try to load a page (any page because it will redirect you), wait for it to time out, pull down the notification bar, turn wifi off, turn it back on and then reload the page? i know it sounds dumb, but this is the only way i've got it to work at my school and it works every time...
watcher64 said:
That is correct but it can ID the operating system and has exceptions for those flavors ...
Click to expand...
Click to collapse
to what flavors? i'm guessing android will show as linux since it's based off a linux kernel. more than likely it checks for windows, and if false goes to the default linux/osx page because to clean access those aren't threat os's.
VICosPhi said:
That is exactly what I said my last reply...Try putting https infront of your authentication URL, and make sure the java-script etc. is on in your browser...Try clearing cache and hit refresh as well. Also, see what happens if you set that URL as homepage...
Click to expand...
Click to collapse
they don't have the authentication URL on their homepage so I don't know what it is, it should automatically redirect me to it.
Also when I connect to wifi, try to load a page, let it time out, turn off wifi, turn it back on and connect again, and then refresh the page.. nothing happens it times out again.
Ok so I did find out the authentication page URL. Typed it into my phone. I had high hopes when a page saying "You are being redirected to the network authentication page. If you are not redirected automatically, then please click HERE".
Anyway it did redirect me, to a "Web page not available"... etc.
In the default browser it gave me the error... "Data connectivity problem. A secure connection could not be established". umm wtf?
Can you communicate with other protocols/ports? I used to be able to exploit a bug with our school's CCA servers where I could just connect unauthenticated and use SSH. (Maybe it was a feature?)
I can't use any other web protocols.
Bump. Okay. I've figured out how to do this . '
it's a t mobile vibrant either kernel or rom problem. My phone connected the very first time I tried to use it at an argosy site, then never ever ever again.
so. I used wifi manager to find out what the ip, gateway, subnet mask, and dns 1 and 2 were. I went to settings, wifi, options key to go to advanced options, from there selected static ip and entered all the info I gathered
bam! ! Connected every time.
Oh and btw, the reason I say its a tmobile vibrant rom or kernel problem is that on fusion, Eugene's and bionix final, I was able to connect right away, every time . And on my f friends att fascinate and verizon captivate, they never had to enter the static ip like I did. They connected right away every time . Yet everyone I know that had s vibrant kept having the same proble. m i did .
Tmobile. What a piece of ****. Anyway I figured nobody had this figured out so I'd jump in.
Hope this helps out some people. GL

Set default browser

Hi, when trying to connect to free wifi, one frequently has to enter info on a website. However, in many of those cases my NSTG redirects me automatically using the built-in browser rather than my Opera mobile. Sometimes that causes issues (unresponsive browser etc). How can I define what browser is being used when my nook redirects to a website for connecting to the Internet?
Thanks!
Sent from my NOOK using xda premium
You can always just delete Browser.apk.
That works fine for me.
I forget if it redirects automatically.
Still, just go to Google or something in your favorite browser and it will display the "Accept" screen.
Deleting browser.apk seems to make things worse. Again, when I am redirected to a login page (NST does this automatically when in Settings/wireless for some providers) it fails....because it does not find browser.apk anymore.
I tried to rename the opera mobile apk to browser.apk, but I could not find the opera mobile apk in the system/app folder....
Sent from my NOOK using xda premium
You wouldn't find Opera Mobile in /system/app, it's not a system app.
You'd find it in /data/app, because it's a regular user app.
Not that renaming anything would help, that's not how Android finds things.
I don't have a login access point here to check anything out,
although it seems to work fine when I visit locations with logins.
I looked into how this works.
The Nook tries to access http://amifree.barnesandnoble.com/bnhello.html
That URL should just echo back "You have successfully reached the internet!"
It uses the built-in WebKit functionality.
This seems a waste for a number of reasons, including that you might have your Nook connected to a WiFi but not the internet.
In any case, I still don't understand what happens to you when you click on an Access point to connect.
If you have to, you enter the password for the WPA or whatever.
Then you open your browser of choice, go to any site and if you are going to be directed, you'll be redirected then.
Reminder to self: Patch or get rid of the B&N web access.
Thanks Renate. So that is how it works:
Since there is no user accessible browser on non rooted NST devices, the device connects and immediately checks the website you list below (saying "testing..." while checking).
If the receiver requires a redirect (for instance to accept certain terms), the hidden browser will be
invoked. Unfortunately that fails if browser.apk is deleted or the browser cannot handle the content on that site and one cannot connect to the internet
Best would be to disable the check so that can be done manually on the browser of choice for rooted devices.
Sent from my Dell Venue using xda app-developers app
Yes, it would fail at displaying the redirect page.
Are you saying that at that point it actually disconnects the WiFi?
Does the little signal thingie on the status bar disappear?
What happens when you just go to your regular browser and go to any website?
On mine, at that point I get the redirect screen I would have gotten originally.
Yes, the signal bars disappear (and I am no longer connected)...
Sent from my Dell Venue using xda app-developers app
Well, in that case, I'd patch Settings.apk to not do the online check.
In any case, I'm still at a loss to understand, because WebKit is part of the core, not an application and the login page will always be displayed in Settings.
How can I patch Settings.apk?
>> login page will always be displayed in Settings
The page is being displayed, but in some cases the browser used (browser.apk) cannot handle the content of the redirected website and I cannot login (not sure if that answers your questions though....).

Nexus 7's Chrome will not redirect for Wifi Authentication

The wifi at my university either prompts devices for a log in or redirects the browser to a log in page to fully access the wifi. I cannot for the life of me, get my nexus 7 to fully connect. No prompts and chrome will not redirect. Any help would be appreciated!!
Typically on my laptop or other tablets in my University, whenever I connect to the Wi-Fi either a pop-up prompt appears where I can enter my log in info or I go on to my browser (also chrome) and enter a website liek facebook or yahoo and it will redirect to the University's Wifi page and I can log in from there.
My Nexus 7 doesn't have a pop-up prompt when I connect to the wifi nor does the Chrome redirect. Any tips?
That's weird. I connected to the harvard medical school network at where I work and when I tried going to a web page (espn), the redirect occurred and I could sign in. Don't know why it isn't working for you
bammarata89 said:
That's weird. I connected to the harvard medical school network at where I work and when I tried going to a web page (espn), the redirect occurred and I could sign in. Don't know why it isn't working for you
Click to expand...
Click to collapse
I have no idea why, I'm connected to Cornell Medical School wifi as well, and typically i'd have to type in my log in and my password when Chrome redirects me but it's not redirecting. It keeps saying This Webpage is Not Available because the DNS Look up failed."
I get an error on the bottom of Chrome stating: "Error 105 (net::ERR_NAME_NOT_RESOLVED): Unable to resole the server's DNS address."
Trying using Firefox to authenticate instead. Once you do Chrome will work fine (just not for the authentication part).
Quick idea:
At Eastern Washington University there's an open access AP and a secure AP. When you use open, you are redirected to a student sign on page.
When you use secure, there is no page redirect, as you login using some fancy WiFi security protocol with the same user/pass combo from open. (Tablet remembers network auth and auto-reconnects when in range with no redirects) Maybe just check to see if you have that available?
Also, try forgetting/disconnecting from your network so it doesn't reconnect; then manually reconnect to it. This would hopefully flush any DNS configuration your tablet may have erroneously stored.
Sent from my Nexus 7 using xda premium
xfinrodx said:
Quick idea:
At Eastern Washington University there's an open access AP and a secure AP. When you use open, you are redirected to a student sign on page.
When you use secure, there is no page redirect, as you login using some fancy WiFi security protocol with the same user/pass combo from open. (Tablet remembers network auth and auto-reconnects when in range with no redirects) Maybe just check to see if you have that available?
Also, try forgetting/disconnecting from your network so it doesn't reconnect; then manually reconnect to it. This would hopefully flush any DNS configuration your tablet may have erroneously stored.
Sent from my Nexus 7 using xda premium
Click to expand...
Click to collapse
Thanks everyone, for suggesting the use of other browsers such as Opera to help me redirect. However, I downloaded Opera and Dolphin browser (couldn't find Firefox for some reason) and both of them will not redirect me to the log in page. But my iPhone is able to connect. Any tips? Any help would be appreciated!! (Sorry this is my first Android device)
Can someone please solve this issue? Or at least give an explanation why the nexus 7 has issues with certain open networks?
If you're going to an encrypted (https) page, you won't redirect. Try going to www.google.com instead of your homepage (gmail can be set to https).
Its not encrypted. Just a standard login. I really have no clue what is going on. I tried setting a static IP and using google's DNS as well as open DNS which helped a bit (I occasionally get th elogin screen now, but it doesn't do anything for me).
Has anyone ever solved this issue?
Mine redirects just fine. I have to select the network in the WiFi settings, and then open the browser, though.
Sent from my Nexus 7 using xda premium
Sunburn74 said:
Its not encrypted. Just a standard login. I really have no clue what is going on. I tried setting a static IP and using google's DNS as well as open DNS which helped a bit (I occasionally get th elogin screen now, but it doesn't do anything for me).
Has anyone ever solved this issue?
Click to expand...
Click to collapse
Not sure from your answer if you understood me. If the page you're trying to get redirected FROM is HTTPS, it won't redirect. Navigate to google.com and see if you redirect (since that's never https).
That page is not https. It is standard HTTP.
Before I wouldn't even get that page. Now I reliably get that page (the authentication/acceptance of policy page) since I changed the DNS settings for open DNS (another site recommended using google's DNS or using open DNS). However after I hit accept, it doesn't do anything and just times out after 5 mins or so.
This should work
idk if I'm late in answering this but next time you log in from any device look for the router number and type that in the web browser on the device it isn't connecting on and that should redirect you
Is there any hope? Android is just impossible when it comes to wifi. Sometimes it brings up the login page. But if it doesn't bring up the login page, you will never get connected.
Here's a sample experience.
I'm at a coffee shop trying to connect my oneplus one, which has cyanogen12.0-yng1tas17l
Some things I tried: I opened wpa_supplicant.conf with a text editor and deleted this coffee shop's network. I tried to connect using the app "wifi browser login." I went to settings--modify network--advanced options--ip settings to find the gateway, ip address and dns of the coffee shop, and tried typing them into the browser. Nothing works.
This failure to load the login page is a problem that affects android in general, not just the oneplus one or cyanogen. I have problems with the nexus 7 sometimes too. I've been searching for a solution for years. The silence is deafening.

Bypassing web filters on android.

Hello all! I hope I'm posting this in the correct place. Anyway I'm here to ask if anyone knows how to bypass web filters on android? At my school McAfee filters any inappropriate websites, this includes forums, blogs, and things of that nature. I tried using Orbot but I'm stuck setting it up. Any help will be appreciated.
You can use tunnelguru.com to browse everywhere you want, if the website is allowed within the mcaffee policy
Oh cool, I'll give that a try. Thanks for your response!
The website was blocked :/ any other suggestions?
Do you want something that is free?
You could also consider setting up a tunnel from your home, but it's somewhat complicated.
vpn
Another option could be a VPN service. I've used VPNBook.com before with satisfactory results, and it should work for you too as long as the firewall doesn't block the ports that the VPN uses. I remember back in my last couple years of high school, the web filters were starting to get ridiculously strict, VPN is the only way to use legitimate websites sometimes.
Bill720 said:
Another option could be a VPN service. I've used VPNBook.com before with satisfactory results, and it should work for you too as long as the firewall doesn't block the ports that the VPN uses. I remember back in my last couple years of high school, the web filters were starting to get ridiculously strict, VPN is the only way to use legitimate websites sometimes.
Click to expand...
Click to collapse
It is possible to create your own vpn server at home and this would allow you toconnect to anything, this is possible easily as there are many guides on the internet step by step to create a vpn service. !
VPN book
W18WAR said:
It is possible to create your own vpn server at home and this would allow you toconnect to anything, this is possible easily as there are many guides on the internet step by step to create a vpn service. !
Click to expand...
Click to collapse
That also does work. It was a little tricky to set up, but I eventually got it going once myself. If you're concerned about privacy using a public VPN like VPNBook, doing it yourself could be a great alternative.
Bill720 said:
That also does work. It was a little tricky to set up, but I eventually got it going once myself. If you're concerned about privacy using a public VPN like VPNBook, doing it yourself could be a great alternative.
Click to expand...
Click to collapse
If my suggestion helped don't forget to hit thanks
There are loads of guides online for this however I cannot post links but my search query in google was "create your own VPN server at home step by step" and then i chose the top result and it is a perfect step by step guide on how to install a VPN Server in your home to use as a proxy bypass.

Trouble finding "I agree" screen at coffee shops.

First post:
N7 2013 Android version 5.0.2 I can connect with their, any shops, wifi network but can't get to a log-in screen to accept their terms and "go" online. Using Firefox & Yahoo mail. Starbucks, McDonald, ect.
Is there an app or something that would "ask" for that page? There must be something simple I am missing....
Open to all suggestions!
Thanks for your help! Glenn
I have this issue on all my devices. I have installed a copy of opera and usually have to either close all the tabs in chrome, then reopen chrome and try to go to some general site. If that does not work i open opera and see if that browser catches the login.
Gotten much worst since 1.1.1.1 became a dns address as many portals use the same address...
Sent from my LGLS992 using Tapatalk
psiphi said:
I have this issue on all my devices. I have installed a copy of opera and usually have to either close all the tabs in chrome, then reopen chrome and try to go to some general site. If that does not work i open opera and see if that browser catches the login.
Gotten much worst since 1.1.1.1 became a dns address as many portals use the same address...
Sent from my LGLS992 using Tapatalk
Click to expand...
Click to collapse
Thank you for your response. This is a real pain in the... I can't believe this isn't an issue for ANYone using a Nexus7. And more disturbing is that there isn't a fix or app us. I mean isn't having a tablet for the portability and ease of remote access???
I love my N7 and it does everything I need Except logging into the net at coffee shops. Help!!!

Categories

Resources