Giter VIP home page Giter VIP logo

akamai-2.0-script-monitor's Introduction

Akamai 2.0 Script Monitor

A simple program to notify you whenever the Akamai 2.0 script updates on a website via a discord webhook.

Features

  • Notifications via Discord Webhook Integration:

    Embed Result

  • Saves the Akamai 2.0 script to the file system.

    • Scripts are saved to the \assets\downloaded_akamai_scripts\${HOSTNAME} folder.
    • Filename format: ${hostname}_${topIdentifierName}_${scriptHash}.js Where ${hostname} is the domain name of the target site, ${topIdentifierName} is the variable name of the empty object declared at the top of the script, and ${scriptHash} is the MD5 hash of the script.

Installation

Clone the repository, and install the dependencies with:

npm install

Configuration

Open /config/config.json/ to modify the monitor config.

Delay Settings

Delay is an integer value representing the number of milliseconds to wait between each check. If one isn't supplied, the program will use a default value of 5000ms.

    "delay": ${INTEGER},

Webhook Settings

You MUST configure the webhook settings to use this program. You can extract the webhook id and token from a webhook URL: https://discord.com/api/webhooks/${WEBHOOK_ID}/${WEBHOOK_TOKEN}.

   "webhook":{
      "id":"${WEBHOOK_ID}",
      "token":"${WEBHOOK_TOKEN}"
   },

Site Settings

You MUST configure the site settings to use this program. sites is a JSON Array containing the target sites. To add another target site, simply construct a new JSON object matching the specified format and add it to the sites array.

   "sites":[
      {
         "url":"https://${HOSTNAME1}"
      },
      {
         "url":"https://${HOSTNAME2}"
      },
      {
         "url":"https://${HOSTNAME3}"
      }
   ]

Usage

After configuring the file, start the monitor by running:

node index.js

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

akamai-2.0-script-monitor's People

Stargazers

 avatar  avatar

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.