systeminfo.cna 551 B

123456789101112131415161718192021222324
  1. # author REDMED-X
  2. beacon_command_register(
  3. "systeminfo", "Enumerate system information.",
  4. "INFO:\nEnumerate system information via WMI.\n\n" .
  5. "USAGE:\nsysteminfo\n\n");
  6. alias systeminfo {
  7. $bid = $1;
  8. # Read in the right BOF file
  9. $handle = openf(script_resource("systeminfo.o"));
  10. $data = readb($handle, -1);
  11. closef($handle);
  12. $arg_data = bof_pack($bid);
  13. blog($bid, "Tasked to connect to ROOT\\CIMV2 to fetch system information..");
  14. beacon_inline_execute($bid, $data, "go", $arg_data);
  15. }