Skip to content

Latest commit

 

History

History
66 lines (45 loc) · 2.03 KB

README.md

File metadata and controls

66 lines (45 loc) · 2.03 KB

Ayashige

Build Status Coverage Status Codacy Badge

Ayashige provides a list of suspicious newly registered domains as a JSON feed.

How it works

  • It collects newly registered domains via WebAnalyzer & WhoisDS.
  • It computes a suspicious score of a given domain.
  • It stores suspicious domains into a Redis instance.
  • It provides suspicious domains as a JSON via /feed endpoint.

Installation

git clone https://github.com/ninoseki/ayashige
bundle install --path vendor/bundle

Usage

Please set following environmental values before using.

REDIS_HOST = YOUR_REDIS_HOST
REDIS_PORT = YOUR_REDIS_PORT
REDIS_PASSWORD = YOUR_REDIS_PASSWORD

Run Cron jobs

bundle exec ruby bin/web_analyzer_job.rb
bundle exec ruby bin/whoisds_job.rb
  • The jobs collects the latest registered domains from WebAnalyzer & WhoisDS.
  • It checks a suspicious score of a given each domain and stores a suspicious one into a Redis instance.

Run a Web app

bundle exec puma config.ru

Demo

  • https://ayashige.herokuapp.com/feed

  • Notes:

    • This app is hosted on Heroku free dyno.
    • The Cron job is triggered at 20:00 UTC+0 every day.
    • The data in the Redis instance will expire after 48 hours.
    • I'm running this app just as a hobby and I cannot assure its consistency.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/ninoseki/ayashige.

License

The gem is available as open source under the terms of the MIT License.