├── src
├── WsaUtil.cpp
├── NtUtil.h
├── vcpkg.json
├── WsaUtil.h
├── resource.h
├── socksifier.h
├── socksifier.vcxproj.filters
├── NtUtil.cpp
├── socksifier.rc
├── socksifier.vcxproj
├── socksifier.cpp
└── NtApi.h
├── assets
├── blk1DOYFW7.png
├── fLj62LY1rn.png
└── iyMLDzGjVq.png
├── socksifier.sln.DotSettings
├── appveyor.yml
├── socksifier.sln
├── README.md
├── .gitignore
└── LICENSE
/src/WsaUtil.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nefarius/socksifier/HEAD/src/WsaUtil.cpp
--------------------------------------------------------------------------------
/assets/blk1DOYFW7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nefarius/socksifier/HEAD/assets/blk1DOYFW7.png
--------------------------------------------------------------------------------
/assets/fLj62LY1rn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nefarius/socksifier/HEAD/assets/fLj62LY1rn.png
--------------------------------------------------------------------------------
/assets/iyMLDzGjVq.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nefarius/socksifier/HEAD/assets/iyMLDzGjVq.png
--------------------------------------------------------------------------------
/src/NtUtil.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 |
3 | LPWSTR GetObjectName(HANDLE hObject);
4 |
5 | LPWSTR GetObjectTypeName(HANDLE hObject);
6 |
--------------------------------------------------------------------------------
/src/vcpkg.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "socksifier",
3 | "version": "1.0.0",
4 | "description": "socksifier",
5 | "license": "MIT",
6 | "supports": "!(arm | uwp)",
7 | "dependencies": [
8 | "spdlog",
9 | "detours"
10 | ]
11 | }
12 |
--------------------------------------------------------------------------------
/src/WsaUtil.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 |
3 | void LogWSAError();
4 |
5 | BOOL BindAndConnectExSync(
6 | SOCKET s,
7 | const struct sockaddr* name,
8 | int namelen
9 | );
10 |
11 | BOOL WSARecvSync(
12 | SOCKET s,
13 | PCHAR buffer,
14 | ULONG length
15 | );
16 |
17 | BOOL WSASendSync(
18 | SOCKET s,
19 | PCHAR buffer,
20 | ULONG length
21 | );
22 |
--------------------------------------------------------------------------------
/src/resource.h:
--------------------------------------------------------------------------------
1 | //{{NO_DEPENDENCIES}}
2 | // Microsoft Visual C++ generated include file.
3 | // Used by socksifier.rc
4 |
5 | // Next default values for new objects
6 | //
7 | #ifdef APSTUDIO_INVOKED
8 | #ifndef APSTUDIO_READONLY_SYMBOLS
9 | #define _APS_NEXT_RESOURCE_VALUE 101
10 | #define _APS_NEXT_COMMAND_VALUE 40001
11 | #define _APS_NEXT_CONTROL_VALUE 1001
12 | #define _APS_NEXT_SYMED_VALUE 101
13 | #endif
14 | #endif
15 |
--------------------------------------------------------------------------------
/socksifier.sln.DotSettings:
--------------------------------------------------------------------------------
1 |
2 | True
3 | True
4 | True
5 | True
6 | True
7 | True
8 | True
9 | True
--------------------------------------------------------------------------------
/appveyor.yml:
--------------------------------------------------------------------------------
1 | version: 1.1.{build}
2 | image: Visual Studio 2022
3 | install:
4 | - cmd: |
5 | cd "C:\Tools\vcpkg"
6 | git pull > NUL
7 | .\bootstrap-vcpkg.bat > NUL
8 | cd %appveyor_build_folder%
9 | skip_commits:
10 | files:
11 | - '**/*.md'
12 | before_build:
13 | - cmd: vcpkg integrate install
14 | - cmd: vcpkg upgrade --no-dry-run
15 | - cmd: vcpkg install spdlog:x86-windows-static spdlog:x64-windows-static detours:x86-windows-static detours:x64-windows-static
16 | - ps: Invoke-WebRequest "https://github.com/nefarius/vpatch/releases/latest/download/vpatch.exe" -OutFile vpatch.exe
17 | - cmd: vpatch.exe --stamp-version "%APPVEYOR_BUILD_VERSION%" --target-file ".\src\%APPVEYOR_PROJECT_NAME%.rc" --resource.file-version --resource.product-version
18 | configuration: Release
19 | platform:
20 | - x86
21 | - x64
22 | build:
23 | project: socksifier.sln
24 | artifacts:
25 | - path: 'bin**\*.dll'
26 | cache:
27 | - c:\tools\vcpkg\installed\
28 | deploy:
29 | release: v$(APPVEYOR_BUILD_VERSION)
30 | description: 'Socksifier DLL'
31 | provider: GitHub
32 | auth_token:
33 | secure: GvOeZH3msooHWqoQj46UsLaojyMsnudmNdfEMUSJJfrIBuLwAYaMeI5FcxKSFVv7
34 | artifact: /.*\.DLL/
35 | draft: false
36 | prerelease: false
37 | on:
38 | branch: master
39 | APPVEYOR_REPO_TAG: true
--------------------------------------------------------------------------------
/src/socksifier.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 |
3 | //
4 | // WinAPI
5 | //
6 | #include
7 | #include
8 | #include
9 | #include
10 |
11 | //
12 | // Custom
13 | //
14 | #include "NtApi.h"
15 | #include "NtUtil.h"
16 | #include "WsaUtil.h"
17 |
18 | //
19 | // STL
20 | //
21 | #include