Skip to main content

Library for detecting vulnerable browsers

Project description

This small library detects vulnerable operating systems and browsers based on browser user-agent string. No active checks are included.

from browser_vulnerabilities import BrowserVulnerability

bv = BrowserVulnerability('Mozilla/5.0 (Windows NT 6.3; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0')
print bv.vulnerabilities() # {'priority': 'mandatory', 'vuln': 'Multiple vulnerabilities', 'name': 'Firefox', 'version__smaller': '26.0'}
bv = BrowserVulnerability('Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:27.0) Gecko/20100101 Firefox/27.0')
print bv.vulnerabilities() # False

Minimalistic database is available in browser_vulnerabilities/data.py file.

License

Licensed under MIT license:

Copyright (c) 2014 Olli jarva olli@jarva.fi

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

browser_vulnerabilities-0.0.3.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file browser_vulnerabilities-0.0.3.tar.gz.

File metadata

File hashes

Hashes for browser_vulnerabilities-0.0.3.tar.gz
Algorithm Hash digest
SHA256 6101464b030d723224ca5e86470af5ae18f08098995b29b5b463bcc5ad77ce1a
MD5 dccbb5665adde776d9581877dfd54f6e
BLAKE2b-256 300157e1c69ba57450eb4c567a6587373db642ec601137b28480c2b4ba4a4281

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page