{"id":24587887,"url":"https://github.com/parrothacker1/rust-metasploit","last_synced_at":"2025-04-28T17:44:17.114Z","repository":{"id":57665741,"uuid":"381795815","full_name":"parrothacker1/rust-metasploit","owner":"parrothacker1","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-18T05:57:09.000Z","size":351447,"stargazers_count":13,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T08:41:27.641Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/parrothacker1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-30T18:19:12.000Z","updated_at":"2024-09-12T11:42:33.000Z","dependencies_parsed_at":"2022-09-14T13:01:40.698Z","dependency_job_id":null,"html_url":"https://github.com/parrothacker1/rust-metasploit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parrothacker1%2Frust-metasploit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parrothacker1%2Frust-metasploit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parrothacker1%2Frust-metasploit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parrothacker1%2Frust-metasploit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parrothacker1","download_url":"https://codeload.github.com/parrothacker1/rust-metasploit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251357737,"owners_count":21576760,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-24T07:13:28.911Z","updated_at":"2025-04-28T17:44:17.095Z","avatar_url":"https://github.com/parrothacker1.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rs-metasploit\n[![Metasploit Rust](https://github.com/parrothacker1/rust-metasploit/actions/workflows/rust.yml/badge.svg)](https://github.com/parrothacker1/rust-metasploit/actions/workflows/rust.yml)\n[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)\n![crates.io](https://img.shields.io/badge/crates-1.1.0-blue)\n\n## Overview\nRust Metasploit is a rust library used to make communication with Metasploit RPC Server.This module uses [reqwest](https://docs.rs/reqwest/0.11.4/reqwest/) and [rmp](https://docs.rs/rmp/0.8.10/rmp/) dependencies for communication.\n\n## Example \nLet's have a glance at a simple code \n```rust\nuse metasploit::client::Client;\nlet client=Client::new(\"127.0.0.1\",55552,\"user\",\"password\",true);\nprint(client.gettoken());\n```\n\n## Installation\nIn your Cargo.toml add the following\n```toml\n[dependencies]\nrust-metasploit=\"1.2.0\"\n```\n\n## How To Use\n### How to setup metasploit RPC Server\nMetasploit RPC can be setup two ways \n#### With msfrpcd\n```\nmsfrpcd -U \u003cusername\u003e -P \u003cpassword\u003e -p \u003cport\u003e -a \u003cIP Address\u003e\n```\nFor example\n```\nmsfrpcd -U user -P password -p 55552 -a 127.0.0.1\n```\n#### With msfconsole\n```\nmsf6 \u003e load msgrpc Pass=\u003cpassword\u003e Username=\u003cusername\u003e\n```\nFor example\n```\nmsf6 \u003e load msgrpc Pass=password Username=user\n```\nWhen you start metasploit RPC Server from console,the ssl value should be false.Like,\n```rust\nlet client=Client::new(\"127.0.0.1\",55552,\"user\",\"password\",false);\n```\n### How to use the library\nAll details about the library have been written in [docs.rs](https://docs.rs/rust-metasploit/1.2.0/metasploit/)\n\nP.S: The latest update of the library do not have any fixed data types for the functions.So it is recommended to read the documentation before using the library.For more information regarding the datatypes read the [metasploit](https://docs.metasploit.com/api/Msf/RPC/RPC_Base.html) documentation\n## v1.0.1\n* Removed unwanted parameters of modules\n* Changed String parameters to str\n\n# v1.1.0\n* Added async functions.\n\n# v1.2.0\n* Added both async and blocking feature\n* Changed data types from fixed to custom type.\n\n## Thanks To\n* [reqwest](https://docs.rs/reqwest/0.11.6/reqwest/)\n* [serde](https://docs.rs/serde/1.0.130/serde/)\n* [rmp](https://docs.rs/rmp/0.8.10/rmp/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparrothacker1%2Frust-metasploit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparrothacker1%2Frust-metasploit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparrothacker1%2Frust-metasploit/lists"}