httpshim

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2026 License: Apache-2.0 Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package httpshim makes ordinary `curl` and `wget` invocations in the agent's terminal go through the browser-fingerprinted HTTP stack, so a command the model reaches for out of habit still passes bot-detection.

It works by placing small shim scripts named curl and wget on the shell's PATH. Each shim re-invokes the Antares binary as `antares _httpshim curl …`, which parses the common flags and performs the request with httpcloak. Any invocation the shim does not fully understand — an upload, a unix socket, a non-HTTP URL — is handed to the real curl/wget untouched, so nothing that worked before breaks.

Index

Constants

This section is empty.

Variables

View Source
var Tools = []string{"curl", "wget"}

Tools are the commands the shim stands in for.

Functions

func Install

func Install() (string, error)

Install writes the shim scripts and returns the directory to prepend to PATH. It is a no-op error on Windows, where the local shell is PowerShell and the PATH-shim trick does not apply cleanly.

func Run

func Run(tool string, args []string) int

Run dispatches an intercepted invocation. It is the entry point for the `antares _httpshim <tool> <args…>` subcommand and returns a process exit code.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL