Flipper/Applications/Custom (UL, RM)/RogueMaster/Scripts/BadUSB_Win_RogueMasterHome.js
2024-08-06 22:51:02 -04:00

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");
}