help コマンドでコアコマンドを探る
このステップでは、Metasploit Console を起動し、helpコマンドを使用して利用可能なコマンドを探索します。helpコマンドは、特定のコマンドの機能や利用可能なコマンドがわからない場合に最も役立つリソースです。
まず、Metasploit Console を起動しましょう。起動バナーをスキップしてよりクリーンなインターフェースにするために、-q (quiet) フラグを使用します。
ターミナルで以下のコマンドを実行します。
msfconsole -q
コマンドプロンプトが msf > に変わったことに気づくでしょう。これは、現在 Metasploit Console 内にいることを示しています。
次に、helpコマンドを使用して、利用可能なすべてのコマンドのリストを表示します。
help
ナビゲーションを容易にするためにカテゴリ分けされた、長いコマンドリストが表示されます。
Core Commands
=============
Command Description
------- -----------
? Help menu
banner Display an awesome metasploit banner
cd Change the current working directory
color Toggle color output
connect Communicate with a host
...
Module Commands
===============
Command Description
------- -----------
advanced Displays advanced options for a module
back Move back from the current context
info Displays information about a module
...
また、特定のコマンドの詳細なヘルプを取得することもできます。例えば、searchコマンドについて詳しく知るには、help searchと入力します。
help search
これにより、searchコマンドの構文とオプションが表示されます。
Usage: search [options] <keywords>
Search for modules, plugins, and other framework objects.
OPTIONS:
-h, --help Help banner.
-o <file>, --output <file> Send output to a file in csv format.
-S <string>, --search <string> Search string for row filtering.
-t <type>, --type <type> The type of module to search for (exploit, payload, auxiliary, etc)
...
次のステップに進む前に、helpを使って他のコマンドも自由に探索してください。