Skip to content

fix: resolve SSL field type, RPC failure check, generated package name, and context support - #5

Merged
vybraan merged 5 commits into
arisinghackers:masterfrom
vybraan:fix/issues
May 14, 2026
Merged

vybraan merged 5 commits into
arisinghackers:masterfrom
vybraan:fix/issues

Conversation

@vybraan

@vybraan vybraan commented May 14, 2026

Copy link
Copy Markdown
Member

No description provided.

vybraan added 5 commits May 14, 2026 06:52
The SSL field previously stored the protocol prefix ('http://' or
'https://') instead of a boolean indicating whether SSL is enabled.
Changed to a bool field named UseSSL for clarity and correctness.
checkRPCFailure previously returned an error if error_message existed
even when result was 'success'. Fixed with proper type-switch comparison
instead of fragile fmt.Sprintf.
Generated wrappers previously declared 'package metasploit' inside
pkg/msfrpc/generated/, causing import collisions with the typed SDK
at pkg/metasploit/. Fixed generator to output 'package generated'.

Added context variants for all generated methods, consistent with
the rest of the API. Each method now has a non-context wrapper
delegating to a Context variant.
Replace hardcoded credentials with MSF_HOST/MSF_PORT/MSF_SSL/MSF_USER/
MSF_PASS environment variables, with sensible localhost defaults.
@vybraan
vybraan merged commit 27bca33 into arisinghackers:master May 14, 2026
1 check passed
@vybraan
vybraan deleted the fix/issues branch May 14, 2026 05:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant