antibody

package module
v0.0.0-...-bf00afc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

README

AntiBody

Some POC of net services.

The software is developed entirely based on existing materials available on the internet, intended only for communication and learning purposes, with no malicious intent. Users assume full responsibility for all their actions.

Documentation

Index

Constants

View Source
const (
	ClashTypeClassic = "Clash"
	ClashTypePremium = "Clash Premium"
	ClashTypeMihomo  = "Mihomo"
	ClashTypeBox     = "sing-box"
)

Variables

This section is empty.

Functions

func ProbeAnchor

func ProbeAnchor(ctx context.Context, ip net.IP, conn net.PacketConn, query []byte) (*anchor.Response, error)

ProbeAnchor probe anchor service for addr. If ctx done and not finished, here will set conn's deadline to now to cancel it.

Types

type ClashInfo

type ClashInfo struct {
	Type    string
	Version string
}

func ProbeClash

func ProbeClash(ctx context.Context, client *http.Client, httpUrl *url.URL) (*ClashInfo, error)

ProbeClash probe clash service for httpUrl.

Inspired by: https://github.com/MikeWang000000/ClashScan/

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL