New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

stapidoc

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stapidoc

Static Page Inline Decoder of Choice

pipPyPI
Version
0.1.0
Maintainers
1

stapidoc

v0.1.0
©2023 Jonas Santoso

static page inline decoder of choice

Install

pip install stapidoc

Usage

stapidoc input_file

Resulting document is written to stdout.

Given a static HTML document ('source'), stapidoc creates another HTML document which contains the source as a percent‑and‑base64‑encoded string, along with an inline script that decodes this string and plugs the source's DOM on‑the‑fly upon loading.

The source's <link> elements are plugged into the resulting DOM's <head> separately in order for linked resources to load.

Tacit assumptions:

  • The source document is entirely static. There are no <script> elements in either head or body.
  • The source document uses UTF-8 encoding.

FAQs

Did you know?

Socket

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