enumsecproducts.cna 1011 B

1234567891011121314151617181920212223242526
  1. # author REDMED-X
  2. beacon_command_register(
  3. "enumsecproducts", "List security products running on the current- or remote host.",
  4. "INFO:\nGet a list of security products like AV/EDR that are running on the current- or remote host. This is done by comparing running processes against a hardcoded list of 130 security products.\n\n" .
  5. "ARGUMENTS:\n[hostname]: The FQDN or IP of the remote host OR leave empty for the current system.\n\n" .
  6. "USAGE:\nenumsecproducts <(optional) hostname>\n\n" .
  7. "EXAMPLES:\nenumsecproducts \nenumsecproducts WS01.example.local\n\n");
  8. alias enumsecproducts {
  9. $bid = $1;
  10. $remotehost = $2;
  11. # read in the right BOF file
  12. $handle = openf(script_resource("enumsecproducts.o"));
  13. $data = readb($handle, -1);
  14. closef($handle);
  15. # pack our arguments
  16. $arg_data = bof_pack($bid, "z", $remotehost);
  17. blog($bid, "Tasked to list running security products..");
  18. beacon_inline_execute($bid, $data, "go", $arg_data);
  19. }