Socket
Socket
Sign inDemoInstall

stormwall-bypass

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    stormwall-bypass

A library to help bypass stormwall protected websites


Version published
Weekly downloads
67
increased by235%
Maintainers
1
Install size
5.38 kB
Created
Weekly downloads
 

Readme

Source

stormwall

A library to help bypass stormwall protected websites.

Install

npm install stormwall

Quick Example

const axios = require('axios');
const { CookieJar } = require('tough-cookie');
const { isProtectedByStormwall, getStormwallCookie } = require('stormwall');

(async () => {
  try {
    const url = 'https://stormwall-protected-url.com';
    let response = await axios.get(url);

    if (isProtectedByStormwall(response.data)) {
      const jar = new CookieJar();
      const cookie = getStormwallCookie(response.data);
      jar.setCookieSync(cookie, url);

      response = await axios.get(url, {
        headers: {
          Cookie: jar.getCookieStringSync(url)
        }
      });
    }
    console.log(response.data);
  } catch (error) {
    console.log(error);
  }
})();

NOTE: Keep your stormwall cookie to reuse it otherwise you'll get blocked by stormwall.

API

isProtectedByStormwall

const { isProtectedByStormwall } = require('stormwall');

const url = 'https://stormwall-protected-url.com';
const { data: body } = await axios.get(url);

const isProtected = isProtectedByStormwall(body);
console.log(isProtected);
// true

getStormwallCookie

const { getStormwallCookie } = require('stormwall');

const url = 'https://stormwall-protected-url.com';
const { data: body } = await axios.get(url);

const cookie = getStormwallCookie(body);
console.log(cookie);
// swp_token=1591688909:432fcabef0817198c94d8f20864bb8f6:15af8b664352d0407f587b2c3e7b5432;path=/;max-age=1800

Keywords

FAQs

Last updated on 10 Jun 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc