Skip to content

Commit

Permalink
Add debug tool to mount drive.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamisonderek committed Oct 21, 2024
1 parent d929b41 commit b907dbf
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions js/badusb/mount.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
let usbdisk = require("usbdisk");

let exfilCapacityMb = 4; // Reserve space for our image (payloads and results).
let image = __dirname + "/Demo_" + exfilCapacityMb.toString() + "MB.img";

usbdisk.start(image);

let i = 0;
while (true) {
delay(1000);
print(i++);
}

0 comments on commit b907dbf

Please sign in to comment.