iSniff-GPS
Mi sono imbattuto in un interessante progetto sonoro su GitHub , chiamato iSniff-GPS.
Ho deciso di verificarlo, ma ho riscontrato alcuni problemi durante il tentativo di utilizzare l'interfaccia web.
Istruzioni
Tratto da: link .
To use the web interface:
- Install or update required Python modules by running
pip install -U -r requirements.txt.- Initialise an empty database by running
./manage.py syncdb.- Start the web interface by running
./manage.py runserver 127.0.0.1:8000.
./ manage.py
Ecco il contenuto di manage.py .
#!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "iSniff_GPS.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
Errore
Quando si accede al server Web; Prendo una mappa di Melbourne, VICTORIA. (Australia).
Simile alla seguente immagine:
Qualsiasitentativodinavigareulteriormenteinquestainterfacciaèinfruttuosoeprovocaerrori.
Similealseguentemessaggio:
/usr/local/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:791:InsecureRequestWarning:UnverifiedHTTPSrequestisbeingmade.Addingcertificateverificationisstronglyadvised.See:https://urllib3.readthedocs.org/en/latest/security.htmlInsecureRequestWarning)
UtilizzodiCertificonurllib3
Quindiseguoleistruzionisu:
Fino a quando non arrivo a: link .
Setup your pool to require a certificate and provide the certifi bundle:
import urllib3
import certifi
http = urllib3.PoolManager(
cert_reqs='CERT_REQUIRED', # Force certificate check.
ca_certs=certifi.where(), # Path to the Certifi bundle.
)
# You're ready to make verified HTTPS requests.
try:
r = http.request('GET', 'https://example.com/')
except urllib3.exceptions.SSLError as e:
# Handle incorrect certificate error.
...
- Che cosa dovrei fare con questo blocco di codice?
- Richiede modifiche per funzionare correttamente?
- appartiene a
manage.py/connectionpool.py?
Informazioni aggiuntive
La mia esperienza con Python è minima, ma ho provato un sacco di cose diverse negli ultimi giorni, cercando di farlo funzionare. Ecco alcuni screenshot, raffiguranti alcuni dei vari messaggi di errore; generato in background, mentre stavo cercando di giocare con l'interfaccia web:


