{"id":17168473,"url":"https://github.com/gcmurphy/metasploit_ex","last_synced_at":"2025-03-24T18:41:47.734Z","repository":{"id":141524723,"uuid":"182884771","full_name":"gcmurphy/metasploit_ex","owner":"gcmurphy","description":"Metasploit RPC support for the Elixir language. ","archived":false,"fork":false,"pushed_at":"2019-08-08T01:07:30.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-29T23:22:20.746Z","etag":null,"topics":["elixir","metasploit-framework","security-tools"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gcmurphy.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-22T23:45:09.000Z","updated_at":"2023-07-25T14:25:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"e262b836-5bfb-4c8d-b5f2-452b94ac1c44","html_url":"https://github.com/gcmurphy/metasploit_ex","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/gcmurphy%2Fmetasploit_ex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcmurphy%2Fmetasploit_ex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcmurphy%2Fmetasploit_ex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcmurphy%2Fmetasploit_ex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gcmurphy","download_url":"https://codeload.github.com/gcmurphy/metasploit_ex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245330162,"owners_count":20597724,"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":["elixir","metasploit-framework","security-tools"],"created_at":"2024-10-14T23:12:01.712Z","updated_at":"2025-03-24T18:41:47.710Z","avatar_url":"https://github.com/gcmurphy.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Metasploit\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fgcmurphy%2Fmetasploit_ex.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fgcmurphy%2Fmetasploit_ex?ref=badge_shield)\n\n\nA Elixir access the Metasploit framework. Allows a Metsploit session to\nbe controlled via Elixir over the msgprc protocol.\n\n## Usage\n\nWith the Metasploit RPC daemon started:\n\n`msfrpcd -U msf -P correct_horse_battery_staple -a 127.0.0.1  -p 55553`\n\nThe RPC framework can be used directly to issue RPC calls:\n\n```elixir\nalias Metasploit.RPC\nclient = RPC.client(\"msf\", \"correct_horse_battery_staple\", endpoint: \"https://127.0.0.1:55553\")\nclient |\u003e RPC.call(\"core.version\")\n```\n\n\nOr alternatively you can run a series of commands as you would via the\nconsole:\n\n```elixir\nalias Metasploit.Console\n\n# create a console session\n{:ok, pid} = Console.start_link({\"msf\", \"correct_horse_battery_staple\", endpoint: \"https://127.0.0.1:55553\"})\n\n# Issue write / read commands individually\n\nConsole.write(pid, \"use auxiliary/scanner/http/ssl\")\nConsole.write(pid, \"set RHOSTS 192.168.1.0/24\")\nConsole.write(pid, \"run\")\nConsole.read(pid)\n\n\n# Or run a batch series of commands\nConsole.run(pid, ~s(\n  use auxiliary/scanner/http/ssl\n  set RHOSTS 192.168.1.0/24\n  run\n))\n\n```\n\nIt should be noted that:\n  - A console session becomes inactive 5 minutes after last command was sent.\n  - Read will block until it receives some data or times out.\n\n\n## Status\n\nThis module is currently under development and has not been published to hex.pm\nyet.\n\n\n\n## License\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fgcmurphy%2Fmetasploit_ex.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fgcmurphy%2Fmetasploit_ex?ref=badge_large)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgcmurphy%2Fmetasploit_ex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgcmurphy%2Fmetasploit_ex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgcmurphy%2Fmetasploit_ex/lists"}