Download the PHP package krzychu12350/phpmetasploit without Composer
On this page you can find all versions of the php package krzychu12350/phpmetasploit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download krzychu12350/phpmetasploit
More information about krzychu12350/phpmetasploit
Files in krzychu12350/phpmetasploit
Package phpmetasploit
Short Description This plugin allows to interact with Metasploit framework either through msfrpcd deamon or the msgrpc plugin running in msfconsole.
License MIT
Informations about the package phpmetasploit
Php Metasploit Library
The PHP library whose code is automatically generated based on the Metasploit framework documentation.
Table of Contents
- Documentation of standard methods
- Class diagram
- Prerequisites
- Installing and running the library
- Run unit tests
- License
Documentation of standard methods
Class diagram
Library class structure
Prerequisites
- PHP 8.1.2 minimum
- Composer 2.5.5 minimum
Installing and running the library
1. Metasploit RPC server initialization
- via msgrpc plugin
To start the server through the msgrpc plugin, execute the following command in the Metasploit framework default console:
The command has the following parameters:
- ServerHost - hostname on which the server is listening,
- ServerPort - port number on which the server is listening,
- User - user name that allows access to the server,
- Pass – server access password. It is required that the password is enclosed in quotation marks,
- SSL – enable or place SSL on the RPC socket. Select true enable SSL and false disable SSL.
An example command might be as follows:
- via msfrpcd demon
To start the RPC server through the msfrpcd daemon, launch the system terminal and then execute the following command:
where
The above command has the following parameters:
- -a
– name of the host on which the server is listening, - -p
– port number on which the server is listening, - -U
– username that allows access to the server, - -P
– access password to the server. The password must be enclosed in single quotes, - -S – enable or disable SSL on the RPC socket. True enables SSL and false disables SSL,
- -f – adding this parameter starts the msfrpcd daemon in the background.
In each of the parameters,
An example command might be as follows:
2. Library installation
Before installation, make sure that the Composer package manager is installed in the operating system.
Then run the following command to install the library:
During the library installation process, allow the library to dynamically generate the code by pressing the y key and then the key confirming the selection of this option.
3. Launching the library
To start using the library, initialize the MsfRpcClient class object, and then call the msfAuth method to obtain the authentication token. As a result, you get a token that allow you to execute all functions available in the library.
Run unit tests
To run unit tests launch the system terminal and go to root directory of the library and type in following command:
License
All Rights Reserved
Copyright (c) 2022 Krzysztof Karaś
Created by Krzysztof Karaś
All versions of phpmetasploit with dependencies
ext-curl Version *
lib-curl-zlib Version ^1.2
curl/curl Version ^2.3
rybakit/msgpack Version ^0.9.1
nette/php-generator Version ^4.0
fabpot/goutte Version v4.0.2
composer-plugin-api Version ^2.3