GUI-STUDIO commited on
Commit ·
a78eb42
1
Parent(s): f49b2e6
tests
Browse files- src/sub-router/test.ts +0 -25
src/sub-router/test.ts
CHANGED
|
@@ -12,31 +12,6 @@ const sub_router = new Elysia({ prefix: "/test" }).get("/foo", async (ctx) => {
|
|
| 12 |
"https://dl.gemlelispe.workers.dev/https%3A%2F%2Fbcdnxw.hakunaymatata.com%2Fbt%2F7e1c2ff4f2a619c16f40825883eebe6e.mp4%3Fsign%3D288c2a2346ad3cd3c22dcc70e483ca7f%26t%3D1773678165?n=Vini%20Jr.%20(2025)"
|
| 13 |
);
|
| 14 |
|
| 15 |
-
try {
|
| 16 |
-
const { address: ip } = await lookup(target.hostname);
|
| 17 |
-
|
| 18 |
-
const options = {
|
| 19 |
-
hostname: ip,
|
| 20 |
-
port: 443,
|
| 21 |
-
path: "/",
|
| 22 |
-
method: "GET",
|
| 23 |
-
// CRITICAL: Tells the server which SSL certificate to use (SNI)
|
| 24 |
-
servername: target.hostname,
|
| 25 |
-
headers: {
|
| 26 |
-
// CRITICAL: Tells the web server which site you want
|
| 27 |
-
Host: target.hostname,
|
| 28 |
-
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64)",
|
| 29 |
-
Accept: "*/*"
|
| 30 |
-
},
|
| 31 |
-
// Optional: helpful if the target has specific timeout issues
|
| 32 |
-
timeout: 5000
|
| 33 |
-
};
|
| 34 |
-
|
| 35 |
-
console.log({ options });
|
| 36 |
-
} catch (error: any) {
|
| 37 |
-
console.log(error);
|
| 38 |
-
}
|
| 39 |
-
|
| 40 |
const res = await fetch(target.href, {
|
| 41 |
headers: {
|
| 42 |
host: "dl.gemlelispe.workers.dev",
|
|
|
|
| 12 |
"https://dl.gemlelispe.workers.dev/https%3A%2F%2Fbcdnxw.hakunaymatata.com%2Fbt%2F7e1c2ff4f2a619c16f40825883eebe6e.mp4%3Fsign%3D288c2a2346ad3cd3c22dcc70e483ca7f%26t%3D1773678165?n=Vini%20Jr.%20(2025)"
|
| 13 |
);
|
| 14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
const res = await fetch(target.href, {
|
| 16 |
headers: {
|
| 17 |
host: "dl.gemlelispe.workers.dev",
|