Skip to content
KitploitKITPLOIT
ツールブログ
提出
ツールブログ
提出

ハッキング、侵入テスト、サイバーセキュリティツールをあなたのセキュリティアーセナルに!

Kitploitはハッキング、サイバーセキュリティ、ペネトレーションテストのツールディレクトリです。最新のプロジェクトアップデートを見つけて、脆弱性の発見、システム分析、テストの自動化、セキュリティの強化を行いましょう。

··フィード·お問い合わせ·プライバシー·© 2026 Kitploit

ツールディレクトリ

カテゴリ

すべてのカテゴリを見る
Loading categories
whatportis — Whatportis : IANAのポート一覧を探索する | Kitploit
ツール/GitHubGitHub/ncrocfer/whatportis
汎用ユーティリティネットワークマッピング情報収集
GitHubncrocfer/whatportis

whatportis

Whatportis : IANAのポート一覧を探索する

リポジトリを見る
69067343年前Kitploit レビュー済み

人気

すべて見る →

コミュニティで最も使われているツールを見つけましょう。

すべてのツールを探索

ツールコレクションを閲覧

すべてのツールを見る →
共有

whatportis

.. image:: https://github.com/opencve/opencve/workflows/Tests/badge.svg :target: https://github.com/ncrocfer/whatportis/actions/workflows/tests.yml

.. image:: https://badge.fury.io/py/whatportis.svg :target: https://pypi.python.org/pypi/whatportis/

.. image:: https://img.shields.io/badge/python-3.6%2B-blue.svg :target: https://pypi.python.org/pypi/whatportis/

.. image:: https://img.shields.io/github/license/ncrocfer/whatportis.svg :target: https://github.com/ncrocfer/whatportis/blob/master/LICENSE.txt

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg :target: https://github.com/python/black

サービスのデフォルトポート番号を検索することは一般的なタスクです。一部のポートは:code:/etc/servicesファイルで確認できますが、リストは完全ではなく、この解決策は移植性がありません。

Whatportisは、Iana.org <http://www.iana.org/assignments/port-numbers>_ データベースをダウンロードし、公式なポートリストを探索するためのシンプルなツールです。

Usage

Whatportisを使用すると、サービスに関連付けられたポートを見つけることができます:

.. code-block:: shell

root@kitploit:~
$ whatportis redis
+-------+------+----------+---------------------------------------+
| Name  | Port | Protocol | Description                           |
+-------+------+----------+---------------------------------------+
| redis | 6379 |   tcp    | An advanced key-value cache and store |
+-------+------+----------+---------------------------------------+

または、逆にポート番号に関連するサービスを見つけることもできます:

.. code-block:: shell

root@kitploit:~
$ whatportis 5432
+------------+------+----------+---------------------+
| Name       | Port | Protocol | Description         |
+------------+------+----------+---------------------+
| postgresql | 5432 | tcp, udp | PostgreSQL Database |
+------------+------+----------+---------------------+

また、正確な名前がわからなくても、:code:--likeオプションを追加してパターンを検索できます:

.. code-block:: shell

root@kitploit:~
$ whatportis mysql --like
+----------------+-------+----------+-----------------------------------+
| Name           |  Port | Protocol | Description                       |
+----------------+-------+----------+-----------------------------------+
| mysql-cluster  |  1186 | tcp, udp | MySQL Cluster Manager             |
| mysql-cm-agent |  1862 | tcp, udp | MySQL Cluster Manager Agent       |
| mysql-im       |  2273 | tcp, udp | MySQL Instance Manager            |
| mysql          |  3306 | tcp, udp | MySQL                             |
| mysql-proxy    |  6446 | tcp, udp | MySQL Proxy                       |
| mysqlx         | 33060 |   tcp    | MySQL Database Extended Interface |
+----------------+-------+----------+-----------------------------------+

Installation

.. code-block:: shell

root@kitploit:~
$ pip install whatportis

Database Sync

WhatportisはローカルのJSONファイル(:code:~/.whatportis_db.json)を使用してポートリストを探索します。初回使用時に自動的に作成され、その後:code:--updateオプションを使用して同期できます:

.. code-block:: shell

root@kitploit:~
$ whatportis --update
Previous database will be updated, do you want to continue? [y/N]: y
Downloading https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.csv...
Populating database...
14145 ports imported.

JSON output

:code:--jsonオプションを使用して、結果をJSONで表示できます:

.. code-block:: shell

root@kitploit:~
$ whatportis 5432 --json
[
    {
        "name": "postgresql",
        "port": "5432",
        "protocol": "tcp, udp",
        "description": "PostgreSQL Database"
    }
]

REST API

WhatportisはRESTful APIサーバーとしても起動できます。この機能はデフォルトでは有効になっていないため、追加パッケージをインストールする必要があります:

.. code-block:: shell

root@kitploit:~
$ pip install whatportis[server]
$ whatportis --server localhost 8080
 * Serving Flask app "whatportis.server" (lazy loading)
 * Environment: prod
 * Debug mode: off
 * Running on http://127.0.0.1:8080/ (Press CTRL+C to quit)

エンドポイントは:code:/ports(全リスト。長くなる可能性あり)と:code:/ports/<search>(特定のポートを検索)です:

.. code-block:: shell

root@kitploit:~
$ curl http://127.0.0.1:8080/ports/3306
{"ports":[{"description":"MySQL","name":"mysql","port":"3306","protocol":"tcp, udp"}]}

$ curl http://localhost:8080/ports/redis
{"ports":[{"description":"An advanced key-value cache and store","name":"redis","port":"6379","protocol":"tcp"}]}

:code:?likeパラメーターを使用してパターンを検索することもできます。

ツールをダウンロード