0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Zgrab2のインストール方法と簡単な使い方

Last updated at Posted at 2020-10-09

1. Zgrab2とは

バナー収集を行うためのツールです。

2. 環境

Virtual Box 6.1
CentOS Linux release 7.6.1810(最小構成)

3. 入れ方

基本的には以下を見ながら進めていきます。
https://github.com/zmap/zgrab

Goを入れる

今回はepelリポジトリをインストールして、yumでインストールします。

# epelリポジトリのインストール
yum install epel-release
# golangのインストール
yum install -y golang

これでGoインストールは完了。
念のためバージョン確認。

# Goのversionの確認
go version go1.15.2 linux/amd64

$GOPATHの設定

今回はホームディレクトリ直下にする。(どこでもいい)

zgrab2のインストール

cd $GOPATH
go get github.com/zmap/zgrab2
cd $GOPATH/src/github.com/zmap/zgrab2
make

make時にfatal: git fetch-pack: expected shallow listエラーが出た。
が、再度makeしたらすんなり完了(謎)

4. 使い方

簡単な使い方は以下の通り

# 2222/ssh に対するバナー収集
echo 'IPaddress' | ./zgrab2 ssh -p 2222

5. おわり

特につまるところはないかもしれませんが、zgrab2の入れ方を書きました。
もっといろいろな使い方ができます。気が向いたら追々まとめていきます。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?