sensepost / snoopy-ng

Snoopy v2.0 - modular digital terrestrial tracking framework
Other
429 stars 127 forks source link

Issue authenticating to wiggle #78

Open cato-7 opened 8 years ago

cato-7 commented 8 years ago

For some reason Snoopy is not authenticating properly with Wigle although the username/password/email are all correct and work fine logging on to the site normally

I run the following (creds obfuscated):

python snoopy.py -vvv -m wifi:mon=True -m blutooth -m wigle:username=user,password=pass,email=user@domain.com -s http://52.51.94.41:9001 -d drone1 -l location1 -k key1

and get:

[+] Starting Snoopy with plugins: wifi, blutooth, wigle [+] Waiting for plugin 'wifi' to indicate it's ready [+] Starting sniffing on interface 'mon0' [+] Plugin 'wifi' has indicated it's ready. [+] Waiting for plugin 'blutooth' to indicate it's ready [+] Plugin 'blutooth' has indicated it's ready. [+] Waiting for plugin 'wigle' to indicate it's ready [+] Plugin 'wigle' has indicated it's ready. [+] Done loading plugins, running... [+] Starting new HTTPS connection (1): www.wigle.net [+] Sub-plugin wifi_aps currently observing 5 Access Points [+] Plugin 'wifi' emitted 5 new datapoints for table 'wifi_AP_obs'. [+] Plugin 'wifi' emitted 5 new datapoints for table 'wifi_AP_ssids'. [+] Plugin 'wifi' emitted 5 new datapoints for table 'vendors'. [+] Plugin wigle has 29 SSIDs to lookup. [!!] Login to Wigle failed! Aborting wigle plugin.

In the snoopy.log, I see:

2016-05-25 22:13:57 ^[[35m+^[[32m snoopy.py: Starting Snoopy with plugins: ^[[37mwifi, blutooth, wigle^[[32m 2016-05-25 22:13:58 ^[[35m+^[[32m snoopy.py: Waiting for plugin 'wifi' to indicate it's ready 2016-05-25 22:13:58 D monitor_mode.py: Disabling monitor mode on 'mon0' 2016-05-25 22:14:00 D monitor_mode.py: Enabling monitor mode on 'wlan1' 2016-05-25 22:14:03 D monitor_mode.py: Enabled monitor mode 'mon0' 2016-05-25 22:14:03 ^[[35m+^[[32m wifi.py: Starting sniffing on interface 'mon0' 2016-05-25 22:14:04 ^[[35m+^[[32m snoopy.py: Plugin 'wifi' has indicated it's ready. 2016-05-25 22:14:04 ^[[35m+^[[32m snoopy.py: Waiting for plugin 'blutooth' to indicate it's ready 2016-05-25 22:14:04 ^[[35m+^[[32m snoopy.py: Plugin 'blutooth' has indicated it's ready. 2016-05-25 22:14:05 D blutooth.py: Scanning for bluetooth devices 2016-05-25 22:14:07 ^[[35m+^[[32m snoopy.py: Waiting for plugin 'wigle' to indicate it's ready 2016-05-25 22:14:07 D wigle_api.py: [+] Logging into wigle with user:pass via proxy '{'http': None, 'https': None}' 2016-05-25 22:14:07 ^[[35m+^[[32m snoopy.py: Plugin 'wigle' has indicated it's ready. 2016-05-25 22:14:07 ^[[35m+^[[32m snoopy.py: Done loading plugins, running... 2016-05-25 22:14:07 ^[[35m+^[[32m connectionpool.py: Starting new HTTPS connection (1): www.wigle.net 2016-05-25 22:14:07 ^[[35m+^[[32m wifi_aps.py: Sub-plugin ^[[37mwifi_aps^[[32m currently observing ^[[37m4^[[32m Access Points 2016-05-25 22:14:07 ^[[35m+^[[32m snoopy.py: Plugin '^[[37mwifi^[[32m' emitted ^[[37m4^[[32m new datapoints for table '^[[37mwifi_AP_obs^[[32m'. 2016-05-25 22:14:07 ^[[35m+^[[32m snoopy.py: Plugin '^[[37mwifi^[[32m' emitted ^[[37m4^[[32m new datapoints for table '^[[37mwifi_AP_ssids^[[32m'. 2016-05-25 22:14:07 ^[[35m+^[[32m snoopy.py: Plugin '^[[37mwifi^[[32m' emitted ^[[37m4^[[32m new datapoints for table '^[[37mvendors^[[32m'. 2016-05-25 22:14:07 ^[[35m+^[[32m wigle.py: Plugin ^[[37mwigle^[[32m has ^[[37m29^[[32m SSIDs to lookup. 2016-05-25 22:14:07 D wigle.py: SSID lookup queue has 29 SSIDs to query 2016-05-25 22:14:07 D snoopy.py: Not syncing table 'bluetooth_details' - no 'sunc' column 2016-05-25 22:14:08 D connectionpool.py: "POST /api/v1/jsonLogin HTTP/1.1" 302 279 2016-05-25 22:14:08 D connectionpool.py: "GET /api/v1/jsonUser HTTP/1.1" 200 124 2016-05-25 22:14:08 D wigle_api.py: Error logging in with credentials user:pass. 2016-05-25 22:14:08 ^[[31m!!^[[32m wigle.py: Login to Wigle failed! Aborting wigle plugin.

The other modules work fine

I believe Im using the latest version of the code. Cloned the repository just a few days ago

gunwi commented 8 years ago

Can you please tell me about the system where you get snoopy-ng running? Did you alter something to get it up and running?

Did you read: https://github.com/sensepost/snoopy-ng/issues/72 ? Maybe this is the (unresolved) problem...too many connections/attempts to wigle.

BTW: Sorry for bad english - but i think you get me ;-)

(Edit: Typo and the last sentences)

edlovesiraq commented 7 years ago

was this ever solved? I'm having same problem. Everything looks fine just failing to log in.