Successor to Palladium
index.js
var req=require,
server=req("http").Server(),
proxy=new(req("./"))({title:"Rhodium",server:server});proxy.init();server.on("request",(e,r)=>(e.url.startsWith(proxy.prefix)?proxy.request(e,r):r.end(req("fs").readFileSync("./index.html")))).listen(80);
config
{
"userAgent": "fx", // Firefox userAgent Spoof
"prefix": "/service/", // Proxy Prefix
"wss": true, // WebSocket Server
"corrosion": [false, {}], // Corrosion Dual-Server
"title": "Rhodium", // Page Title on Proxied Pages
"server": http.Server(), // Your Http Server
"encode": "xor" // Encoding for Proxy URLS
}
"fx": Firefox
"gl": Chrome
"sf": Safari
"ed": Edge
"op": Opera
"mofx": Firefox Mobile
"mogl": Chrome Mobile
"mosf": Safari Mobile
"moed": Edge Mobile
"moop": Opera Mobile
// You can also use your own custom one: "epic userAgent name"
"/service/": Default Prefix
// Use Any Custom Prefix, make sure it starts and ends with "/"
// Proxy Gateway: "/prefix/gateway?url=https://url.com"
// Proxy Inject File: "/prefix/index"
// Proxy URL: "/prefix/encoded_url"
"true": Default Setting
// You MUST Add Your HTTP Server to allow the Websocket Server to work
"[true, CorrosionInstance]": Setting when you have a Corrosion server
"[false, {}]" No Corrosion Server
}
"Service": Default Setting
// You Can set it to any string or number
"http.Server()": HTTP Server, Default Setting when no specified server to prevent errors
//This example will NOT work with Websockets, it will simply prevent errors
"xor": Default Setting
//XOR: "https://discord.com/" into "hvtrs8%2F-dksaopd%2Ccmm%2F"
//Plain: "https://discord.com/" into "https://discord.com/"
//B64: "https://discord.com/" into ""