From faef0021ac937bc5b6e6f6bfba28fa8c18a8e752 Mon Sep 17 00:00:00 2001 From: snoop Date: Wed, 26 Apr 2017 17:33:51 +0900 Subject: [PATCH] added namespace --- .../com/loafle/overflow/crawler/wmi/WMICrawlerWindows.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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();