SB-Innovation Presents
>>>>>> mRatio Fixer v7 <<<<<<
╔═══════════════════════════╗
Coded by:
╚═══════════════════════════╝
>>>>>> anon <<<<<<
>>>>>> mitmproxy Project <<<<<<
>>>>>> Iain Patterson <<<<<<
>>>>>> Alireza Dabiri Nejad <<<<<<
>>>>>> Mark Russinovich <<<<<<
>>>>>> Ron Yorston <<<<<<
╔═══════════════════════════╗
Credits:
╚═══════════════════════════╝
>>>>>> ar_avishek <<<<<<
>>>>>> AxiomaticDirection <<<<<<
>>>>>> banjje <<<<<<
>>>>>> H265 <<<<<<
>>>>>> JohnareyouOK <<<<<<
>>>>>> sashiagustina <<<<<<
>>>>>> sigduwksnsksis9283 <<<<<<
>>>>>> snowfox373 <<<<<<
>>>>>> weixin <<<<<<
╔═══════════════════════════╗
Features:
╚═══════════════════════════╝
· Fixes the "received an unexpected EOF or 0 bytes from the transport stream" error (caused by lack of TLS 1.2 support)
· Fixes the "object reference not set to an instance of an object" error (caused by response compression)
· Fixes the "a call to SSPI failed" error (exact cause unknown)
· Fixes the "input string was not in a correct format" and "bencode data is incorrect" errors (caused by chunked responses)
· Can run interactively or as a service
· Includes mRatio multiple instance unlocker and patcher
╔═══════════════════════════╗
How to use:
╚═══════════════════════════╝
1. Download the attachment and extract it somewhere
2. Run start.bat as administrator; wait until it's fully initialized and leave it open
3. Run install_cert.bat as administrator
4. Open mRatio and configure this proxy in the preferences: type SOCKS5, host 127.0.0.1, port 8080
5. Use mRatio normally
Note that the "mRatio Fixer" terminal window must remain open at all times. You can use install_service.bat to install it as a system service instead. This will make it run invisibly and automatically on Windows startup.
╔═══════════════════════════╗
Changelog:
╚═══════════════════════════╝
mRatio Fixer v7
· The correct destination port is now autodetected for all trackers
· Switched from mitmweb to mitmdump to greatly reduce memory usage
· Fixed the "input string was not in a correct format" and "bencode data is incorrect" errors
· Tracker responses are now always fully decoded and normalized before they are passed to mRatio. This slightly increases CPU usage but should future-proof against other errors (e.g. "unknown HTTP response")
· Upgraded TLS cipher list to Windows 10 emulation mode
· Added administrator privilege check to all scripts
· The uninstaller now deletes leftover files from old versions, all the way back to TLS Fix v1 [BETA]
· Left beta stage as development has been active for over a year now
Spoiler Previous versions:
╔═══════════════════════════╗
Known issues:
╚═══════════════════════════╝
· Changes to mRatio's proxy settings do not apply retroactively, so existing torrents will not be affected.
Workaround: remove and readd torrents, or use the procedure detailed at https://www.sb-innovation.de/showthread.php?p=359303.
· If installed as a service, startup may fail with error code 1053. The cause of this is unknown.
Workaround: extract to a different path outside your profile directory and without spaces, e.g. "C:\mRatioFixer".
· stop.bat may fail if msvcp140.dll cannot be found.
Solution: install the x86 Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019 from https://support.microsoft.com/en-us/help/2977003/.
· Only Windows 7 x86 and above are supported.
Workarounds involving running inside a virtual machine or separate computer, then modifying the configuration file and proxy settings accordingly may be possible, but I am not able to assist with or debug such setups.
╔═══════════════════════════╗
Technical information:
╚═══════════════════════════╝
· This is basically a neatly packaged and scripted version of mitmproxy, plus some executables that perform certain other tasks.
· All of them are unmodified from the originals, only renamed to avoid accidental execution.
· mitmdump.---: version 4.0.4 of mitmdump
· nssm.---: version 2.24.0.74 (32-bit) of nssm
· windows-kill.---: version 1.1.4 (32-bit) of windows-kill
· handle.---: version 4.22.0.0 (32-bit) of Sysinternals Handle
· busybox.---: version 1.33.0-FRP-3578-g359211429 (32-bit) of busybox-w32
· start.bat: starts Fixer, ensures a consistent status beforehand
· install_cert.bat: installs mitmproxy's certificate
· install_service.bat: installs Fixer as a service
· stop.bat: stops Fixer cleanly if you can't press Ctrl+Break (only for interactive mode!)
· uninstall.bat: stops Fixer cleanly and removes all traces of it
· inst_patch.bat: patches mRatio's executable to allow running multiple instances
· inst_unlock.bat: closes mRatio's BaseNamedObjects handles to allow running multiple instances
· config.yaml: configuration file for mitmdump
· fixer.py: Python script used by mitmdump to process requests and responses
· registry.---: registry file, sets Schannel settings to certain values that fix the "a call to SSPI failed" error
· registry_u.---: registry file, resets the Schannel changes to Windows defaults
Bookmarks