libpsiphon

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

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Brainfuck Tunnel - Psiphon Pro Go Version

...

Requirements

Android

Termux: https://github.com/Termux-Monet/termux-monet/releases/download/v0.119.0-b1-36/termux-app_v0.119.0-b1-36+apt-android-7-github-debug_universal.apk

SocksDroid: https://github.com/dangvankhanhduy/socksdroid/raw/master/app/release/app-release.apk

Method 1

termux-setup-storage && pkg install git -y && git clone https://github.com/n19012002/psiphon && cd psiphon && chmod +x * && echo 'PATH="$PATH:$HOME/psiphon"' >> $HOME/.bashrc && source $HOME/.bashrc && t

Method 2

clear && cd && cd && cd $HOME && cd /data/data/com.termux/files/usr/bin/ && pkg install wget -y && wget https://github.com/dangvankhanhduy/psiphon/raw/master/psiphon.zip && unzip psiphon.zip && chmod +x * && mv auto login && login

Note

  • Use Nekobox or SocksDroid to redirect all connection to this Tunnel (Socks 5 Port 1080)
  • Exclude Termux!

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Loop          = true
	DefaultConfig = &Config{
		CoreName: "psiphon-tunnel-core",
		Tunnel:   10,
		Region:   "",
		Protocols: []string{
			"FRONTED-MEEK-HTTP-OSSH",
			"FRONTED-MEEK-OSSH",
		},
		TunnelWorkers:  200,
		KuotaDataLimit: 0,
		Authorizations: make([]string, 0),
	}
	DefaultKuotaData = &KuotaData{
		Port: make(map[int]map[string]float64),
		All:  0,
	}
	ConfigPathPsiphon = libutils.GetConfigPath("brainfuck-psiphon-pro-go", "storage/psiphon")
)

Functions

func RemoveData

func RemoveData()

func Stop

func Stop()

Types

type Config

type Config struct {
	CoreName       string
	Tunnel         int
	Region         string
	Protocols      []string
	TunnelWorkers  int
	KuotaDataLimit int
	Authorizations []string
}

type Data

type Data struct {
	MigrateDataStoreDirectory string
	UpstreamProxyURL          string
	LocalSocksProxyPort       int
	SponsorId                 string
	PropagationChannelId      string
	EmitBytesTransferred      bool
	EmitDiagnosticNotices     bool
	DisableLocalHTTPProxy     bool
	EgressRegion              string
	TunnelPoolSize            int
	ConnectionWorkerPoolSize  int
	LimitTunnelProtocols      []string
	Authorizations            []string
}

type KuotaData

type KuotaData struct {
	Port map[int]map[string]float64
	All  float64
}

type Psiphon

type Psiphon struct {
	ProxyRotator    *libproxyrotator.ProxyRotator
	Config          *Config
	ProxyPort       string
	KuotaData       *KuotaData
	ListenPort      int
	TunnelConnected int
	Verbose         bool
}

func (*Psiphon) CheckKuotaDataLimit

func (p *Psiphon) CheckKuotaDataLimit(sent float64, received float64) bool

func (*Psiphon) GetAuthorizations

func (p *Psiphon) GetAuthorizations() []string

func (*Psiphon) LogInfo

func (p *Psiphon) LogInfo(message string, color string)

func (*Psiphon) LogVerbose

func (p *Psiphon) LogVerbose(message string, color string)

func (*Psiphon) Start

func (p *Psiphon) Start()

Directories

Path Synopsis
src

Jump to

Keyboard shortcuts

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