Flipper/Applications/Custom (UL, RM, XFW)/RogueMaster/Scripts/BadUSB_Win_RogueMasterHome.js

21 lines
451 B
JavaScript
Raw Normal View History

2024-03-25 01:35:38 +00:00
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");
}