Documentation
¶
Index ¶
- Constants
- Variables
- func AddECS(request []byte, ecs net.IP) []byte
- func CheckServer(URL string, ip net.IP, timeout uint)
- func DNSDaemon()
- func DNSRecvDaemon()
- func LoadConfig() error
- func LoadHosts(name string) error
- func NAT64(ipv4 net.IP, ipv6 net.IP, forward bool)
- func ProxyRedirect(forward bool)
- func Scan(ipRange string, speed int)
- func SendFakePacket(winDivert *godivert.WinDivertHandle, info *ConnInfo, packet *godivert.Packet, ...) (int, error)
- func SocksProxyAddr(conn net.Conn, ip net.IP, port int, proxy *net.TCPAddr, header []byte)
- func SocksProxyHost(conn net.Conn, host string, port int, proxy *net.TCPAddr, header []byte)
- func TCPDaemon(address string, forward bool)
- func TCPDetection(winDivert *godivert.WinDivertHandle, winDivertAddr godivert.WinDivertAddress, ...) []string
- func TCPRecv(srcPort int, forward bool)
- func TCPlookup(request []byte, address string) ([]byte, error)
- func TCPlookupDNS64(request []byte, address string, offset int, prefix []byte) ([]byte, error)
- func UDPDaemon(dstPort int, forward bool)
- func Wait()
- type Config
- type ConnInfo
- type IPConfig
- type ProxyInfo
Constants ¶
View Source
const ( OPT_NONE = 0x0 OPT_TTL = 0x1 << 0 OPT_MD5 = 0x1 << 1 OPT_WMD5 = 0x1 << 2 OPT_WACK = 0x1 << 3 OPT_WCSUM = 0x1 << 4 OPT_BAD = 0x1 << 5 OPT_IPOPT = 0x1 << 6 OPT_SEQ = 0x1 << 7 OPT_HTTPS = 0x1 << 8 OPT_MSS = 0x1 << 9 OPT_WTFO = 0x1 << 10 OPT_WULEN = 0x1 << 11 OPT_MODE2 = 0x10000 << 0 OPT_DF = 0x10000 << 1 OPT_TFO = 0x10000 << 2 OPT_SYN = 0x10000 << 3 OPT_NOFLAG = 0x10000 << 4 OPT_SSEG = 0x10000 << 5 OPT_QUIC = 0x10000 << 6 OPT_FILTER = 0x10000 << 7 OPT_SAT = 0x10000 << 8 OPT_NORST = 0x10000 << 9 )
Variables ¶
View Source
var BadIPMap map[string]bool
View Source
var CookiesMap map[string][]byte
View Source
var DNS string = ""
View Source
var DetectEnable = false
View Source
var DomainMap map[string]Config
View Source
var Forward bool = false
View Source
var IPBlock = false
View Source
var IPMap map[string]IPConfig
View Source
var IPMode = false
View Source
var LogLevel = 0
View Source
var Logger *log.Logger
View Source
var MethodMap = map[string]uint32{ "none": OPT_NONE, "ttl": OPT_TTL, "mss": OPT_MSS, "md5": OPT_MD5, "w-md5": OPT_WMD5, "w-ack": OPT_WACK, "w-csum": OPT_WCSUM, "bad": OPT_BAD, "ipopt": OPT_IPOPT, "seq": OPT_SEQ, "https": OPT_HTTPS, "w-tfo": OPT_WTFO, "w-ulen": OPT_WULEN, "mode2": OPT_MODE2, "df": OPT_DF, "tfo": OPT_TFO, "syn": OPT_SYN, "no-flag": OPT_NOFLAG, "s-seg": OPT_SSEG, "quic": OPT_QUIC, "filter": OPT_FILTER, "sat": OPT_SAT, "no-rst": OPT_NORST, }
View Source
var PortList4 [65536]*ConnInfo
View Source
var PortList6 [65536]*ConnInfo
View Source
var ProxyList4 [65536]*ProxyInfo
View Source
var ProxyList6 [65536]*ProxyInfo
View Source
var RSTFilterEnable = false
View Source
var ScanTimeout uint = 0
View Source
var ScanURL string = ""
View Source
var SubdomainDepth = 2
View Source
var SynOption []byte
View Source
var TFOEnable = false
Functions ¶
func DNSRecvDaemon ¶
func DNSRecvDaemon()
func LoadConfig ¶
func LoadConfig() error
func ProxyRedirect ¶ added in v0.4.2
func ProxyRedirect(forward bool)
func SendFakePacket ¶
func SocksProxyAddr ¶ added in v0.4.2
func SocksProxyHost ¶ added in v0.4.2
func TCPDetection ¶ added in v0.3.3
func TCPDetection(winDivert *godivert.WinDivertHandle, winDivertAddr godivert.WinDivertAddress, srcIP []byte, ips []string, port, ttl int) []string
func TCPlookupDNS64 ¶
Types ¶
type Config ¶
type IPConfig ¶
func IPBlockLookup ¶
Click to show internal directories.
Click to hide internal directories.