繁体   English   中英

如何将 Shodan CLI 安装到 Google Cloud Shell?

[英]How to Install Shodan CLI into Google Cloud Shell?

我无法使用 Shodan CLI。

脚步:

我已尝试按照此处的步骤操作: Shodan CLI - 官方页面

即使通过运行:

easy_install shodan

我也尝试过:

pip install shodan

它确实安装了,但仍然无法正常工作,问题是我收到以下警告错误:

WARNING: The script shodan is installed in '/home/USER/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

我仍然无法使它工作。 甚至不去目录/home/USER/.local/bin

PD:

我什至尝试过:

apt-get install shodan

但是没有找到 package。

您需要通过键入以下命令将目录添加到PATH目录:

export PATH=$PATH:$HOME/.local/bin

或者

export PATH=$PATH:/home/USER/.local/bin

您还可以使用alias作为另一个选项:

alias shodan='./.local/bin/shodan'

通过键入以下内容检查是否列出了shodan的目录:

alias shodan

该目录应如下所示:

alias shodan='./.local/bin/shodan'

这些方法中的任何一种都成功地在我这边运行shodan

我使用以下链接作为参考:

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM