+ Reply to Thread
Page 5 of 11 FirstFirst ... 34567 ... LastLast
Results 61 to 75 of 155

Thread: mRatio Fixer v7

  1. #1
    Moderator anon's Avatar
    Join Date
    01.02.08
    Posts
    39,370
    Activity Longevity
    11/20 19/20
    Today Posts
    1/5 ssss39370

    mRatio Fixer v7

    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:
    mRatio Fixer v6 [BETA]
    · Downgraded mitmproxy and its configuration file to version 4.0.4 (should fix the memory leaks and "specified module could not be found"/"failed to execute script mitmweb" errors)
    · Renamed redirect.py to fixer.py
    · Added mRatio multiple instance unlocker and patcher
    · Several code fixes; notably, yes/no prompts can no longer be bypassed by pressing Ctrl+C
    · Reviewed Schannel registry entries

    mRatio Fixer v5 [BETA]
    · Renamed project from "mRatio TLS Fix" to "mRatio Fixer"
    · Updated mitmproxy to version 5.1.1
    · Renamed scripts (runme is now start, install is now install_cert, service is now install_service)
    · Fixed the "object reference not set to an instance of an object" error
    · Fixed the "a call to SSPI failed" error
    · Added uninstall.bat script to do a complete uninstall and remove all traces
    · Added stop.bat script for those who can't press Ctrl+Break

    mRatio TLS Fix v4 [BETA]
    · Updated mitmproxy to v5.0.1
    · Added the ability to run as a Windows service

    mRatio TLS Fix v3 [BETA]
    · Preliminary fix for the "specified module could not be found"/"failed to execute script mitmweb" error

    mRatio TLS Fix v2 [BETA]
    · Updated mitmproxy and its configuration file to v5.0.0
    · Added a repair function to runme.bat: you can now delete the file "firstrun" to uninstall and delete the root certificate, then generate and install a new one

    mRatio TLS Fix v1 [BETA]
    · Initial release


    ╔═══════════════════════════╗
    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 http://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
    "I just remembered something that happened a long time ago."
    Reply With QuoteReply With Quote
    Thanks

  2. Who Said Thanks:

    WhiteSniper (14.01.24) , bulletproof2k (22.10.23) , INTRA (01.06.23) , pimphead07 (29.11.22) , Bubbie (10.11.22) , Mon (05.08.22) , fabmacedo (08.06.22) , Master Razor (11.05.22) , Rupel89yt (08.05.22) , eli98 (17.04.22) , Pandux (12.03.22) , mayfly (28.01.22) , josecarmona (08.01.22) , dede607 (13.11.21) , Xpl0ad3r (12.08.21) , dukkey (08.08.21) , ung4ever (29.07.21) , Jello (12.06.21) , hhumas (28.04.21) , 12321 (16.04.21) , lolsee2 (31.03.21) , Ishino (29.01.21) , cirulilu (07.01.21) , tmtwin (17.12.20) , zoomi (07.12.20) , takomania (06.11.20) , JohnareyouOK (30.10.20) , Manchunian (24.10.20) , blade4 (04.10.20) , sigduwksnsksis9283 (17.09.20) , Logiin (11.09.20) , joe1982 (30.07.20) , mmmmm (23.07.20) , khoroto (19.07.20) , ar_avishek (19.06.20) , yl905797 (29.05.20) , hollenwollen (30.04.20) , AxiomaticDirection (31.03.20) , vren43 (21.03.20) , crystal (15.03.20) , Paranormal (07.03.20) , ilneroviaggiatore (05.02.20) , Artbabelitta (05.01.20) , caracola2394 (02.01.20) , ffp (20.12.19) , dadodz23 (15.12.19) , coromantee (16.11.19) , whyme (09.11.19) , Outlaw (06.11.19) , Zigole (06.11.19) , austinpowers (06.11.19) , RaMa (06.11.19) , Lucius (01.11.19) , alpacino (01.11.19) , H265 (30.10.19) , Rebound (29.10.19)

  3. #61
    Quote Originally Posted by anon View Post
    Anyway, the next version will include a way to run multiple instances of mRatio (thanks to sigduwksnsksis9283 for betatesting this feature) and here's a screenshot.

    image
    Yes, the multiple instance works nice but the thing is there is no way to identify which instance is seeding/cheating to which tracker without opening.. if there was a way to change the icon or add/change mratio package name then it would be amazing...
    like i hide all the instance's in tray i have to open all and see which one is cheating on which tracker :/ .. this is a real mess when your running 15+ instance x(
    Reply With QuoteReply With Quote
    Thanks

  4. #62
    Moderator anon's Avatar
    Join Date
    01.02.08
    Posts
    39,370
    Activity Longevity
    11/20 19/20
    Today Posts
    1/5 ssss39370
    Quote Originally Posted by sigduwksnsksis9283 View Post
    Yes, the multiple instance works nice but the thing is there is no way to identify which instance is seeding/cheating to which tracker without opening.. if there was a way to change the icon or add/change mratio package name then it would be amazing...
    mRatio uses an executable protector with custom parameters, which makes modding possibilities extremely limited. Otherwise, we would have decompiled it to fix bugs directly and there would be no need for this project. Efforts at analyzing and possibly decrypting the binary are ongoing; I was very fortunate that this particular check is not fully encrypted and therefore can be hacked. Custom icon should also be doable by using Resource Hacker to replace the first ICON_GROUP resource, unless there is some integrity check I haven't encountered.

    Other ideas for being able to tell instances apart include adding a dummy torrent at the top of the list with a custom name and/or tag, and using the (public) mTranslator program to create a custom language file for each one with customized text.

    The executable patch method does not actually remove the instance check, it only alters it to prevent multiple iterations of the same mod while still allowing others. A side effect of this is that you're able to create shortcuts with custom names and comments, then run them to activate their corresponding instance. Of course, I only provided five executables for your test, but I plan on writing a dynamic patcher for v6. No time estimates for that, though.

    like i hide all the instance's in tray i have to open all and see which one is cheating on which tracker :/ .. this is a real mess when your running 15+ instance x(
    Well, I didn't anticipate you would open so many, you terrorist
    "I just remembered something that happened a long time ago."
    Reply With QuoteReply With Quote
    Thanks

  5. Who Said Thanks:

    cloud99 (15.10.20) , sigduwksnsksis9283 (18.08.20)

  6. #63

    Join Date
    09.09.20
    P2P Client
    Tixati 2.6.7
    Posts
    241
    Activity Longevity
    0/20 4/20
    Today Posts
    0/5 ssssss241
    Code:
    [10/14/2020 6:03:29 PM] Torrent data and settings loaded.
    [10/14/2020 6:03:29 PM] Torrent settings saved.
    [10/14/2020 6:03:45 PM] [Waffles Method] Starting by user request.
    [10/14/2020 6:03:45 PM] Creating START announce ...
    [10/14/2020 6:03:45 PM] Establishing a connection ... tracker.themixingbowl.org
    [10/14/2020 6:03:45 PM] Sending data ... GET /6b314524ad4688d8e99f747b5eb3d39a/announce?info_hash=%b6%8d6%dazi%b9X%a3%3c%92%af%88%d4%15%25%cc%b5%f07&peer_id=-qB4250-lGQfInATycvS&port=37740&uploaded=0&downloaded=0&left=0&corrupt=0&key=7D143B5A&event=started&numwant=200&compact=1&no_peer_id=1&supportcrypto=1&redundant=0 HTTP/1.1
    Host: tracker.themixingbowl.org
    User-Agent: qBittorrent/4.2.5
    Accept-Encoding: gzip
    Connection: close
    
     
    [10/14/2020 6:03:45 PM] Receiving data ...
    [10/14/2020 6:03:52 PM] Input string was not in a correct format.
    [10/14/2020 6:03:52 PM] Now seeding ...
    [10/14/2020 6:03:52 PM] Torrent settings saved.
    mratio showing yellow colour in this log tracker
    Reply With QuoteReply With Quote
    Thanks

  7. Who Said Thanks:

    anon (15.10.20)

  8. #64
    Quote Originally Posted by sashiagustina View Post
    [10/14/2020 6:03:45 PM] Sending data ... GET /censored/announce?info_hash=censored&peer_id=-qB4250-lGQfInATycvS&port=37740&uploaded=0&downloaded=0&le ft=0&corrupt=0&key=7D143B5A&event=started&numwant= 200&compact=1&no_peer_id=1&supportcrypto=1&redunda nt=0 HTTP/1.1
    Host: tracker.themixingbowl.org
    User-Agent: qBittorrent/4.2.5
    Accept-Encoding: gzip
    Connection: close
    Hi there,
    I noticed the mRatio log tracker code of yours and noticed you have your passkey posted here. Please edit your post and change that so that you account is protected. Also change the torrent hash to something random. If you have already done this, please ignore my post.
    ~cloud99
    Last edited by cloud99; 15.10.20 at 16:10.
    Reply With QuoteReply With Quote
    Thanks

  9. #65
    Moderator anon's Avatar
    Join Date
    01.02.08
    Posts
    39,370
    Activity Longevity
    11/20 19/20
    Today Posts
    1/5 ssss39370
    Quote Originally Posted by sashiagustina View Post
    mratio showing yellow colour in this log tracker
    Thanks for the report, I'd been meaning to gather more information about this bug. It seems to be related to mRatio's handling of chunked responses, or responses which falsely claim to be chunked to be more specific.

    I'm not going to push a fix on v6 because I need to investigate the matter in more detail, but as a workaround, you can disable the proxy when adding torrents from tracker.themixingbowl.org to mRatio. They don't use HTTPS so it's not necessary anyway.
    "I just remembered something that happened a long time ago."
    Reply With QuoteReply With Quote
    Thanks

  10. Who Said Thanks:

    cloud99 (16.10.20)

  11. #66
    Moderator anon's Avatar
    Join Date
    01.02.08
    Posts
    39,370
    Activity Longevity
    11/20 19/20
    Today Posts
    1/5 ssss39370
    Version 6 is finally out!
    "I just remembered something that happened a long time ago."
    Reply With QuoteReply With Quote
    Thanks

  12. Who Said Thanks:

    JohnareyouOK (30.10.20) , AxiomaticDirection (22.10.20) , sigduwksnsksis9283 (17.10.20)

  13. #67
    JohnareyouOK's Avatar
    Join Date
    31.01.19
    Location
    Earth
    P2P Client
    BiglyBT
    Posts
    254
    Activity Longevity
    0/20 6/20
    Today Posts
    0/5 ssssss254
    Anyone who has encountered the "Bencode data is incorrect" and "Input string was not in a correct format" errors.
    Encountered “Input string was not in a correct format” error here as well. Just PM you two packets Charles captured:
    1st one: mR <-> Charles <-> mRatio Fixer v6 <-> Internet
    2nd one: qB <-> Charles <-> Internet
    Let me know if there's anything more need to be tested about this issue.
    Reply With QuoteReply With Quote
    Thanks

  14. Who Said Thanks:

    anon (01.11.20) , sigduwksnsksis9283 (30.10.20)

  15. #68
    Moderator anon's Avatar
    Join Date
    01.02.08
    Posts
    39,370
    Activity Longevity
    11/20 19/20
    Today Posts
    1/5 ssss39370
    Thanks, I received and had a look at the data, and it appears to confirm my suspicious about chunked responses. I'll have a closer look and write a fix as soon as I can.
    "I just remembered something that happened a long time ago."
    Reply With QuoteReply With Quote
    Thanks

  16. #69
    instaone
    SSL Error pls help
    [11/5/2020 5:35:58 AM] Receiving data ...
    [11/5/2020 5:36:01 AM] [526] HTTP/1.1 526 Origin SSL Certificate Error
    [11/5/2020 5:36:01 AM] Now seeding ...
    [11/5/2020 5:36:01 AM] Torrent settings saved.
    Reply With QuoteReply With Quote

  17. #70
    Moderator anon's Avatar
    Join Date
    01.02.08
    Posts
    39,370
    Activity Longevity
    11/20 19/20
    Today Posts
    1/5 ssss39370
    Quote Originally Posted by instaone View Post
    [11/5/2020 5:36:01 AM] [526] HTTP/1.1 526 Origin SSL Certificate Error
    That means the tracker's owner is using Cloudflare with SSL mode set to "strict", but not exposing a valid certificate to them. It's a problem on their side and anyone using any client will be affected. All you can do is wait for them to fix it or (if they have this option) not use the HTTPS announce URL.
    "I just remembered something that happened a long time ago."
    Reply With QuoteReply With Quote
    Thanks

  18. #71
    JohnareyouOK's Avatar
    Join Date
    31.01.19
    Location
    Earth
    P2P Client
    BiglyBT
    Posts
    254
    Activity Longevity
    0/20 6/20
    Today Posts
    0/5 ssssss254
    Quote Originally Posted by anon View Post
    Looking for feedback from...
    • Anyone whose Windows language does not use the Latin script (Russian, Chinese, Japanese, Korean, etc.); does installing and running this as a service work for you? See "Known issues" if it doesn't, and let me know if that didn't help.
    Feedback: The service mode works perfectly on my PC with CJK environment. No need for the steps in "Known issues".

    Quote Originally Posted by anon View Post
    Quote Originally Posted by JohnareyouOK View Post
    Encountered ?Input string was not in a correct format? error here as well. Just PM you two packets Charles captured
    Thanks, I received and had a look at the data, and it appears to confirm my suspicious about chunked responses (see my post above).
    I'm getting "Incorrect bencode data!" error on another tracker (different tracker than the last time encountered "Input string" error). is it the same cause as the "Input string" error and has been fixed in next version? do you still need torrent sample or packet related with this "Incorrect bencode data" error?
    Last edited by JohnareyouOK; 08.11.20 at 12:47.
    Reply With QuoteReply With Quote
    Thanks

  19. Who Said Thanks:

    anon (07.11.20) , sigduwksnsksis9283 (07.11.20)

  20. #72
    Moderator anon's Avatar
    Join Date
    01.02.08
    Posts
    39,370
    Activity Longevity
    11/20 19/20
    Today Posts
    1/5 ssss39370
    Quote Originally Posted by JohnareyouOK View Post
    Feedback: The service mode works perfectly on my PC with CJK environment. No need for the steps in "Known issues".
    This is a pretty random bug then...

    I'm getting "Incorrect bencode data!" error on another tracker (different tracker than the last time encountered "Input string" error). is it the same cause as the "Input string" error and has been fixed in next version? do you still need torrent sample or packet related with this "Incorrect bencode data" error?
    I'm not yet 100% sure the "input string" error is caused by chunked encoding (although it's the most plausible explanation so far), and have no details whatsoever to debug "bencode data is incorrect", so sample .torrent files that trigger them are very welcome.
    "I just remembered something that happened a long time ago."
    Reply With QuoteReply With Quote
    Thanks

  21. #73
    JohnareyouOK's Avatar
    Join Date
    31.01.19
    Location
    Earth
    P2P Client
    BiglyBT
    Posts
    254
    Activity Longevity
    0/20 6/20
    Today Posts
    0/5 ssssss254
    Quote Originally Posted by anon View Post
    I'm not yet 100% sure the "input string" error is caused by chunked encoding (although it's the most plausible explanation so far), and have no details whatsoever to debug "bencode data is incorrect", so sample .torrent files that trigger them are very welcome.
    Sent just now.

    Btw, if anyone is also lazy as me don't wanna re-download thousands of .torrent files, but instead wanna let torrents that already been added in mRatio to use this awesome fixer, here's one method:

    If wanna modify ALL torrents already in mR to use this fixer:
    1. Close mRatio
    2. There's a folder named "mRatioTorrents" in the same folder as mRatio.exe, copy this "mRatioTorrents" folder and paste elsewhere to backup in case.
    3. Open Notepad++ (download link)
    4. Click Ctrl+F, switch to "Find in Files" tab
    5. "Find what", fill
    Code:
    mRTorrentProxyType.*?mRTorrentProxyUseAuth
    "Replace with", fill
    Code:
    mRTorrentProxyType1:318:mRTorrentProxyHost9:127.0.0.118:mRTorrentProxyPort4:808021:mRTorrentProxyUseAuth
    "Filters", fill
    Code:
    *.mRSave
    "Directory", fill in the path to the "mRatioTorrents" folder
    "Search Mode", choose "Regular Expression"
    4. Click "Replace in Files" button, and "Yes" when being asked "are you sure..."
    5. Done.

    If only wanna modify torrents of certain trackers in mRatio to use this fixer:
    Taking IPT as an example, its tracker domain is routing.bgp.technology, so
    "Find what", fill
    Code:
    routing.bgp.technology(.*?)mRTorrentProxyType.*?mRTorrentProxyUseAuth
    "Replace with", fill
    Code:
    routing.bgp.technology\1mRTorrentProxyType1:318:mRTorrentProxyHost9:127.0.0.118:mRTorrentProxyPort4:808021:mRTorrentProxyUseAuth
    Others are the same as above. Replace the red part with the tracker need to modified.
    Reply With QuoteReply With Quote
    Thanks

  22. Who Said Thanks:

    anon (10.11.20) , AxiomaticDirection (09.11.20) , sigduwksnsksis9283 (09.11.20)

  23. #74
    Moderator anon's Avatar
    Join Date
    01.02.08
    Posts
    39,370
    Activity Longevity
    11/20 19/20
    Today Posts
    1/5 ssss39370
    The first time I made pizza, I had no idea what I was doing, but I followed the steps and timings my mother always used and things went fine. This is basically the same principle. It works because you're replacing a set of entries between known boundaries, but if you wanted to do something else like adding entries or editing values, you would have to know their boundaries in advance and correct the lengths respectively, and the whole ordeal would become much more complex. Bencoding is a very simple format that offers good performance (no index, but lookups can skip irrelevant entries based on size), yet so damn hard for humans to edit. Or read.

    I will think about adding a mass-replacer that automates this, but no promises, I don't want to spend hours working out bugs and edge cases on it.

    By the way, IPT has two other trackers: localhost.stackoverflow.tech and ssl.empirehost.me. I don't know which criteria they use to favor one over the others on their torrents.
    "I just remembered something that happened a long time ago."
    Reply With QuoteReply With Quote
    Thanks

  24. #75
    Hi! is there any chance that you could do a portable version like the old one? thanks!
    Reply With QuoteReply With Quote
    Thanks

+ Reply to Thread
Page 5 of 11 FirstFirst ... 34567 ... LastLast

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •