Git Product home page Git Product logo

socksifier's Introduction

Socksifier

A windows DLL which hook the connect() std call to redirect sockets to SOCKS4 proxy server.

Build

This project use the NMAKE version of makefile. To build the DLL, simply open your Developper Command Prompt for Visual Studio and use:

  • nmake to build
  • nmake clean to clean

Getting started

To enable the redirection you just have to inject the DLL in your target process.

By default, socksfier redirect sockets to localhost:1080 but these values can be set by using the exported functions set_proxy_address() and set_proxy_port().

To call these functions and use your own configuration you need a DLL injector which allow you to calls these functions. For example with this one, I can change the default port to 9050.

proxy_addr = socket.inet_aton("127.0.0.1")
proxy_port = struct.pack("!H", 9050)

# ...

dll_addr = injector.inject_dll(path_dll)
injector.call_from_injected(path_dll, dll_addr, "set_proxy_address", proxy_addr)
injector.call_from_injected(path_dll, dll_addr, "set_proxy_port", proxy_port)
injector.unload()

socksifier's People

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.