enumwsc.cna 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. # author REDMED-X
  2. beacon_command_register(
  3. "enumwsc", "List what security products are registered in Windows Security Center.\n",
  4. "INFO:\nGet a list of security products (antivirus, firewall, antispyware) that are registered in Windows Security Center. This only works if WSC is running (typically only on Windows clients).\n\n" .
  5. "ARGUMENTS:\n[option]: specify one of the following options to request related security information from WSC: av (antivirus), fw (firewall), as (antispyware).\n\n" .
  6. "USAGE:\nenumwsc <option>\n\n" .
  7. "EXAMPLES:\nenumwsc av\n\n");
  8. alias enumwsc {
  9. $bid = $1;
  10. $option = $2;
  11. # Verify user input
  12. if ($option eq "") {
  13. berror($bid, "Please specify one of the following options: av | fw | as\n");
  14. return;
  15. }
  16. # Read in the right BOF file
  17. $handle = openf(script_resource("enumwsc.o"));
  18. $data = readb($handle, -1);
  19. closef($handle);
  20. # Pack our arguments
  21. $arg_data = bof_pack($bid, "z", $option);
  22. blog($bid, "Tasked to enumerate security products registered in Windows Security Center..");
  23. beacon_inline_execute($bid, $data, "go", $arg_data);
  24. }