v1.0.0
A desktop bridge for browser extensions that acts as a proxy and terminal command executor.
Attributes
Includes Deno configuration
Repository
Current version released
4 years ago
Versions
desktop-bridge
A bridge for browser extensions that will allow you to obtain data from other domains or execute PowerShell commands right from your browser.
Proxy
Example of the proxy feature that can be used to access other domains:
const response = await fetch('http:/localhost:4500/?url=http://example.com');
const text = await response.text();
console.log(text);
// <html>...</html>Commands
Example of the commands feature that can be used to execute PowerShell commands:
const response = await fetch('http://localhost:4500/', {
method: "POST",
body: `
Start-Process notepad.exe
echo "Notepad opened"
`,
});
const text = await response.text();
console.log(text);
// Notepad openedRunning
The command below will run the script with the necessary permissions:
deno run --allow-net --allow-write --allow-run main.ts