Skip to content

The official proxy of Titanium Network with enhanced support for a large majority of sites with hCAPTCHA support. Successor to Alloy Proxy.

License

Notifications You must be signed in to change notification settings

gorillazeek/Corrosion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Corrosion

Titanium Network's web proxy.

Project is still in development! Pull requests that contribute a lot will be accepted :)

Installation:

npm i corrosion

Example:

const Corrosion = require('corrosion');
const proxy = new Corrosion();
const http = require('http')
http.createServer((req, res) => proxy.request(req, res)).on('upgrade', proxy.upgrade).listen(80);

Much more in depth one is in the demo folder.

API:

Index

  • config
    • config.prefix Prefix
    • config.title Title used for HTML documents
    • config.ws WebSocket rewriting
    • config.cookie Request Cookies
    • config.codec URL encoding (base64, plain, xor).
    • config.requestMiddleware Server only - Array of middleware functions for proxy request.
    • config.responseMiddleware Server only - Array of middleware functions for proxy response.
    • config.standardMiddleware Server only - Use the prebuilt middleware used by default.

JS Rewriter

Methods:

process

  • source JS script
  • url URL for heading

iterate

  • ast JS AST
  • Callback Handler initated on AST node

createHead

  • url URL for heading

createCallExperssion

  • callee Acorn.js Node
  • args Array

createArrayExpression

  • elements Array

createIdentifier

  • name Identifier name
  • preventRewrite Prevent further rewrites

createLiteral

  • value Literal value

CSS Rewriter

Methods:

process:

  • source CSS
  • config Configuration
    • base WHATWG URL Instance
    • origin Location origin
    • context CSS-Tree context

HTML Rewriter

Methods:

process:

  • source HTML Source
  • config Configuration
    • document Determines of its a document or fragment for parsing
    • base WHATWG URL Instance
    • origin Location origin

source:

  • processed Rewritten HTML
  • config Configuration
    • document Determines of its a document or fragment for parsing

Properties

  • map Map for attribute rewriting

About

The official proxy of Titanium Network with enhanced support for a large majority of sites with hCAPTCHA support. Successor to Alloy Proxy.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%