Skip to content
Fourohtwo

agents.writerslogic.com/api/v1/archive-preflight

Checks a manifest of up to 2000 archive entries (path, type, link target, sizes) before extraction, for an agent that unpacks zip, tar or OOXML files: ../ traversal (also through backslashes), absolute, drive-letter and UNC paths, entries that write through a symlink, symlink and hardlink targets that leave the root, duplicate destinations, case-only and NFC/NFD collisions, Windows reserved names,

BaseAnswering
POSThttps://agents.writerslogic.com/api/v1/archive-preflight

Uptime100% of 2 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agents.writerslogic.com/api/v1/archive-preflight", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"entries":[{"path":"app/","type":"dir"},{"path":"app/run.sh","size":120,"type":"file"},{"path":"app/Run.sh","size":90,"type":"file"},{"path":"app/link","type":"symlink","linkTarget":"../../etc"},{"path":"app/link/passwd","size":5,"type":"file"},{"path":"..\\..\\evil.dll","size":1,"type":"file"}]}),
});
console.log(await res.json());

Example input

{
  "entries": [
    {
      "path": "app/",
      "type": "dir"
    },
    {
      "path": "app/run.sh",
      "size": 120,
      "type": "file"
    },
    {
      "path": "app/Run.sh",
      "size": 90,
      "type": "file"
    },
    {
      "path": "app/link",
      "type": "symlink",
      "linkTarget": "../../etc"
    },
    {
      "path": "app/link/passwd",
      "size": 5,
      "type": "file"
    },
    {
      "path": "..\\..\\evil.dll",
      "size": 1,
      "type": "file"
    }
  ]
}