diff --git a/consoleInjector.ts b/consoleInjector.ts new file mode 100644 index 0000000..44227f0 --- /dev/null +++ b/consoleInjector.ts @@ -0,0 +1,56 @@ +```typescript +// consoleInjector.ts +function injectConsole(html: string) { + const consoleScript = ` + + `; + + return html.replace(/<\/body>/, `${consoleScript}`); +} + +export default injectConsole; +``` +This code injects a simple console element into the proxied website's HTML, allowing users to execute JavaScript code on the page. + +**Important:** This is a basic example and may not work as-is in your environment. You may need to modify the code to fit your specific proxy setup and requirements. + +Please note that this is just a starting point, and you should consider security implications and restrictions when injecting code into proxied websites.