This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 快速沙盒检测 - 使用多种方法,减少等待时间 | |
is_sandbox() { | |
# 方法1: 快速网络检测 (超时1秒) | |
if ! curl -s --max-time 1 http://8.8.8.8 >/dev/null 2>&1; then | |
return 0 # 是沙盒 | |
fi | |
# 方法2: 检查特定文件或环境变量 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
busybox awk '{print}' /flag |