1.2 KiB
1.2 KiB
The Metasploit Remote Data service is a tool that allows you to host a web service to interact with Metasploit's various data models through a REST API.
Requirements
To use the remote data service you will need a PostgreSQL database running to serve as the backend. You can find more information on setting that up on the Metasploit help page.
Starting Up
To start up the web server, navigate to the root directory of metasploit-framework and run the
following command: ./msfdb_ws
Command line options:
-i,--interfaceSpecify the interface for the web service to listen on. Default: 0.0.0.0-p,--portSpecify the port for the web service to listen on. Default: 8080-s,--sslEnable SSL on the web server.-c,--cert /path/to/cert_filePath to SSL certificate file. Required if-sis set.-k,--key /path/to/key_filePath to SSL Key file.-h,--helpDisplay the help information.
Accessing the API
The API can be accessed by utilizing your preferred HTTP client of choice. You can find more information on the data models and various endpoints by connecting to the following URL:
http://<interface>:<port>/api/v1/api-docs