GithubHelp home page GithubHelp logo

malware_api's Introduction

Malware

Malware is a rails plugin to take advantage of the Google Safe Browsing API

Installation

Request an API key from http://code.google.com/apis/safebrowsing/key_signup.html

Create a config file with your API key. In RAILS_ROOT/config/initializers/malware_key.rb

# API key for Google Safe Browsing API
# http://code.google.com/apis/safebrowsing/
SAFEBROWSING_API_KEY = "ABQIAAAAN_MxjBsAgBKC8N1cqNloZhT3elDgi-bgogZuFD30ho7emQ1XEw"

Install the plugin

gem install malware

Generate and run a migration to create the tables

script/generate malware_migration
rake db:migrate

Example

$ script/console 
Loading development environment (Rails 2.3.5)
>> Malware.update
=> "Updated malware info (in 73.865188s) +301657/-0 (1.47438 1.18185)\n"
>> Malware.check('http://malware.testing.google.test/testing/malware/')
=> true
>> Malware.check('http://www.jorgebernal.info/')
=> false

Copyright (c) 2009 Jorge Bernal [email protected], released under the MIT license

malware_api's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

malware_api's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.