Как установить программу shodan

Вообще, вы не должны включать секреты в образы Docker. Подробнее об этом см. в этом ответе.

Docker не поддерживает интерактивные сборки по веским причинам, как объясняется в этом вопросе .

Если вам действительно нужно это сделать, вы можете использовать docker commit следующим образом:

docker build -t thirsty_darwin_base /path/to/Dockerfile
docker run -it --name=thirsty_darwin_changes thirsty_darwin_base /bin/bash
# do interactive stuff in the shell, then exit
docker commit thirsty_darwin_changes thirsty_darwin

Теперь thirsty_darwin имеет ваши интерактивные изменения.

Обновление: Docker выпустил более полное управление секретами с момента написания этого ответа.

-5
13.04.2019, 14:34
2 ответа

Как указывает @ctl -alt -delor, у вас не установлено easy_install.

Ты должен сделать:

sudo apt-get install python-setuptools

А дальше уже можно бежать:

easy_install shodan

Альтернатива, которую я указал ранее в комментариях, также делает:

sudo apt-get install pip
pip install shodan
3
28.01.2020, 05:20

Shodan уже установлен в большинстве дистрибутивов Linux для проникновения и обеспечения безопасности, таких как Kali Linux, Parrot Os и BlackArch.

Чтобы проверить, есть ли у вас Shodan, просто введите Shodanна терминале.

и вы должны увидеть такой результат

Usage: shodan [OPTIONS] COMMAND [ARGS]...

Options:
  -h, --help  Show this message and exit.

Commands:
  alert       Manage the network alerts for your account
  convert     Convert the given input data file into a different format.
  count       Returns the number of results for a search
  data        Bulk data access to Shodan
  domain      View all available information for a domain
  download    Download search results and save them in a compressed JSON...
  honeyscore  Check whether the IP is a honeypot or not.
  host        View all available information for an IP address
  info        Shows general information about your account
  init        Initialize the Shodan command-line
  myip        Print your external IP address
  org         Manage your organization's access to Shodan
  parse       Extract information out of compressed JSON files.
  radar       Real-Time Map of some results as Shodan finds them.
  scan        Scan an IP/ netblock using Shodan.
  search      Search the Shodan database
  stats       Provide summary information about a search query
  stream      Stream data in real-time.
  version     Print version of this tool.
1
25.06.2020, 06:02

Теги

Похожие вопросы