help 명령어로 핵심 명령어 탐색하기
이 단계에서는 Metasploit 콘솔을 실행하고 help 명령어를 사용하여 사용 가능한 명령어들을 탐색할 것입니다. help 명령어는 특정 명령어가 무엇을 하는지 또는 어떤 명령어들이 사용 가능한지 확신이 서지 않을 때 가장 유용한 자료입니다.
먼저, Metasploit 콘솔을 시작해 보겠습니다. 더 깔끔한 인터페이스를 위해 시작 배너를 건너뛰기 위해 -q (quiet) 플래그를 사용하겠습니다.
터미널에서 다음 명령어를 실행하세요:
msfconsole -q
명령 프롬프트가 msf >로 변경된 것을 확인할 수 있으며, 이는 현재 Metasploit 콘솔 내부에 있음을 나타냅니다.
이제 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를 사용하여 다른 명령어들을 자유롭게 탐색해 보세요.