GithubHelp home page GithubHelp logo

csu-xiao-an / goproxy-managed Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cloudveiltech/goproxy-managed

0.0 1.0 0.0 3.23 MB

P/Invoke wrapper for goproxy

License: MIT License

Batchfile 1.26% Go 33.20% C# 56.30% PowerShell 8.14% Shell 1.10%

goproxy-managed's Introduction

GoProxy wrapper

This is go proxy wrapped for .NET 2.0. Repo contains golang part and c# part.

  • .NET MS Visual Studio debugger conflicts with GO Crash Handler. So in order to work it normally you have to apply a small patch to go runtime. In file c:\Go\src\runtime\signal_windows.go, line 154 or whatever path you have add
// lastcontinuehandler is reached, because runtime cannot handle
// current exception. lastcontinuehandler will print crash info and exit.
//
// It is nosplit for the same reason as exceptionhandler.
//
//go:nosplit
func lastcontinuehandler(info *exceptionrecord, r *context, gp *g) int32 {
   if testingWER {
   	return _EXCEPTION_CONTINUE_SEARCH
   }

   return _EXCEPTION_CONTINUE_SEARCH //this is new line. We had to pass all of this to .NET handler so debugging would work in MSVS
  • Custom certificate should be placed in the same directory as dll file with names cert.pem and key.pem
  • C header with all APIs you can see in proxy.h file
  • To build this library just run build.bat
  • Compiled dll is placed to testapp/proxy.dll
  • All interaction samples are place into Form1.cs
  • Path to Dll can be altered in GoproxyWrapper.Const class
  • All wrapper classes is placed into app/GoproxyWrapper

Dependencies to build

goproxy-managed's People

Contributors

kfreezen avatar patriciy avatar

Watchers

 avatar

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.