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
snek_sploit-0.8.4.tar.gz
(22.1 kB
view details)
Built Distribution
File details
Details for the file snek_sploit-0.8.4.tar.gz
.
File metadata
- Download URL: snek_sploit-0.8.4.tar.gz
- Upload date:
- Size: 22.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.1 Linux/6.5.0-1023-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b8d0f61bd3f386481a5833bcbca7b2da4db57a4eab779b0f32ec08a11b990ce |
|
MD5 | ea9554f63bf85e0137c0bd05f08d3719 |
|
BLAKE2b-256 | 5b3f2081fc8b8088aabcceaa4d06d119fc965e0142f2be8e69715d754d8ea6f3 |
File details
Details for the file snek_sploit-0.8.4-py3-none-any.whl
.
File metadata
- Download URL: snek_sploit-0.8.4-py3-none-any.whl
- Upload date:
- Size: 29.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.1 Linux/6.5.0-1023-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a3543ea9f3d41bbfb5916d9dea6d5b727e8a3ff3b398f9f7a316089a6ce0b4e |
|
MD5 | be5f88140c925449cbf30e0c9d552764 |
|
BLAKE2b-256 | d8f288db3dd20d703fdfb4412c06ff82ff865b7977218c4c15b5c1b83112394e |