mirror of
https://github.com/s-b-repo/rustsploit
synced 2026-06-27 09:54:12 +00:00
fb9ae7f3c2
migrated away from free rdp lots of improvements there and created native libs feel free to use native libs but contribute if you improve please add more wider api support and cli and shell payload mutator for api endpoint going to do that for payloads gens and other stuff later and im also planning some more bug changes and improvement check the api template
2.1 KiB
2.1 KiB
Contributing
Contributions are welcome — bug reports, new modules, framework improvements, and wordlist additions are all appreciated.
Workflow
- Fork the repository and create a branch from
main - Add your module under the appropriate category in
src/modules/ - Register it — add
pub mod your_module;to the siblingmod.rs - Run checks:
cargo fmt cargo check cargo test - Open a PR — describe what the module does, the CVE (if applicable), and how to test it
Module Placement
| Type | Path |
|---|---|
| Exploit | src/modules/exploits/<vendor_or_category>/ |
| Scanner | src/modules/scanners/ |
| Credential | src/modules/creds/generic/ or creds/<vendor>/ |
Use subfolders for vendor families (e.g., exploits/cisco/, exploits/cameras/).
Code Style
- Run
cargo fmt— no manual formatting required - Use
[+]/[-]/[!]/[*]prefixes for output (.green()/.red()/.yellow()/.cyan()) - Keep output concise and actionable
- Document CVE IDs and affected products in comments and output
- No
unwrap()orunwrap_or_default()in critical paths — use?withanyhow::Context - All targets pass through
crate::utils::normalize_target— no custom normalization
Mass-Scan Modules
If adding a module with 0.0.0.0/0 support:
- Copy the
EXCLUDED_RANGESpattern from an existing mass-scan module - Disable honeypot detection in scan-loop mode
- Default to a sane concurrency limit (mention it in output)
Wordlists
- Store under
lists/and document inlists/readme.md - Prefer Seclists derivations or well-known public sources
- Keep file sizes reasonable — large lists should support streaming
Bug Reports & Ideas
Open a GitHub issue or reach out with PoCs. Feature requests and module ideas are appreciated — please open a discussion before large refactors.
⚠️ All contributions must target authorized security testing scenarios. Commit messages and module descriptions must reflect controlled research usage.