diff --git a/src/main/java/com/loafle/overflow/crawler/wmi/WMICrawlerWindows.java b/src/main/java/com/loafle/overflow/crawler/wmi/WMICrawlerWindows.java index 28f09fc..ff3e61c 100644 --- a/src/main/java/com/loafle/overflow/crawler/wmi/WMICrawlerWindows.java +++ b/src/main/java/com/loafle/overflow/crawler/wmi/WMICrawlerWindows.java @@ -39,7 +39,7 @@ public class WMICrawlerWindows extends WMICrawlerOS { query = cItem.getQueryInfo().getQuery(); - wmiconnect = connectServer(config); + wmiconnect = connectServer(config, cItem); Variant vQuery = new Variant(query); @@ -248,11 +248,11 @@ public class WMICrawlerWindows extends WMICrawlerOS { return retInt; } - protected ActiveXComponent connectServer(Config config) { + protected ActiveXComponent connectServer(Config config, Item item) { String id = (String)config.getTarget().getAuth().get("id"); String pw = (String)config.getTarget().getAuth().get("pw"); - String nameSpace = ""; + String nameSpace = item.getQueryInfo().getExtend().get("nameSpace"); // String query = (String)config.get.get("query"); String ip = config.getTarget().getConnection().getIp();