All Projects → ivanrad → sblookup

ivanrad / sblookup

Licence: MIT license
Command line tool to check URLs against Google Safe Browsing malware/phishing lists.

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to sblookup

matrix
mirror of https://mypdns.org/my-privacy-dns/matrix as it is obviously no longer safe to do Girhub nor have we no longer any trust in them. See https://mypdns.org/my-privacy-dns/porn-records/-/issues/1347
Stars: ✭ 32 (+113.33%)
Mutual labels:  safebrowsing
pornhosts
Pornhosts a hosts-file formatted file of the RPZ zone file
Stars: ✭ 33 (+120%)
Mutual labels:  safebrowsing
GhostNET
GhostNET script that will help you be safer on the cyber
Stars: ✭ 45 (+200%)
Mutual labels:  safebrowsing

IMPORTANT NOTE

sblookup was originally written in 2012, and it was written to target an experimental Safe Browsing Lookup API v3. Fast forward to today -- API v3 is now considered legacy/deprecated API, and the current version of the API is v4. While the API v3 keys can still be obtained in Google Developer Console (at the time of this writing), I suspect API v3 will be completely shutdown sometime in 2017. That's the bad news.

There's a bit of good news too. Nowadays, Google seems to publish an official Safe Browsing Lookup command line client (aptly named sblookup ;)), and it is targeting the current API version. It's probably best to start thinking about using/migrating to the Google blessed command line tool.

sblookup

sblookup is a Google Safe Browsing Lookup API command line tool. It returns Safe Browsing verdicts for URLs read from files (or standard input).

Installing

sblookup is a bash script with dependency on curl. To install it, simply copy the script to a local folder (ideally, one that's already in your $PATH), and make sure the execute bit is set.

Using

For help on using sblookup, invoke it with an -h option (i.e. sblookup -h).

NOTE: sblookup is utilizing Google Safe Browsing Lookup API, protocol version 3.1. For more details, and to learn how to obtain Safe Browsing API key, see Google Safe Browsing Lookup API Guide.

Example

	$ cat sblookup_example.txt
	http://www.yahoo.com/
	http://www.google.com/
	http://malware.testing.google.test/testing/malware/
	http://twitter.com/
	http://ianfette.org
	https://github.com/

	$ ./sblookup -a <Safe Browsing API key> sblookup_example.txt
	ok      http://www.yahoo.com/
	ok      http://www.google.com/
	malware http://malware.testing.google.test/testing/malware/
	ok      http://twitter.com/
	malware http://ianfette.org
	ok      https://github.com/

License

Copyright (c) 2012-2014 Ivan Radanovic <ivanra at gmail>.

This code has been published under MIT license. See LICENSE file for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].