ysrc / yulong-hids-archived

[archived] 一款实验性质的主机入侵检测系统
Other
2.16k stars 581 forks source link

安装agent一直报错 #42

Open f4ckfree opened 6 years ago

f4ckfree commented 6 years ago

在kali上安装 root@kali:/tmp# ./daemon -install -netloc 192.168.84.161:443 2018/05/14 15:40:37 Download Agent 2018/05/14 15:40:46 Install agent error: Agent Download Error root@kali:/tmp# wget -O /tmp/daemon https://192.168.84.161/json/download?type=daemon\&system=linux\&platform=64\&action=download;chmod +x /tmp/daemon;/tmp/daemon -install -netloc 192.168.84.161:443 --2018-05-14 16:49:05-- https://192.168.84.161/json/download?type=daemon&system=linux&platform=64&action=download Connecting to 192.168.84.161:443... failed: No route to host. 后来我在本机安装 [root@localhost tmp]# ./daemon -install -netloc 127.0.0.1:443 2018/05/14 00:45:28 Download Agent 2018/05/14 00:45:29 Agent file MD5: 087c9064c2040b5c74642d4c79e7f94f 2018/05/14 00:46:29 Agent is broken, retry the downloader again 2018/05/14 00:46:29 Agent file MD5: 087c9064c2040b5c74642d4c79e7f94f 2018/05/14 00:47:29 Agent is broken, retry the downloader again 2018/05/14 00:47:29 Agent file MD5: 087c9064c2040b5c74642d4c79e7f94f [root@localhost tmp]# /tmp/daemon -install -netloc 127.0.0.1:443 2018/05/14 00:47:49 Download Agent 2018/05/14 00:47:49 Agent file MD5: 087c9064c2040b5c74642d4c79e7f94f 2018/05/14 00:48:49 Agent is broken, retry the downloader again 2018/05/14 00:48:49 Agent file MD5: 087c9064c2040b5c74642d4c79e7f94f 2018/05/14 00:49:49 Agent is broken, retry the downloader again 2018/05/14 00:49:49 Agent file MD5: 087c9064c2040b5c74642d4c79e7f94f 2018/05/14 00:50:49 Agent is broken, retry the downloader again 2018/05/14 00:50:49 Install agent error: Agent Download Error

找了好久问题还是找不到,服务器是没问题的,能打开啊 服务器能够正常访问,后面显示了这个 2018/05/13 18:37:37 [server.go:2921] [HTTP] http: TLS handshake error from 192.168.84.1:60451: read tcp 192.168.84.161:443->192.168.84.1:60451: read: connection reset by peer 2018/05/13 18:39:38 [h2_bundle.go:4294] [HTTP] http2: server: error reading preface from client 192.168.84.135:36746: remote error: tls: unknown certificate authority

neargle commented 6 years ago

wget https://192.168.84.161/json/download?type=agent\&system=linux\&platform=64\&action=download 看一下agent的md5多少

f4ckfree commented 6 years ago

root@kali:/tmp# wget https://192.168.84.161/json/download?type=agent\&system=linux\&platform=64\&action=download --2018-05-16 09:27:35-- https://192.168.84.161/json/download?type=agent&system=linux&platform=64&action=download Connecting to 192.168.84.161:443... connected. ERROR: The certificate of ‘192.168.84.161’ is not trusted. ERROR: The certificate of ‘192.168.84.161’ hasn't got a known issuer. ERROR: The certificate of ‘192.168.84.161’ was signed using an insecure algorithm. The certificate's owner does not match hostname ‘192.168.84.161’ root@kali:/tmp# wget http://192.168.84.161/json/download?type=agent\&system=linux\&platform=64\&action=download --2018-05-16 09:32:04-- http://192.168.84.161/json/download?type=agent&system=linux&platform=64&action=download Connecting to 192.168.84.161:80... failed: No route to host.

执行的时候显示证书不被信任,所以我才下载下来安装的,md5应该就是上面的那个吧 087c9064c2040b5c74642d4c79e7f94f

cnlzxin commented 6 years ago

能把报错日志/命令放到代码块里面吗

wangx666 commented 5 years ago

在window上安装agent时一直包这个错误,这是什么原因?

------------报错信息:-----------

联机 000000 ... 582e00 CertUtil: -URLCache 命令成功完成。 2019/04/24 16:01:53 Download Agent 2019/04/24 16:01:53 Install agent error: Agent Download Error

------------日志信息:----------- [login.go:30] User Login : yulong 2019/04/24 15:55:02 [I] [base.go:91] Url: / 2019/04/24 15:55:02 [I] [base.go:91] Url: /json/statistics?type=topmsg 2019/04/24 15:55:02 [I] [base.go:91] Url: /json/statistics?type=total 2019/04/24 15:55:02 [I] [base.go:91] Url: /json/statistics?type=pie 2019/04/24 15:55:02 [I] [base.go:91] Url: /json/statistics?type=time 2019/04/24 15:55:02 [I] [base.go:91] Url: /json/statistics?type=line 2019/04/24 15:55:07 [I] [base.go:91] Url: /json/client?page=1&q=&limit=24

wangx666 commented 5 years ago

所以说这个问题最终解决了么? CertUtil: -URLCache 命令成功完成。 2019/04/24 20:47:44 Download Agent 2019/04/24 20:47:44 Agent file MD5: d41d8cd98f00b204e9800998ecf8427e 2019/04/24 20:47:44 Agent is broken, retry the downloader again 2019/04/24 20:47:44 Agent file MD5: d41d8cd98f00b204e9800998ecf8427e 2019/04/24 20:47:44 Agent is broken, retry the downloader again 2019/04/24 20:47:44 Agent file MD5: d41d8cd98f00b204e9800998ecf8427e 2019/04/24 20:47:44 Agent is broken, retry the downloader again 2019/04/24 20:47:44 Install agent error: Agent Download Error