Documentation ¶
Index ¶
- Constants
- Variables
- func BuildLie(request []byte, id int, qtype int) []byte
- func ConnectionMonitor(devices []string)
- func DevicePrint()
- func Dial(addresses []net.IP, port int, b []byte, conf *Config) (net.Conn, error)
- func DialStrip(host string, fronting string) (*tls.Conn, error)
- func GetHost(b []byte) (offset int, length int)
- func GetLocalAddr(name string, port int, ipv6 bool) (*net.TCPAddr, error)
- func GetOriginalDST(conn *net.TCPConn) (*net.TCPAddr, error)
- func GetPAC(address string) string
- func GetQName(buf []byte) (string, int, int)
- func GetSNI(b []byte) (offset int, length int)
- func HTTP(client net.Conn, addresses []net.IP, port int, b []byte, conf *Config) (net.Conn, error)
- func HttpMove(conn net.Conn, host string, b []byte) bool
- func Init()
- func IsAddressInUse(err error) bool
- func IsNormalError(err error) bool
- func LoadConfig(filename string) error
- func LoadHosts(filename string) error
- func NSLookup(name string, qtype uint16) (int, []net.IP)
- func PackQName(name string) []byte
- func PackRequest(name string, qtype uint16) []byte
- func Proxy(client net.Conn)
- func SNIProxy(client net.Conn)
- func SendFakePacket(connInfo *ConnectionInfo, payload []byte, config *Config, count int) error
- func SocksProxy(client net.Conn)
- func TCPlookup(request []byte, address string) ([]byte, error)
- func TCPlookupDNS64(request []byte, address string, offset int, prefix []byte) ([]byte, error)
- func TLSlookup(request []byte, address string) ([]byte, error)
- type Answer
- type Config
- type ConnectionInfo
Constants ¶
View Source
const ( OPT_NONE = 0x0 OPT_TTL = 0x1 << 0 OPT_MSS = 0x1 << 1 OPT_WMD5 = 0x1 << 2 OPT_WACK = 0x1 << 3 OPT_WCSUM = 0x1 << 4 OPT_HTTPS = 0x1 << 5 OPT_STRIP = 0x1 << 6 OPT_NAT64 = 0x1 << 7 OPT_IPV4 = 0x1 << 8 OPT_IPV6 = 0x1 << 9 OPT_MODE2 = 0x1 << 10 )
View Source
const ( SO_ORIGINAL_DST = 80 IP6T_SO_ORIGINAL_DST = 80 )
Variables ¶
View Source
var ConnInfo4 [65536]*ConnectionInfo
View Source
var ConnInfo6 [65536]*ConnectionInfo
View Source
var ConnSyn4 [65536]bool
View Source
var ConnSyn6 [65536]bool
View Source
var DNS string = ""
View Source
var DNS64 string = ""
View Source
var DNSCache map[string]Answer
View Source
var DomainMap map[string]Config
View Source
var Forward bool = 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, "w-md5": OPT_WMD5, "w-ack": OPT_WACK, "w-csum": OPT_WCSUM, "https": OPT_HTTPS, "strip": OPT_STRIP, "nat64": OPT_NAT64, "ipv4": OPT_IPV4, "ipv6": OPT_IPV6, "mode2": OPT_MODE2, }
View Source
var Nose []string
View Source
var SubdomainDepth = 2
Functions ¶
func ConnectionMonitor ¶
func ConnectionMonitor(devices []string)
func DevicePrint ¶
func DevicePrint()
func IsAddressInUse ¶
func IsNormalError ¶
func LoadConfig ¶
func PackRequest ¶
func SendFakePacket ¶
func SendFakePacket(connInfo *ConnectionInfo, payload []byte, config *Config, count int) error
func SocksProxy ¶
func TCPlookupDNS64 ¶
Types ¶
type Config ¶
func ConfigLookup ¶
type ConnectionInfo ¶
func DialConnInfo ¶
Click to show internal directories.
Click to hide internal directories.