mirror of
				https://github.com/oneclickvirt/ecs.git
				synced 2025-11-01 03:12:44 +08:00 
			
		
		
		
	Compare commits
	
		
			2 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | f3edb9861d | ||
| ![github-actions[bot]](/assets/img/avatar_default.png)  | 3989708c4e | 
| @@ -1,6 +1,6 @@ | ||||
| package network1 | ||||
|  | ||||
| import "github.com/oneclickvirt/security/network" | ||||
| import "github.com/oneclickvirt/basics/network" | ||||
|  | ||||
| // 本包在main中不使用 | ||||
| func NetworkCheck(checkType string, enableSecurityCheck bool, language string) (string, string, error) { | ||||
|   | ||||
							
								
								
									
										1
									
								
								go.mod
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								go.mod
									
									
									
									
									
								
							| @@ -16,7 +16,6 @@ require ( | ||||
| 	github.com/oneclickvirt/nt3 v0.0.9-20251031045617 | ||||
| 	github.com/oneclickvirt/pingtest v0.0.8-20250728015259 | ||||
| 	github.com/oneclickvirt/portchecker v0.0.3-20250728015900 | ||||
| 	github.com/oneclickvirt/security v0.0.7-20251030094114 | ||||
| 	github.com/oneclickvirt/speedtest v0.0.10-20250728015734 | ||||
| ) | ||||
|  | ||||
|   | ||||
							
								
								
									
										2
									
								
								go.sum
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								go.sum
									
									
									
									
									
								
							| @@ -124,8 +124,6 @@ github.com/oneclickvirt/pingtest v0.0.8-20250728015259 h1:egoxZRZBOWN3JqBwqEsULD | ||||
| github.com/oneclickvirt/pingtest v0.0.8-20250728015259/go.mod h1:gxwsxxwitNQiGq2OI0ZogYoOLwc8DtuOdSRe6/EvRqs= | ||||
| github.com/oneclickvirt/portchecker v0.0.3-20250728015900 h1:AomzdppSOFB70AJESQhlp0IPbsHTTJGimAWDk2TzCWM= | ||||
| github.com/oneclickvirt/portchecker v0.0.3-20250728015900/go.mod h1:9sjMDPCd4Z40wkYB0S9gQPGH8YPtnNE1ZJthVIuHUzA= | ||||
| github.com/oneclickvirt/security v0.0.7-20251030094114 h1:Ax8J1TYqprXyiWNAIJJ3xhoyGhvBlKw4m9j6va5Q2nM= | ||||
| github.com/oneclickvirt/security v0.0.7-20251030094114/go.mod h1:YfDilPFW22szjdUNgv4VOuSwHnZzsFsdPOfRYiMoc3I= | ||||
| github.com/oneclickvirt/speedtest v0.0.10-20250728015734 h1:HKO7/JQ74ueXA8Wo8NIvcK9DphbEG/YTfAAVz/akSiY= | ||||
| github.com/oneclickvirt/speedtest v0.0.10-20250728015734/go.mod h1:0W8vnMbA3iucXLXFdGfe9Ia6RPS0izRO7jvu/SnH1P8= | ||||
| github.com/oneclickvirt/stream v0.0.2-20250924154001 h1:GuJWdiPkoK84+y/+oHKr2Ghl3c/MzS9Z5m1nM+lMmy4= | ||||
|   | ||||
							
								
								
									
										6
									
								
								goecs.sh
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								goecs.sh
									
									
									
									
									
								
							| @@ -152,7 +152,7 @@ goecs_check() { | ||||
|     os=$(uname -s 2>/dev/null || echo "Unknown") | ||||
|     arch=$(uname -m 2>/dev/null || echo "Unknown") | ||||
|     check_china | ||||
|     ECS_VERSION="0.1.91" | ||||
|     ECS_VERSION="0.1.93" | ||||
|     for api in \ | ||||
|         "https://api.github.com/repos/oneclickvirt/ecs/releases/latest" \ | ||||
|         "https://githubapi.spiritlhl.workers.dev/repos/oneclickvirt/ecs/releases/latest" \ | ||||
| @@ -164,8 +164,8 @@ goecs_check() { | ||||
|         sleep 1 | ||||
|     done | ||||
|     if [ -z "$ECS_VERSION" ]; then | ||||
|         _yellow "Unable to get version info, using default version 0.1.91" | ||||
|         ECS_VERSION="0.1.91" | ||||
|         _yellow "Unable to get version info, using default version 0.1.93" | ||||
|         ECS_VERSION="0.1.93" | ||||
|     fi | ||||
|     version_output="" | ||||
|     for cmd_path in "goecs" "./goecs" "/usr/bin/goecs" "/usr/local/bin/goecs"; do | ||||
|   | ||||
							
								
								
									
										107
									
								
								goecs.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										107
									
								
								goecs.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,107 @@ | ||||
| -----------------------VPS Fusion Monster Test (Unofficial)----------------------- | ||||
| Version: v0.1.93 | ||||
| Review Channel: https://t.me/+UHVoo2U4VyA5NTQ1 | ||||
| Go Project: https://github.com/oneclickvirt/ecs | ||||
| Shell Project: https://github.com/spiritLHLS/ecs | ||||
| -----------------------------System-Basic-Information----------------------------- | ||||
|  CPU Model           : Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz | ||||
|  CPU Cores           : 1 Socket(s), 2 Physical Core(s), 4 Logical Thread(s) | ||||
|  CPU Cache           : L1: 160 KB / L2: 2 MB / L3: 48 MB | ||||
|  AES-NI              : ✔️ Enabled | ||||
|  VM-x/AMD-V/Hyper-V  : ✔️ Enabled | ||||
|  RAM                 : 946.49 MB / 15.62 GB | ||||
|  Virtio Balloon      : ❌ Undetected | ||||
|  KSM                 : ❌ Undetected | ||||
|  Swap                : 0.00 MB / 4.00 GB | ||||
|  Disk 1              : 4.00 GB / 73.27 GB [5.5%%] /dev/sdb1 - /mnt | ||||
|  Disk 2              : 51.17 GB / 71.61 GB [71.5%%] /dev/sda1 - / | ||||
|  Boot Path           : /dev/sda1 | ||||
|  OS Release          : ubuntu 24.04 [x86_64]  | ||||
|  Kernel              : 6.11.0-1018-azure | ||||
|  Uptime              : 0 days, 00 hours, 01 minutes | ||||
|  Current Time Zone   : UTC | ||||
|  Load                : 4.08 / 1.14 / 0.39 | ||||
|  VM Type             : Microsoft Hyper-V | ||||
|  NAT Type            : Port Restricted Cone | ||||
|  Tcp Accelerate      : cubic | ||||
|  IPV4 ASN            : AS8075 MICROSOFT-CORP-MSN-AS-BLOCK | ||||
|  IPV4 Location       : Cheyenne / Wyoming / United States | ||||
| ----------------------------CPU-Test--sysbench-Method----------------------------- | ||||
| 1 Thread(s) Test: 2683.62 | ||||
| 4 Thread(s) Test: 5709.07 | ||||
| ----------------------------Memory-Test--stream-Method---------------------------- | ||||
| Function    Best Rate MB/s  Avg time     Min time     Max time | ||||
| Copy:           22380.8     0.007231     0.007149     0.007378 | ||||
| Scale:          13601.9     0.011850     0.011763     0.012059 | ||||
| Add:            14843.2     0.016316     0.016169     0.016517 | ||||
| Triad:          14771.1     0.016394     0.016248     0.016576 | ||||
| ------------------------------Disk-Test--fio-Method------------------------------- | ||||
| Test Path    Block     Read(IOPS)           Write(IOPS)          Total(IOPS)          | ||||
| /tmp              4k        39.15 MB/s(9788)        39.23 MB/s(9808)        78.39 MB/s(19.6k)       | ||||
| /tmp              64k       206.36 MB/s(3224)       207.44 MB/s(3241)       413.80 MB/s(6465)       | ||||
| /tmp              512k      202.55 MB/s(395)        213.31 MB/s(416)        415.85 MB/s(811)        | ||||
| /tmp              1m        201.03 MB/s(196)        214.41 MB/s(209)        415.44 MB/s(405)        | ||||
| -----------------------Cross-Border-Streaming-Media-Unlock------------------------ | ||||
| IPV4: | ||||
| ===============[ Global ]=============== | ||||
| Apple                     YES (Region: USA) [Native] | ||||
| BingSearch                YES (Region: US) | ||||
| Claude                    YES (Region: US) [Native] | ||||
| Dazn                      Banned | ||||
| Disney+                   NO (forbidden-location) | ||||
| Gemini                    YES (Region: US) [Native] | ||||
| GoogleSearch              YES | ||||
| Google Play Store         YES (Region: US) [Native] | ||||
| IQiYi                     YES (Region: US) [Native] | ||||
| Instagram Licensed Audio  YES [Native] | ||||
| KOCOWA                    YES [Native] | ||||
| MetaAI                    YES [Native] | ||||
| Netflix                   YES (Region: US) [Native] | ||||
| Netflix CDN               CO | ||||
| OneTrust                  YES (Region: US WYOMING) [Via DNS] | ||||
| ChatGPT                   YES (Region: US) [Native] | ||||
| Paramount+                YES [Native] | ||||
| Amazon Prime Video        NO | ||||
| Reddit                    NO | ||||
| SonyLiv                   YES (Region: IN) [Native] | ||||
| Sora                      YES (Region: US) | ||||
| Spotify Registration      YES (Region: US) [Native] | ||||
| Steam Store               YES (Community Available) (Region: US) | ||||
| TVBAnywhere+              YES (Region: US) [Native] | ||||
| TikTok                    YES (Region: US) [Native] | ||||
| Viu.com                   YES [Native] | ||||
| Wikipedia Editability     NO | ||||
| YouTube Region            YES (Region: US) [Native] | ||||
| YouTube CDN               SLC | ||||
| ---------------------------------Email-Port-Check--------------------------------- | ||||
| Platform  SMTP  SMTPS POP3  POP3S IMAP  IMAPS | ||||
| LocalPort ✘     ✘     ✘     ✘     ✘     ✘     | ||||
| QQ        ✔     ✔     ✔     ✘     ✔     ✘     | ||||
| 163       ✔     ✔     ✔     ✘     ✔     ✘     | ||||
| Sohu      ✔     ✔     ✔     ✘     ✔     ✘     | ||||
| Yandex    ✔     ✔     ✔     ✘     ✔     ✘     | ||||
| Gmail     ✔     ✔     ✘     ✘     ✘     ✘     | ||||
| Outlook   ✔     ✘     ✔     ✘     ✔     ✘     | ||||
| Office365 ✔     ✘     ✔     ✘     ✔     ✘     | ||||
| Yahoo     ✔     ✔     ✘     ✘     ✘     ✘     | ||||
| MailCOM   ✔     ✔     ✔     ✘     ✔     ✘     | ||||
| MailRU    ✔     ✔     ✘     ✘     ✔     ✘     | ||||
| AOL       ✔     ✔     ✘     ✘     ✘     ✘     | ||||
| GMX       ✔     ✔     ✔     ✘     ✔     ✘     | ||||
| Sina      ✔     ✔     ✔     ✘     ✔     ✘     | ||||
| Apple     ✘     ✔     ✘     ✘     ✘     ✘     | ||||
| FastMail  ✘     ✔     ✘     ✘     ✘     ✘     | ||||
| ProtonMail✘     ✘     ✘     ✘     ✘     ✘     | ||||
| MXRoute   ✔     ✘     ✔     ✘     ✔     ✘     | ||||
| Namecrane ✔     ✔     ✔     ✘     ✔     ✘     | ||||
| XYAMail   ✘     ✘     ✘     ✘     ✘     ✘     | ||||
| ZohoMail  ✘     ✔     ✘     ✘     ✘     ✘     | ||||
| Inbox_eu  ✔     ✔     ✔     ✘     ✘     ✘     | ||||
| Free_fr   ✘     ✔     ✔     ✘     ✔     ✘     | ||||
| ------------------------------------Speed-Test------------------------------------ | ||||
| Location        Upload Speed    Download Speed  Latency         PacketLoss       | ||||
| Speedtest.net   2474.54 Mbps    9291.48 Mbps    4.19386ms       0.00% (Sent: 402/Dup: 0/Max: 401) | ||||
| ---------------------------------------------------------------------------------- | ||||
| Cost    Time          : 2 min 38 sec | ||||
| Current Time          : Fri Oct 31 07:45:19 UTC 2025 | ||||
| ---------------------------------------------------------------------------------- | ||||
| @@ -23,8 +23,9 @@ import ( | ||||
| 	"github.com/oneclickvirt/basics/system" | ||||
| 	butils "github.com/oneclickvirt/basics/utils" | ||||
| 	. "github.com/oneclickvirt/defaultset" | ||||
| 	"github.com/oneclickvirt/security/network" | ||||
| 	"github.com/oneclickvirt/basics/network" | ||||
| ) | ||||
| const token = "OvwKx5qgJtf7PZgCKbtyojSU.MTcwMTUxNzY1MTgwMw" | ||||
|  | ||||
| // 获取本程序本日及总执行的统计信息 | ||||
| type StatsResponse struct { | ||||
| @@ -54,13 +55,13 @@ func PrintCenteredTitle(title string, width int) { | ||||
| // PrintHead 根据语言打印头部信息 | ||||
| func PrintHead(language string, width int, ecsVersion string) { | ||||
| 	if language == "zh" { | ||||
| 		PrintCenteredTitle("VPS融合怪测试", width) | ||||
| 		PrintCenteredTitle("VPS融合怪测试(非官方编译)", width) | ||||
| 		fmt.Printf("版本:%s\n", ecsVersion) | ||||
| 		fmt.Println("测评频道: https://t.me/+UHVoo2U4VyA5NTQ1\n" + | ||||
| 			"Go项目地址:https://github.com/oneclickvirt/ecs\n" + | ||||
| 			"Shell项目地址:https://github.com/spiritLHLS/ecs") | ||||
| 	} else { | ||||
| 		PrintCenteredTitle("VPS Fusion Monster Test", width) | ||||
| 		PrintCenteredTitle("VPS Fusion Monster Test (Unofficial)", width) | ||||
| 		fmt.Printf("Version: %s\n", ecsVersion) | ||||
| 		fmt.Println("Review Channel: https://t.me/+UHVoo2U4VyA5NTQ1\n" + | ||||
| 			"Go Project: https://github.com/oneclickvirt/ecs\n" + | ||||
| @@ -250,7 +251,6 @@ func PrintAndCapture(f func(), tempOutput, output string) string { | ||||
| func UploadText(absPath string) (string, string, error) { | ||||
| 	primaryURL := "http://hpaste.spiritlhl.net/api/UL/upload" | ||||
| 	backupURL := "https://paste.spiritlhl.net/api/UL/upload" | ||||
| 	token := network.SecurityUploadToken | ||||
| 	client := req.C().SetTimeout(6 * time.Second) | ||||
| 	client.R(). | ||||
| 		SetRetryCount(2). | ||||
|   | ||||
		Reference in New Issue
	
	Block a user