Add google.com config
This commit is contained in:
parent
8316a05ba5
commit
5591a5ce07
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,3 +1,2 @@
|
||||
node_modules
|
||||
*_cert
|
||||
configs
|
||||
*_cert
|
65
configs/m.google.com/index.js
Normal file
65
configs/m.google.com/index.js
Normal file
@ -0,0 +1,65 @@
|
||||
const net = require('net');
|
||||
const handlers = require('../../handlers');
|
||||
const path = require('path');
|
||||
const express = require('express');
|
||||
const axios = require('axios').default;
|
||||
/**
|
||||
*
|
||||
* @param {import("../../proxy").FilterInfo} f
|
||||
*/
|
||||
function filter(f) {
|
||||
if (f.tls) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
const app = express();
|
||||
app.post("/*", function (req, res) {
|
||||
const dat = Buffer.alloc(parseInt(req.header('Content-Length')));
|
||||
var ptr = 0
|
||||
req.on('data', (buf)=>{
|
||||
dat.set(buf, ptr);
|
||||
ptr += buf.length;
|
||||
});
|
||||
req.on('end', async ()=>{
|
||||
try {
|
||||
const resFromRev = await axios.post('http://localhost:3040/', dat);
|
||||
// console.log(resFromRev.data);
|
||||
res.writeHead(200, "OK");
|
||||
res.end(resFromRev.data.toString());
|
||||
} catch {
|
||||
res.writeHead(500, "Internal server error");
|
||||
res.end("500 - Internal server error. Try again later");
|
||||
}
|
||||
|
||||
})
|
||||
});
|
||||
app.get('/*', (req, res)=>{
|
||||
res.writeHead(200, "OK");
|
||||
res.end("OK");
|
||||
})
|
||||
/**
|
||||
*
|
||||
* @param {import("../../proxy").ServerConfig} config
|
||||
* @param {net.Socket} sock
|
||||
*/
|
||||
function proxy(config, sock){
|
||||
const ms = handlers.getMiniServer(function (req, res) {
|
||||
app(req, res);
|
||||
}, path.resolve(__dirname, "public", "google.com.pem"),path.resolve(__dirname, "public", "google.com.key"))
|
||||
const socks = net.createConnection({
|
||||
host: "localhost",
|
||||
port: ms.port
|
||||
}, function(){
|
||||
sock.write('HTTP/1.1 200 OK\r\n\n');
|
||||
sock.pipe(socks);
|
||||
socks.pipe(sock);
|
||||
// sock.write('HTTP/1.1 200 OK\r\n\n');
|
||||
});
|
||||
|
||||
}
|
||||
module.exports = {
|
||||
filter,
|
||||
proxy
|
||||
}
|
5
configs/m.google.com/manifest.json
Normal file
5
configs/m.google.com/manifest.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"filters": ["https"],
|
||||
"proxyPath": "index.js",
|
||||
"matches": "m\\.google\\.com"
|
||||
}
|
8
configs/m.google.com/public/extfile
Normal file
8
configs/m.google.com/public/extfile
Normal file
@ -0,0 +1,8 @@
|
||||
|
||||
authorityKeyIdentifier=keyid,issuer
|
||||
basicConstraints=CA:FALSE
|
||||
keyUsage = digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment
|
||||
subjectAltName = @alt_names
|
||||
|
||||
[alt_names]
|
||||
DNS.1 = *.google.com
|
52
configs/m.google.com/public/google.com.key
Normal file
52
configs/m.google.com/public/google.com.key
Normal file
@ -0,0 +1,52 @@
|
||||
-----BEGIN PRIVATE KEY-----
|
||||
MIIJQQIBADANBgkqhkiG9w0BAQEFAASCCSswggknAgEAAoICAQC59L0sui9J0kbx
|
||||
q9rcr5yy2zbEBsTjYJ6tO5uCKyC9vLQmd8D6xnvTK1LoEMY6hDcij+GGEqRmP2EK
|
||||
/ZaNjKArzsf05CRPT0bk1Zq/1L9hznVe95lRhyrDnFs9VzOXy4iUZ1mOc6m66t/e
|
||||
CavWxO7ASbFlsQmp3EVbl9ODFLkYwZshlkawqoi+T2nak0HvoFA1gzjVyzS8VLji
|
||||
/fML1jzR0QK7C41e3aVZzk0JNYkA3uyyj3hukr0h7HbGCQYLxWK9lH3mjvUXualv
|
||||
JXdCDyZk4sE4o9CHuO5w2dz04k09sKwnceO5v4vZ7/JV/kUn0O1lrGIYF2THr98g
|
||||
76eIeCmhbUxNPI5L0LCqBlZhx2UtgMTjwL5jGhQCB65PKR0qkUD6Wbjyv6m6KkaR
|
||||
mngQsi5OrwGjiDk2Pjx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NRZHyGJQvB
|
||||
Sre7SQH02UGZEJyoFPbNcY2kxh+PkrwxPxEnJDkCggEAQ5udNDxYNo0zES4C03+7
|
||||
jxYDnaLzkIp+2ve6B9om9OAkCykrdLG3LCmViZlijoNOJOBICTbkayPpsT5iFERk
|
||||
8GRvh2Vo0QiOzTIg/fbFjWpRrI9vACzTdqVhaVPIEgHIKNSO1jshYZZLyev5Z9h0
|
||||
U3r5AowT//3snebeiI4Y+Kj+28cfACpgAkzy6fyF0+IbfOcdmD5BjpGtdAghR/iv
|
||||
VWKbi8//S0szqvriDKh0idyaggBR4cIWYXRKSRDyp+ntw7eeXcJD0WM7yFvzDnCG
|
||||
06w4XGi3mqPcWxxKxkOWOX1JPUughCGSmjau8T6r/v9/u3AUB/G+apPdCS6AFoU+
|
||||
KwKCAQBtB0IYFRqhS0zET4hyEgrzFSqicN0NmEmry+sTeEknvboCwmx1MwfGctpn
|
||||
+ekJqXQYS1jyLtYNA+6lrCHK+Qtgtb6hO7L08+nfY3VdECVhKdpmD3rswR7/d+sp
|
||||
PEpr52bS+kplRk0eOoUcOrbtBzXMmRZgzy7DP2KkkviM1b2NtU2TPqIzX+VT+4Ow
|
||||
gbt4M+JrEQruJxHg3DIXccxNmcBtqlHj58seOfGM6Hf3bbXWBcGezLFC6FxVGIFO
|
||||
bLpCpyl8WkC0X3MRDi0o5npmp9Yezvdn0c/Jl26SK+MR4Xm8vJcDUeZj4NIo8fxV
|
||||
Zj4NBk44R51NGc8Y1/s1qXv//vuX
|
||||
-----END PRIVATE KEY-----
|
35
configs/m.google.com/public/google.com.pem
Normal file
35
configs/m.google.com/public/google.com.pem
Normal file
@ -0,0 +1,35 @@
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIF/TCCA+WgAwIBAgIUGqsZumMwTx6zppfagZkMRkJU76swDQYJKoZIhvcNAQEL
|
||||
BQAwgZAxCzAJBgNVBAYTAlVTMREwDwYDVQQIDAhSRURBQ1RFRDERMA8GA1UEBwwI
|
||||
UkV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/public/in.csr
Normal file
28
configs/m.google.com/public/in.csr
Normal file
@ -0,0 +1,28 @@
|
||||
-----BEGIN CERTIFICATE REQUEST-----
|
||||
MIIEsDCCApgCAQAwazELMAkGA1UEBhMCVVMxEDAOBgNVBAgMB1BSSVZBVEUxEDAO
|
||||
BgNVBAcMB1BSSVZBVEUxETAPBgNVBAoMCFN1Y2Nlc3MhMRAwDgYDVQQLDAdTdWNj
|
||||
ZXNzMRMwEQYDVQQDDApnb29nbGUuY29tMIICIjANBgkqhkiG9w0BAQEFAAOCAg8A
|
||||
MIICCgKCAgEAufS9LLovSdJG8ava3K+csts2xAbE42CerTubgisgvby0JnfA+sZ7
|
||||
0ytS6BDGOoQ3Io/hhhKkZj9hCv2WjYygK87H9OQkT09G5NWav9S/Yc51XveZUYcq
|
||||
w5xbPVczl8uIlGdZjnOpuurf3gmr1sTuwEmxZbEJqdxFW5fTgxS5GMGbIZZGsKqI
|
||||
vk9p2pNB76BQNYM41cs0vFS44v3zC9Y80dECuwuNXt2lWc5NCTWJAN7sso94bpK9
|
||||
Iex2xgkGC8VivZR95o71F7mpbyV3Qg8mZOLBOKPQh7jucNnc9OJNPbCsJ3Hjub+L
|
||||
2e/yVf5FJ9DtZaxiGBdkx6/fIO+niHgpoW1MTTyOS9CwqgZWYcdlLYDE48C+YxoU
|
||||
AgeuTykdKpFA+lm48r+puipGkZp4ELIuTq8Bo4g5Nj48RX8lyYAkifmli0oROJn1
|
||||
TxDRdOmTvl2oZNNuFXeEEGB4RyZjEMYV+xAO7VSHA19x7q3+cbVKSmYtMsRiVR0e
|
||||
0I4egR4ORep0cuQehN8WCvwVNQJayhmHc8jv5fNEB8QeadcnXb8lxwHY5Oidy8s4
|
||||
jcKPiuvKH4o2kKEMwTvZtNvvziVE0541ctyJcNrqdu2yp2ZEFNsrMHN03GRex1bb
|
||||
d4JIosa38Fzi80EKGh20SGSEbdWhkI9ky+FBd5URWkd2Bi6z52gdFzcCAwEAAaAA
|
||||
MA0GCSqGSIb3DQEBCwUAA4ICAQABCuTUaRkhe7zNDXlTERM5XgIvqel4JmdxaSBY
|
||||
yh8r+V5KrNkUAjx6ezOy3/GDonk5gBhDS/ragQYBJECMIlRqq2zAT5buWGxTXKBH
|
||||
M308wxc+nY7eRZ7oNJl6Y04UNCIALSrtoT2mHOGQD2JqywcwEJv0Zl+IHjpcDOTZ
|
||||
7rhzpxnpbwgrqBtMek6deWeAeql6h6q5hui+0p0SslxV/+2IP50CBIoSDuUvkhUI
|
||||
UKR4Av6bMyeoXbZYf0FlY0xcHSbm4E1bJ30+gqEq3Y6VgOyMWYhhQpAdo9dVCBgP
|
||||
I1VjXd/SK+M/YwXt67s3cLuS1DfKdvmw1/4EQJNc8PG5ommvX2WknnfRfHNB+Aqk
|
||||
SNySDp4IQl+RlFziLP8fGKyClgvSvoHGSapuNzDX4CD2wz4MOa3ZP9DbUuV8Pm2u
|
||||
oFB+nNjUEmDxyk3sVwgQkHd0eB+oQXDgCCVJ4iFNopFsTbdGqVuiSDHQ0pS8ugVw
|
||||
PZLkXHxDM9bTS0jOy3Hb6vlcfuBI82oFMWLwj0bov3+42nNoOw3m3LHkya27qF9+
|
||||
sBh+FHZ/C6oWEejKYuNnI/mnKo+bYjkEPsjau+EG9f8HNWVD+4ndUBSE/75SJlG/
|
||||
2LDEGtfUG6oCklb6++gIOueVELlgp5fL8aNSBoRZe+ZkfMHrhpcHu4f9QSpBxqUy
|
||||
L5Gs9A==
|
||||
-----END CERTIFICATE REQUEST-----
|
72
package-lock.json
generated
72
package-lock.json
generated
@ -5,6 +5,7 @@
|
||||
"packages": {
|
||||
"": {
|
||||
"dependencies": {
|
||||
"axios": "^1.7.3",
|
||||
"express": "^4.19.2"
|
||||
}
|
||||
},
|
||||
@ -25,6 +26,21 @@
|
||||
"resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
|
||||
"integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg=="
|
||||
},
|
||||
"node_modules/asynckit": {
|
||||
"version": "0.4.0",
|
||||
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
|
||||
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
|
||||
},
|
||||
"node_modules/axios": {
|
||||
"version": "1.7.3",
|
||||
"resolved": "https://registry.npmjs.org/axios/-/axios-1.7.3.tgz",
|
||||
"integrity": "sha512-Ar7ND9pU99eJ9GpoGQKhKf58GpUOgnzuaB7ueNQ5BMi0p+LZ5oaEnfF999fAArcTIBwXTCHAmGcHOZJaWPq9Nw==",
|
||||
"dependencies": {
|
||||
"follow-redirects": "^1.15.6",
|
||||
"form-data": "^4.0.0",
|
||||
"proxy-from-env": "^1.1.0"
|
||||
}
|
||||
},
|
||||
"node_modules/body-parser": {
|
||||
"version": "1.20.2",
|
||||
"resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.2.tgz",
|
||||
@ -74,6 +90,17 @@
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/combined-stream": {
|
||||
"version": "1.0.8",
|
||||
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
|
||||
"integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
|
||||
"dependencies": {
|
||||
"delayed-stream": "~1.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.8"
|
||||
}
|
||||
},
|
||||
"node_modules/content-disposition": {
|
||||
"version": "0.5.4",
|
||||
"resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
|
||||
@ -130,6 +157,14 @@
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/delayed-stream": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
|
||||
"integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
|
||||
"engines": {
|
||||
"node": ">=0.4.0"
|
||||
}
|
||||
},
|
||||
"node_modules/depd": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
|
||||
@ -250,6 +285,38 @@
|
||||
"node": ">= 0.8"
|
||||
}
|
||||
},
|
||||
"node_modules/follow-redirects": {
|
||||
"version": "1.15.6",
|
||||
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz",
|
||||
"integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "individual",
|
||||
"url": "https://github.com/sponsors/RubenVerborgh"
|
||||
}
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=4.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"debug": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/form-data": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz",
|
||||
"integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",
|
||||
"dependencies": {
|
||||
"asynckit": "^0.4.0",
|
||||
"combined-stream": "^1.0.8",
|
||||
"mime-types": "^2.1.12"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 6"
|
||||
}
|
||||
},
|
||||
"node_modules/forwarded": {
|
||||
"version": "0.2.0",
|
||||
"resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
|
||||
@ -497,6 +564,11 @@
|
||||
"node": ">= 0.10"
|
||||
}
|
||||
},
|
||||
"node_modules/proxy-from-env": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
|
||||
"integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg=="
|
||||
},
|
||||
"node_modules/qs": {
|
||||
"version": "6.11.0",
|
||||
"resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz",
|
||||
|
@ -1,5 +1,6 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"axios": "^1.7.3",
|
||||
"express": "^4.19.2"
|
||||
}
|
||||
}
|
||||
|
2
proxy.js
2
proxy.js
@ -155,7 +155,7 @@ getAllServerConfigs()
|
||||
//}
|
||||
server.on('connection', (clientToProxySocket) => {
|
||||
// We need only the data once, the starting packet
|
||||
console.log("client connected");
|
||||
// console.log("client connected");
|
||||
clientToProxySocket.once('data', (data) => {
|
||||
let isTLSConnection = data.toString().indexOf('CONNECT') !== -1;
|
||||
var path = null;
|
||||
|
Reference in New Issue
Block a user