赞
踩
在使用go get包安装zgrab时,遇到了下面的问题:
在linux终端(或powershell中)输入命令
github.com/zmap/zgrab2
返回以下提示:
package golang.org/x/crypto/ssh/terminal: unrecognized import path "golang.org/x/crypto/ssh/terminal" (https fetch: Get https://golang.org/x/crypto/ssh/terminal?go-get=1: dial tcp 216.239.37.1:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.)
问题造成的原因很简单:被墙了,甚至ss都翻不过去(包括golang.org也总是上不去,不知道为什么) 。
解决方法:在github上搜索对应的包,自行拷贝到GOPATH的src目录下。
注意路径如下修改:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。