43 - Pentesting WHOIS

htARTE(HackTricks AWS Red Team Expert) からAWSハッキングをゼロからヒーローまで学ぶ

HackTricks をサポートする他の方法:

Try Hard Security Group


基本情報

WHOIS プロトコルは、特定のデータベースを介して さまざまなインターネットリソースの登録者や保有者について問い合わせる 標準的な方法として機能します。これらのリソースには、ドメイン名、IPアドレスのブロック、自律システムなどが含まれます。これら以外にも、プロトコルはより広範囲の情報にアクセスするために利用されます。

デフォルトポート: 43

PORT   STATE  SERVICE
43/tcp open   whois?

列挙

ドメインに関するwhoisサービスの持つすべての情報を取得します:

whois -h <HOST> -p <PORT> "domain.tld"
echo "domain.ltd" | nc -vn <HOST> <PORT>

注意:時々WHOISサービスに情報をリクエストすると、使用されているデータベースがレスポンスに表示されることがあります:

また、WHOISサービスは常に情報を保存および抽出するためにデータベースを使用する必要があります。したがって、ユーザーが提供した情報を使用してデータベースをクエリする際に、可能なSQLInjectionが存在する可能性があります。たとえば、whois -h 10.10.10.155 -p 43 "a') or 1=1#"を実行することで、データベースに保存されているすべての情報抽出できるかもしれません。

Shodan

  • port:43 whois

Try Hard Security Group

HackTricks Automatic Commands

Protocol_Name: WHOIS    #Protocol Abbreviation if there is one.
Port_Number:  43     #Comma separated if there is more than one.
Protocol_Description: WHOIS         #Protocol Abbreviation Spelled out

Entry_1:
Name: Notes
Description: Notes for WHOIS
Note: |
The WHOIS protocol serves as a standard method for inquiring about the registrants or holders of various Internet resources through specific databases. These resources encompass domain names, blocks of IP addresses, and autonomous systems, among others. Beyond these, the protocol finds application in accessing a broader spectrum of information.


https://book.hacktricks.xyz/pentesting/pentesting-smtp

Entry_2:
Name: Banner Grab
Description: Grab WHOIS Banner
Command: whois -h {IP} -p 43 {Domain_Name} && echo {Domain_Name} | nc -vn {IP} 43
AWSハッキングをゼロからヒーローまで学ぶ htARTE(HackTricks AWS Red Team Expert)

HackTricksをサポートする他の方法:

Last updated