Giter Site home page Giter Site logo

Openvpn about protoplex HOT 6 CLOSED

sapphiccode avatar sapphiccode commented on May 27, 2024
Openvpn

from protoplex.

Comments (6)

SapphicCode avatar SapphicCode commented on May 27, 2024

I assume sslh's is more broad due to more extensive testing. (I just implemented OpenVPN based on two clients' packets.) I'll look into it.

from protoplex.

werty1st avatar werty1st commented on May 27, 2024

Thanks for checking.

Unfortunalty i receive strange errors:

root@fw:~ # /root/protoplex.exe -bind 192.168.81.254:443 -http localhost:80 -tls localhost:443 -ovpn localhost:1194 -verbose
panic: regexp: Compile("^\x00[\r-\xff]8"): error parsing regexp: invalid UTF-8: `�]8`

goroutine 1 [running]:
regexp.MustCompile(0x5527dd, 0x8, 0x3)
	/usr/lib/go-1.12/src/regexp/regexp.go:272 +0x159
github.com/Pandentia/protoplex/protoplex/protocols.NewOpenVPNProtocol(0x67184ab54b99, 0xe, 0x7)

In a Golang Regex Example a saw that they used "`" (backtick) instead of double quotes.

I tried it and it doesn't throw an error.

		MatchRegexes: []*regexp.Regexp{
			regexp.MustCompile(`^\x00\x0D-\xFF\x38`), // asumming this variant is more common in newer clients
			regexp.MustCompile(`^\x00\x0D-\xFF$`),
		},

from protoplex.

SapphicCode avatar SapphicCode commented on May 27, 2024

Yup, just noticed that too. The issue (I think) is that I forgot how to do regex, as I haven't used it in months. I forgot square brackets around the range specifier. Pushing a new commit soon.

from protoplex.

SapphicCode avatar SapphicCode commented on May 27, 2024

Surprisingly, it isn't (though that would've been an issue too). Golang's regex library doesn't seem to be happy with me using \x notation. I'll look into it.

from protoplex.

SapphicCode avatar SapphicCode commented on May 27, 2024

Should be fixed in 8f634e6. Sorry for the trouble, it's been a while since I worked with Go's regex.

from protoplex.

werty1st avatar werty1st commented on May 27, 2024

Thx. That works :)

from protoplex.

Related Issues (6)

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.