Also catch ECONNRESET from UDP sockets#21618
Conversation
Windows raises ECONNRESET not ECONNREFUSED as Linux does
|
Worked for my Windows 10 VM: BeforeAfterHowever there might be more places that need the change. An AI overview: A quick test shows that those might be correct: cisco sdwan auth bypasscisco sdwan vhub auth bypassSame as above: chargen probeI believe this actually works okay from my testing? snmp enum hp laserjetthis raises the uncaught exception netbios spoof natThis actually has a separate issue: netbios spoofI wasn't able to trigger the exception here; but I may have not been testing this correctly? |
|
Yeah thanks for calling out those 8 spots. |
|
Added |
|
The failing mysql CI test is unrelated to this change. Merging now 🚀 Works as expected |
Release NotesFixes a crash when running the |
Windows raises ECONNRESET not ECONNREFUSED as Linux does
Description
Related Issue: rapid7/rex-socket#85
Breaking Changes
None, this fixes a regression I intro'ed in #21562
Reviewer Notes
Verification Steps
Test Evidence
This is a Windows Server 2019 instance where I manually installed the archive of master from the 6.5.141 tag.
Old and Busted
New and Fixed
Environment
AI Usage Disclosure
Pre-Submission Checklist
documentation/modules(new modules only)lib/changes)Hardware and Complex Software Module Guidance
If your module targets specialized hardware (routers, IoT, PLCs, etc.) or complex software (licensed, multi-service, or multi-version), provide a pcap, screen recording, or video showing successful execution.
Email sanitized pcaps/recordings to msfdev@metasploit.com — remove real IPs, credentials, and hostnames before sending. If hardware/software is unavailable, explain in the PR description.
Responsiveness and PR Takeover Policy
We want every contribution to make it into the project. If approximately 2 weeks pass after a review request without a comment or code update from you, the team may take over the PR and complete the work on your behalf.
If this happens, you will remain credited as a co-author on the final commit — your contribution is always recognized.
This policy exists to keep the project moving forward. It is not a reflection on the quality of your work or your involvement. Life happens, and we would rather finish the work together than let a good contribution go stale.