-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using Certifi with urllib3 #20
Comments
Hi, thanks for the detailed report. The Apple WiFi Geolocation page is meant to be used in 1 of 2 ways:
OR
It seems to me like the above is working for you? The "The InsecureRequestWarning" you're seeing on the console is just a warning and not an error. It relates to the request to the Apple location API being made with insecure SSL options, but this is by design. The way to make this error go away would be to change verify=False to True in 2 places in wloc.py (however, this may then fail because in the past the hostnames within Apple's SSL certificates have not matched the hostnames - which is why I put verify=False in the first place): $ grep -Ri verify=false .
./iSniff_GPS/wloc.py: r = requests.post('https://gs-loc.apple.com/clls/wloc',headers=headers,data=data,verify=False) # CN of cert on this hostname is sometimes *.ls.apple.com / ls.apple.com, so have to disable SSL verify
./iSniff_GPS/wloc.py: r = requests.post('https://gs-loc.apple.com/clls/wloc',headers=headers,data=data,verify=False) #the remote SSL cert CN on this server doesn't match hostname anymore The "Wigle SSID Search" feature has probably stopped working because the wigle.net cookie that I've hardcoded in the source is no longer valid, or their API may have changed. The best way to fix this is to create a wigle.net account for yourself and manually copy & paste the cookie you receive from the Wigle website into the iSniff GPS source here in iSniff_GPS/wigle.py: cookie = dict(auth='isniff:841981133:1416119202:eiewXk78tQeXklwin17pYw') Is there anything else that you're specifically trying to do in the web interface that doesn't work? |
Regarding Wigle SSID Search, someone has actually sent a pull request to improve this code so you should now be able to specify a Wigle username/password (see #17) I suggest you git pull to update your copy of iSniff-GPS (I have just merged the new code), and try configuring your wigle login in iSniff_GPS/settings.py. |
No worries. You're welcome.
Actually, neither of them worked properly:
AND
I'll try changing the hard-coded cookie to suit my wigle.net account and let you know how it goes. |
Let me know if / when you read my last comment, and I'll give you an update. |
Hi, Apple-wloc is not limited to any particular location - the default BSSID happens to be located in Melbourne, so that's what is displayed by default. On your local install of iSniff-GPS, try requesting the URL /apple-wloc/88:E3:AB:00:82:30 for example - This is somewhere in Ukraine. Try downloading a tool like iStumbler and enter a few BSSIDs from your vicinity in the URL like that - At least one of them should work. Regarding wigle, this now works based on setting wigle_username and password in settings.py. It no longer requires you to hardcode cookies. Please try this and report back. You will need to git pull to get the new code, delete the existing wigle.py, sudo pip install wigle, and put your wigle creds in your iSniff-GPS settings.py. |
I'll take a look now. |
iSniff-GPS
I came across an interesting sounding project on GitHub, called iSniff-GPS.
I decided to check it out, but i experienced some issues when trying to use the web interface.
Instructions
Taken from: _https://github.com/hubert3/iSniff-GPS_.
./manage.py
Here is the contents of
manage.py
.Error
When accessing the web server; I get a map of Melbourne, VICTORIA. (Australia).
Similar to the following image:
Any attempts to further navigate this interface are fruitless and provokes an errors.
Similar to the following message:
Using Certifi with urllib3
So I follow the instructions at: _https://urllib3.readthedocs.org/en/latest/security.html.
Until I get to: _https://urllib3.readthedocs.org/en/latest/security.html#certifi-with-urllib3.
manage.py
/connectionpool.py
?Additional Information
My experience with Python is minimal but I've tried a bunch of different things over the last few days, trying to get this to work. Here are a few screenshots, depicting some of the various error messages; generated in the background, while i was trying to play with the web interface:
The text was updated successfully, but these errors were encountered: