20220826
This commit is contained in:
parent
0b38c0ab17
commit
e5050fd937
@ -1,14 +0,0 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\AxibugTransfer.Tcp\AxibugTransfer.Tcp.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@ -1,5 +0,0 @@
|
||||
using AxibugTransfer.Tcp;
|
||||
|
||||
new TcpTransfer(80, "Your IP", 8080, true).Start();
|
||||
|
||||
Console.ReadLine();
|
||||
Binary file not shown.
Binary file not shown.
@ -1,36 +0,0 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v6.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v6.0": {
|
||||
"AxibugTransfer.Test/1.0.0": {
|
||||
"dependencies": {
|
||||
"AxibugTransfer.Tcp": "1.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"AxibugTransfer.Test.dll": {}
|
||||
}
|
||||
},
|
||||
"AxibugTransfer.Tcp/1.0.0": {
|
||||
"runtime": {
|
||||
"AxibugTransfer.Tcp.dll": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"AxibugTransfer.Test/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
},
|
||||
"AxibugTransfer.Tcp/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,9 +0,0 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "net6.0",
|
||||
"framework": {
|
||||
"name": "Microsoft.NETCore.App",
|
||||
"version": "6.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
@ -1,120 +0,0 @@
|
||||
{
|
||||
"format": 1,
|
||||
"restore": {
|
||||
"D:\\AxibugTransfer\\AxibugTransfer.Test\\AxibugTransfer.Test.csproj": {}
|
||||
},
|
||||
"projects": {
|
||||
"D:\\AxibugTransfer\\AxibugTransfer.Tcp\\AxibugTransfer.Tcp.csproj": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "D:\\AxibugTransfer\\AxibugTransfer.Tcp\\AxibugTransfer.Tcp.csproj",
|
||||
"projectName": "AxibugTransfer.Tcp",
|
||||
"projectPath": "D:\\AxibugTransfer\\AxibugTransfer.Tcp\\AxibugTransfer.Tcp.csproj",
|
||||
"packagesPath": "C:\\Users\\35337\\.nuget\\packages\\",
|
||||
"outputPath": "D:\\AxibugTransfer\\AxibugTransfer.Tcp\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\35337\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net6.0"
|
||||
],
|
||||
"sources": {
|
||||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net6.0": {
|
||||
"targetAlias": "net6.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
}
|
||||
},
|
||||
"frameworks": {
|
||||
"net6.0": {
|
||||
"targetAlias": "net6.0",
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.100\\RuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"D:\\AxibugTransfer\\AxibugTransfer.Test\\AxibugTransfer.Test.csproj": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "D:\\AxibugTransfer\\AxibugTransfer.Test\\AxibugTransfer.Test.csproj",
|
||||
"projectName": "AxibugTransfer.Test",
|
||||
"projectPath": "D:\\AxibugTransfer\\AxibugTransfer.Test\\AxibugTransfer.Test.csproj",
|
||||
"packagesPath": "C:\\Users\\35337\\.nuget\\packages\\",
|
||||
"outputPath": "D:\\AxibugTransfer\\AxibugTransfer.Test\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\35337\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net6.0"
|
||||
],
|
||||
"sources": {
|
||||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net6.0": {
|
||||
"targetAlias": "net6.0",
|
||||
"projectReferences": {
|
||||
"D:\\AxibugTransfer\\AxibugTransfer.Tcp\\AxibugTransfer.Tcp.csproj": {
|
||||
"projectPath": "D:\\AxibugTransfer\\AxibugTransfer.Tcp\\AxibugTransfer.Tcp.csproj"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
}
|
||||
},
|
||||
"frameworks": {
|
||||
"net6.0": {
|
||||
"targetAlias": "net6.0",
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.100\\RuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,15 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
||||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\35337\.nuget\packages\</NuGetPackageFolders>
|
||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.0.0</NuGetToolVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<SourceRoot Include="C:\Users\35337\.nuget\packages\" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@ -1,2 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
|
||||
@ -1,4 +0,0 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = "")]
|
||||
@ -1,23 +0,0 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("AxibugTransfer.Test")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("AxibugTransfer.Test")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("AxibugTransfer.Test")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
// 由 MSBuild WriteCodeFragment 类生成。
|
||||
|
||||
@ -1 +0,0 @@
|
||||
69e1cf852d1994ef7c0be22013f0f35cbb069029
|
||||
@ -1,10 +0,0 @@
|
||||
is_global = true
|
||||
build_property.TargetFramework = net6.0
|
||||
build_property.TargetPlatformMinVersion =
|
||||
build_property.UsingMicrosoftNETSdkWeb =
|
||||
build_property.ProjectTypeGuids =
|
||||
build_property.InvariantGlobalization =
|
||||
build_property.PlatformNeutralAssembly =
|
||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||
build_property.RootNamespace = AxibugTransfer.Test
|
||||
build_property.ProjectDir = D:\AxibugTransfer\AxibugTransfer.Test\
|
||||
@ -1,8 +0,0 @@
|
||||
// <auto-generated/>
|
||||
global using global::System;
|
||||
global using global::System.Collections.Generic;
|
||||
global using global::System.IO;
|
||||
global using global::System.Linq;
|
||||
global using global::System.Net.Http;
|
||||
global using global::System.Threading;
|
||||
global using global::System.Threading.Tasks;
|
||||
Binary file not shown.
Binary file not shown.
@ -1 +0,0 @@
|
||||
e179f8622bf9744cf7922575e7c888ae50556c67
|
||||
@ -1,18 +0,0 @@
|
||||
E:\AxibugTransfer\AxibugTransfer.Test\bin\Debug\net6.0\AxibugTransfer.Test.exe
|
||||
E:\AxibugTransfer\AxibugTransfer.Test\bin\Debug\net6.0\AxibugTransfer.Test.deps.json
|
||||
E:\AxibugTransfer\AxibugTransfer.Test\bin\Debug\net6.0\AxibugTransfer.Test.runtimeconfig.json
|
||||
E:\AxibugTransfer\AxibugTransfer.Test\bin\Debug\net6.0\AxibugTransfer.Test.dll
|
||||
E:\AxibugTransfer\AxibugTransfer.Test\bin\Debug\net6.0\ref\AxibugTransfer.Test.dll
|
||||
E:\AxibugTransfer\AxibugTransfer.Test\bin\Debug\net6.0\AxibugTransfer.Test.pdb
|
||||
E:\AxibugTransfer\AxibugTransfer.Test\bin\Debug\net6.0\AxibugTransfer.Tcp.dll
|
||||
E:\AxibugTransfer\AxibugTransfer.Test\bin\Debug\net6.0\AxibugTransfer.Tcp.pdb
|
||||
E:\AxibugTransfer\AxibugTransfer.Test\obj\Debug\net6.0\AxibugTransfer.Test.csproj.AssemblyReference.cache
|
||||
E:\AxibugTransfer\AxibugTransfer.Test\obj\Debug\net6.0\AxibugTransfer.Test.GeneratedMSBuildEditorConfig.editorconfig
|
||||
E:\AxibugTransfer\AxibugTransfer.Test\obj\Debug\net6.0\AxibugTransfer.Test.AssemblyInfoInputs.cache
|
||||
E:\AxibugTransfer\AxibugTransfer.Test\obj\Debug\net6.0\AxibugTransfer.Test.AssemblyInfo.cs
|
||||
E:\AxibugTransfer\AxibugTransfer.Test\obj\Debug\net6.0\AxibugTransfer.Test.csproj.CoreCompileInputs.cache
|
||||
E:\AxibugTransfer\AxibugTransfer.Test\obj\Debug\net6.0\AxibugTransfer.Test.csproj.CopyComplete
|
||||
E:\AxibugTransfer\AxibugTransfer.Test\obj\Debug\net6.0\AxibugTransfer.Test.dll
|
||||
E:\AxibugTransfer\AxibugTransfer.Test\obj\Debug\net6.0\ref\AxibugTransfer.Test.dll
|
||||
E:\AxibugTransfer\AxibugTransfer.Test\obj\Debug\net6.0\AxibugTransfer.Test.pdb
|
||||
E:\AxibugTransfer\AxibugTransfer.Test\obj\Debug\net6.0\AxibugTransfer.Test.genruntimeconfig.cache
|
||||
Binary file not shown.
@ -1 +0,0 @@
|
||||
b22f4ba34b841ddd82c288acc43dcad5f77f4cdd
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,90 +0,0 @@
|
||||
{
|
||||
"version": 3,
|
||||
"targets": {
|
||||
"net6.0": {
|
||||
"AxibugTransfer.Tcp/1.0.0": {
|
||||
"type": "project",
|
||||
"framework": ".NETCoreApp,Version=v6.0",
|
||||
"compile": {
|
||||
"bin/placeholder/AxibugTransfer.Tcp.dll": {}
|
||||
},
|
||||
"runtime": {
|
||||
"bin/placeholder/AxibugTransfer.Tcp.dll": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"AxibugTransfer.Tcp/1.0.0": {
|
||||
"type": "project",
|
||||
"path": "../AxibugTransfer.Tcp/AxibugTransfer.Tcp.csproj",
|
||||
"msbuildProject": "../AxibugTransfer.Tcp/AxibugTransfer.Tcp.csproj"
|
||||
}
|
||||
},
|
||||
"projectFileDependencyGroups": {
|
||||
"net6.0": [
|
||||
"AxibugTransfer.Tcp >= 1.0.0"
|
||||
]
|
||||
},
|
||||
"packageFolders": {
|
||||
"C:\\Users\\35337\\.nuget\\packages\\": {}
|
||||
},
|
||||
"project": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "D:\\AxibugTransfer\\AxibugTransfer.Test\\AxibugTransfer.Test.csproj",
|
||||
"projectName": "AxibugTransfer.Test",
|
||||
"projectPath": "D:\\AxibugTransfer\\AxibugTransfer.Test\\AxibugTransfer.Test.csproj",
|
||||
"packagesPath": "C:\\Users\\35337\\.nuget\\packages\\",
|
||||
"outputPath": "D:\\AxibugTransfer\\AxibugTransfer.Test\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\35337\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net6.0"
|
||||
],
|
||||
"sources": {
|
||||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net6.0": {
|
||||
"targetAlias": "net6.0",
|
||||
"projectReferences": {
|
||||
"D:\\AxibugTransfer\\AxibugTransfer.Tcp\\AxibugTransfer.Tcp.csproj": {
|
||||
"projectPath": "D:\\AxibugTransfer\\AxibugTransfer.Tcp\\AxibugTransfer.Tcp.csproj"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
}
|
||||
},
|
||||
"frameworks": {
|
||||
"net6.0": {
|
||||
"targetAlias": "net6.0",
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.100\\RuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,8 +0,0 @@
|
||||
{
|
||||
"version": 2,
|
||||
"dgSpecHash": "E/yrvGgmxWvu5Ot5O3T23suFTBDm79NrdvlbdABGNtUD5UvkZu6plI4sscxxfp9bBsG2g05W8R5+ccPY5Ducew==",
|
||||
"success": true,
|
||||
"projectFilePath": "D:\\AxibugTransfer\\AxibugTransfer.Test\\AxibugTransfer.Test.csproj",
|
||||
"expectedPackageFiles": [],
|
||||
"logs": []
|
||||
}
|
||||
28
README.md
28
README.md
@ -1,3 +1,29 @@
|
||||
# AxibugTransfer
|
||||
|
||||
一个自封装的端口转发类库
|
||||
一个自制的开源端口转发工具 By 皓月
|
||||
dotNet 版本: .Net 6
|
||||
平台: Windows/Linux/Other..
|
||||
|
||||
项目"AxibugTransfer"为控制台版本项目
|
||||
项目"AxibugTransfer.Tcp"为TCP端口转发库
|
||||
|
||||
##控制台版本使用方法
|
||||
|
||||
下载Release版本,或者自编译AxibugTransfer项目.
|
||||
编辑可执行程序目录的config.cfg配置文件
|
||||
|
||||
格式(可多行)
|
||||
本地监听端口:目标IP:目标端口
|
||||
|
||||
如:
|
||||
80:1.2.3.4:8080
|
||||
81:1.2.3.4:8081
|
||||
|
||||
标识
|
||||
将本地80端口TCP/HTTP请求转发到1.2.3.4的8080端口上
|
||||
将本地81端口 转发到1.2.3.4的8081端口上
|
||||
|
||||
TODO:
|
||||
完善的统计功能
|
||||
使用 IOCP/epoll 提升性能
|
||||
也许做一个GUI版本
|
||||
Loading…
Reference in New Issue
Block a user