{"id":15396637,"url":"https://github.com/hupe1980/gomsf","last_synced_at":"2025-04-16T00:17:40.603Z","repository":{"id":57640041,"uuid":"432955573","full_name":"hupe1980/gomsf","owner":"hupe1980","description":"Golang based RPC client to communicate with Metasploit","archived":false,"fork":false,"pushed_at":"2021-12-02T23:36:36.000Z","size":82,"stargazers_count":8,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-16T00:17:34.201Z","etag":null,"topics":["exploit","golang","metasploit","meterpreter","msf","redteam","rpc","shell"],"latest_commit_sha":null,"homepage":"","language":"Go","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/hupe1980.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-11-29T08:11:34.000Z","updated_at":"2025-03-27T10:19:10.000Z","dependencies_parsed_at":"2022-09-07T13:50:14.968Z","dependency_job_id":null,"html_url":"https://github.com/hupe1980/gomsf","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hupe1980%2Fgomsf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hupe1980%2Fgomsf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hupe1980%2Fgomsf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hupe1980%2Fgomsf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hupe1980","download_url":"https://codeload.github.com/hupe1980/gomsf/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249173096,"owners_count":21224485,"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":["exploit","golang","metasploit","meterpreter","msf","redteam","rpc","shell"],"created_at":"2024-10-01T15:34:26.635Z","updated_at":"2025-04-16T00:17:40.588Z","avatar_url":"https://github.com/hupe1980.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gomsf\n![Build Status](https://github.com/hupe1980/gomsf/workflows/build/badge.svg) \n[![Go Reference](https://pkg.go.dev/badge/github.com/hupe1980/gomsf.svg)](https://pkg.go.dev/github.com/hupe1980/gomsf)\n\u003e Golang based RPC client to communicate with Metasploit\n\nhttps://docs.rapid7.com/metasploit/rpc-api\n\n:warning: This is experimental and subject to breaking changes.\n\n## Starting the RPC Server for Metasploit\n```bash\nmsfrpcd -U user -P pass\n```\n\n## Connecting to the RPC Server\n```golang\nclient, err := gomsf.New(\"0.0.0.0:55553\")\nif err != nil {\n    panic(err)\n}\nif err := client.Login(\"user\", \"pass\"); err != nil {\n    panic(err)\n}\ndefer client.Logout()\n```\n## Encode data with an encoder\n```golang\nencoded, err := client.Module.Encode(\"AAAA\", \"x86/shikata_ga_nai\", \u0026gomsf.EncodeOptions{\n    Format: \"c\",\n})\nif err != nil {\n    panic(err)\n}\nfmt.Printf(\"%s\\n\", encoded)\n```\nThis will encode 'AAAA' with shikata_ga_nai, and prints the following c code:\n```bash\nunsigned char buf[] =\n\"\\xbb\\xc6\\xee\\x4d\\x66\\xd9\\xee\\xd9\\x74\\x24\\xf4\\x58\\x33\\xc9\\xb1\"\n\"\\x02\\x31\\x58\\x12\\x83\\xe8\\xfc\\x03\\x9e\\xe0\\xaf\\x93\\x5f\\xbc\\x6e\"\n\"\\x1d\";\n```\n## Get infos about a module\n```golang\ninfo, err := client.Module.Info(gomsf.ExploitType, \"windows/smb/ms08_067_netapi\")\nif err != nil {\n    panic(err)\n}\n\nfmt.Printf(\"Name: %s\\n\", info.Name)\nfmt.Printf(\"Rank: %s\\n\", info.Rank)\n```\nThis gives us the metadata of ms08_067_netapi\n```bash\nName: MS08-067 Microsoft Server Service Relative Path Stack Corruption\nRank: great\n```\n\n## License\n[MIT](LICENCE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhupe1980%2Fgomsf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhupe1980%2Fgomsf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhupe1980%2Fgomsf/lists"}