Skip to main content

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")

Metadata

Release files for snek-sploit 0.8.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for snek-sploit 0.8.6
File Size Uploaded Provenance
snek_sploit-0.8.6.tar.gz 21.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for snek-sploit 0.8.6
File Interpreter ABI Platform
snek_sploit-0.8.6-py3-none-any.whl Python 3 none any Details

Total release size: 50.6 kB

Release files / snek_sploit-0.8.6.tar.gz

Download URL snek_sploit-0.8.6.tar.gz
Size 21.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1261c87e2286ddab05fa0fc647d94bd7714df8d22e39d82a1eb5fa1f90653076
BLAKE2b-256 checksum
How to use checksums
7cdcdf60edbfaa34d8bb96cf733beb5087b0ed91231cfb2c8a579b1e3687cd86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.1 CPython/3.12.1 Linux/6.8.0-1021-azure

Release files / snek_sploit-0.8.6-py3-none-any.whl

Download URL snek_sploit-0.8.6-py3-none-any.whl
Size 29.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
27923a7ddae5e193f176bbc41613f29f4407905cac51021793634e3d0adaddd4
BLAKE2b-256 checksum
How to use checksums
c9a6f3a716cb5462fdd5057d5289f5060516f839d7f4d95117d911cb6fe038a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.1 CPython/3.12.1 Linux/6.8.0-1021-azure

Security for snek-sploit 0.8.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page