forcelockscreen.cna 587 B

12345678910111213141516171819202122232425
  1. # author REDMED-X
  2. beacon_command_register(
  3. "forcelockscreen", "Force the lock screen of the current user session.",
  4. "INFO:\nForce the lock screen of the current user session.\n\n" .
  5. "USAGE:\nforcelockscreen\n\n");
  6. alias forcelockscreen {
  7. $bid = $1;
  8. # Read in the right BOF file
  9. $handle = openf(script_resource("forcelockscreen.o"));
  10. $data = readb($handle, -1);
  11. closef($handle);
  12. $arg_data = bof_pack($bid);
  13. blog($bid, "Tasked to lock the current user's screen..");
  14. beacon_inline_execute($bid, $data, "go", $arg_data);
  15. }