Python RPC client for Metasploit Framework
Project description
snek-sploit
Python typed RPC client for Metasploit Framework.
Installation
pip install snek-sploit
Usage
from snek_sploit import MetasploitClient
if __name__ == '__main__':
client = MetasploitClient("msf", "root")
print(client.core.rpc.version())
Examples can be found in the examples directory.
Starting MSF RPC server
In Metasploit console:
load msgrpc ServerHost=127.0.0.1 ServerPort=55553 User=msf Pass='root' SSL=true
In shell:
msfrpcd -U msf -P root
With Docker:
docker run --tty --network host --detach sadparad1se/metasploit-framework:rpc
With Docker Compose:
git clone https://github.com/SadParad1se/snek-sploit.git
cd snek-sploit
docker compose up -d
You can find more information in the Metasploit Framework documentation.
Using the MSF RPC certificate
MSF RPC loads the SSL certificate by default from /root/.msf4/msf-ws-cert.pem (use the -c flag to choose a different location). If not, generate it as mentioned here.
To use it in the client, save it locally and pass the path:
from snek_sploit import MetasploitClient
MetasploitClient("msf", "root", certificate="/path/to/cert.pem")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file snek_sploit-0.8.6.tar.gz.
File metadata
- Download URL: snek_sploit-0.8.6.tar.gz
- Upload date:
- Size: 21.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.12.1 Linux/6.8.0-1021-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1261c87e2286ddab05fa0fc647d94bd7714df8d22e39d82a1eb5fa1f90653076
|
|
| MD5 |
cbf72ec1b21a8ca4eaae81b9af6872f7
|
|
| BLAKE2b-256 |
7cdcdf60edbfaa34d8bb96cf733beb5087b0ed91231cfb2c8a579b1e3687cd86
|
File details
Details for the file snek_sploit-0.8.6-py3-none-any.whl.
File metadata
- Download URL: snek_sploit-0.8.6-py3-none-any.whl
- Upload date:
- Size: 29.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.12.1 Linux/6.8.0-1021-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27923a7ddae5e193f176bbc41613f29f4407905cac51021793634e3d0adaddd4
|
|
| MD5 |
9f19a4a62f28f696aeef3cca5002ecaa
|
|
| BLAKE2b-256 |
c9a6f3a716cb5462fdd5057d5289f5060516f839d7f4d95117d911cb6fe038a5
|