Coder Social home page Coder Social logo

Comments (3)

SaladDais avatar SaladDais commented on July 23, 2024

Looks like the pcap in that bug isn't representative of the issue Windows hits now. I'm seeing an almost immediate FIN being sent by the viewer after it sends the SOCKS handshake, so it's not a timeout like that bug. Not seeing the trailing null bytes either. Don't see any way to work around on our end if the connection gets immediately closed, so will have to investigate circuit IP rewriting. Hoped to avoid that because of how messy it is.

from hippolyzer.

SaladDais avatar SaladDais commented on July 23, 2024

Probably need to extract these details out into a TrransportManager class that can be tied to a Session and used for the open_circuit() calls, with hooks for rewriting the login response and the EQ messages that have sim IPs. The TransportManager would have an internal mapping of internally-bound UDP ports<->real sim UDP ports. The TransportManager should return an abstract Transport object that would wrap either the sim IP rewriting or SOCKS5 strategy used for that session, and that would be used in ProxiedCircuit rather than explicitly calling ProxiedUDPPacket.serialize().

The proxy could choose which strategy to use at the time of the login request based on whether or not there's active SOCKS5 UDP associations without sessions tied to them, falling back to IP rewriting if not.

Something like https://github.com/basil00/Divert/blob/master/examples/streamdump/streamdump.c might be nice to transparently force windows viewer traffic through the SOCKS proxy based on src or dest matching a known circuit, but they haven't implemented UDP association and it'd be more work than just doing IP rewriting.

from hippolyzer.

SaladDais avatar SaladDais commented on July 23, 2024

Started a rewrite that would allow plugging in a transport manager that knows how to rewrite IPs and bind alias IPs on demand, but not happy with how deep the hooks have to go. Might try writing a Detours hook for non-DNS sendto / recvfrom that does transparent SOCKS5 first.

from hippolyzer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.