mirror of
https://github.com/UberGuidoZ/Flipper.git
synced 2024-12-24 15:30:11 +00:00
21 lines
451 B
JavaScript
21 lines
451 B
JavaScript
let badusb = require("badusb");
|
|
let notify = require("notification");
|
|
badusb.setup({ vid: 0xAAAA, pid: 0xBBBB, mfr_name: "Flipper", prod_name: "Zero" });
|
|
|
|
print("Waiting for connection");
|
|
while (!badusb.isConnected()) {
|
|
delay(1000);
|
|
}
|
|
|
|
function OpenSiteWin()
|
|
{
|
|
badusb.press("GUI", "r");
|
|
delay(100);
|
|
badusb.println("https://rogue-master.net", 1);
|
|
delay(100);
|
|
}
|
|
if (badusb.isConnected())
|
|
{
|
|
OpenSiteWin();
|
|
print("Executed");
|
|
} |