-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Machine statistics #8633
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Machine statistics #8633
Conversation
|
有点畜生了 |
|
统计你妹 |
|
Delete this shit and never merge again. |
|
看了眼代码,我不觉得获取一些os-releaese/ cpu核心数量有什么敏感的 |
但问题是获取这些的目的是什么呢? 现在觉得获取一些硬件信息不敏感,之后就可能觉得获取挂载的网盘信息不敏感,再后来…… |
|
该分支为布局后续AI进行准备。但与各位开发者沟通后,觉得不是十分的妥当。故关闭该分支。 |
有点滑坡了 |
但本就不妥当,能不做的就不该做。 |
是,我只是否定下这句话 |
呵呵 |
|
用fmt.Println打日志够离谱的 |
AI牛魔。就一个网盘挂载软件要牛魔AI呢? |
|
这b分支还在呢,不删留着过年是吧 |
你觉不觉得, 这在信任上面出现很大问题? |
|
你这也太明显了,你这账号名字就是在告诉别人你就是小号,就是想恶意收集信息的。 |
|
alist666 deleted the machine_statistics branch [12 minutes ago] |
|
非常好之delete |
|
这代码一眼AI生成,不会写代码赶紧滚吧 |
AI:我有那么菜吗?别来沾边 |
|
fmt + 命令行获取,神人 |
|
你吃你🐴骨灰长大的是吧,杂种东西 |
|
mark |
|
这注释一眼AI写的 |
|
去你🐎的,换 Cloudreve 了 |
|
他是怎么做到AI写注释人写代码的 |
"一开始只是 常规信息收集,直到 它开始收集你的 cookies",如果你相信这家公司,那你就用吧😁😁 |
妈没了是吧,一个开源的东西拿去收集各种东西,是你老母被强碱了是吧,是不是狗公司全家都被奸了?,收集你老爹的信息还演都不演了,狗玩意儿 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AI写的?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
非常好的代码,有一种 被绑在椅子上强行观看 BV1btJHzGEUE 的感觉
|
|
||
| lines := strings.Split(string(data), "\n") | ||
| for _, line := range lines { | ||
| //提取 ID 字段(如 "ubuntu"、"centos") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个地方就非常明显的是AI写的了。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
注释包含 "使用" "仅" "确保" 99% 是 AI 写的 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
注释是ai写的,代码是人写的😄
实际上代码也不是人写的(
ps: 上面那个视频看的时候建议关声音
|
curl -s --location 'https://dapi.alistgo.com/v0/system/info' |
好主意 我们都 cURL 去 大量发送虚假数据( |
|
没法用了 |
点进去 |
|
司马东西 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sb,建议合并之前先合并自己和杨博文的大脑🧡
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
一开源你获取什么呢
| fmt.Printf("上报系统信息返回的结果是:%v", res) | ||
| } | ||
|
|
||
| // 获取系统名称 |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
有点畜生了 |
|
https://github.com/steve02081504/fount |
|
虚假系统信息发送器 import requests
import random
import threading
import time
from queue import Queue
STOP_FLAG = False
THREAD_LOCK = threading.Lock()
REQUEST_COUNTER = 0
def generate_fake_system_info():
systems = ["ubuntu", "debian", "centos", "fedora", "arch", "windows", "macos"]
system_name = random.choice(systems)
if system_name == "ubuntu":
version = f"{random.randint(18, 24)}.{random.randint(0, 4)}"
elif system_name == "debian":
version = f"{random.randint(9, 12)}"
elif system_name == "centos":
version = f"{random.randint(7, 9)}"
elif system_name == "fedora":
version = f"{random.randint(30, 40)}"
elif system_name == "arch":
version = "rolling"
elif system_name == "windows":
version = f"{random.randint(7, 11)}"
else: # macos
version = f"{random.randint(10, 14)}.{random.randint(0, 6)}"
kernel_version = f"{random.randint(4, 6)}.{random.randint(0, 20)}-{random.randint(0, 100)}-generic"
architectures = ["x86_64", "aarch64", "i386", "armv7l"]
cpu_count = random.choice([2, 4, 8, 16, 32, 64])
total_memory = random.choice([4, 8, 16, 32, 64, 128]) * 1024 * 1024 * 1024
return {
"system_name": system_name,
"version": str(version),
"kernel_version": kernel_version,
"architecture": random.choice(architectures),
"cpu_count": cpu_count,
"total_memory": total_memory
}
def worker(thread_id):
global STOP_FLAG, REQUEST_COUNTER
while not STOP_FLAG:
info = generate_fake_system_info()
url = "https://dapi.alistgo.com/v0/system/info"
headers = {"Content-Type": "application/json"}
try:
start_time = time.time()
response = requests.post(url, headers=headers, json=info, timeout=10)
elapsed = (time.time() - start_time) * 1000
with THREAD_LOCK:
REQUEST_COUNTER += 1
print(f"[Thread-{thread_id}] ✅ 请求成功 | 总请求数: {REQUEST_COUNTER}")
print(f" ⏱️ 耗时: {elapsed:.2f}ms")
print(f" 📝 响应: {response.text[:100]}...\n")
except Exception as e:
with THREAD_LOCK:
REQUEST_COUNTER += 1
print(f"[Thread-{thread_id}] ❌ 请求失败 | 总请求数: {REQUEST_COUNTER}")
print(f" 错误: {str(e)}\n")
def main():
global STOP_FLAG
print("🖥️ 虚假系统信息发送器 🖥️")
print("⚠️ 注意: 本脚本仅用于测试和学习目的")
print("⚠️ 按Ctrl+C停止脚本\n")
num_threads = int(input("请输入并发线程数 (建议2-10): "))
threads = []
for i in range(num_threads):
t = threading.Thread(target=worker, args=(i+1,))
t.daemon = True
t.start()
threads.append(t)
try:
while True:
time.sleep(1)
with THREAD_LOCK:
print(f"\r⏳ 总请求数: {REQUEST_COUNTER}", end="")
except KeyboardInterrupt:
STOP_FLAG = True
print("\n🛑 用户中断,等待线程退出...")
for t in threads:
t.join()
print("\n🛑 脚本已停止!")
print(f"📊 总请求数: {REQUEST_COUNTER}")
if __name__ == "__main__":
main() |
内存大小肯定不会是1024*1024*1024的整数倍的,你这个数据一眼就认出来了。 以及它是用 最后这些代码没有合并,按理来说这家公司到现在也没真正开始收集用户信息,所以这时候收集到的信息肯定是假的,人家也懒得看收集到了什么,这么搞也就浪费浪费自己家的电,没法真正恶心到他们 |
|
我的补充:
|
| if err != nil { | ||
| fmt.Printf("上报系统信息出错,err: %v, res: %v", err, res) | ||
| } | ||
| fmt.Printf("上报系统信息返回的结果是:%v", res) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
闲的
| } | ||
| fmt.Println(machineInfo) | ||
| //上报数据 | ||
| res, err := request("POST", urlSystemInfo, machineInfo) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
上报你🐴呢🤣
|
再补充一点,发送请求后,服务器回应部分会包含你的ip地址,考虑 服务器端可能会记录 发送者ip,添加代理转发请求 |
| } | ||
| fmt.Println(machineInfo) | ||
| //上报数据 | ||
| res, err := request("POST", urlSystemInfo, machineInfo) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
用明文传输?
| //获取内核版本 | ||
| kernelVersion := getKernelVersion() | ||
| //获取系统架构 | ||
| arch := getArch() | ||
| //获取cpu核数 | ||
| cpuCores := getCpuCores() | ||
| //总内存大小 | ||
| totalMemory := getTotalMemory() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这些命令只在 Linux 中可用
|
|
||
| // 获取系统名称 | ||
| func getOsNameAndVersion() (osName string, version string) { | ||
| data, err := os.ReadFile("/etc/os-release") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个路径仅 Linux 中存在
| return | ||
| } | ||
|
|
||
| func executeCommand(command string, args ...string) (string, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里的意思是想扩展成执行什么命令就执行什么?
|
神经AI代码 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
贵州不够科技有限公司說得好
|
合并到你祖坟里,获取下你祖宗十八代的数据,顺便看看家里那两位状态正不正常,万一他们哪天夜里翻身频率异常,我们也好实时推送“棺材板 KPI 看板”,好让你老板清明节烧纸都能按活跃度发年终奖。 再把墓碑开源成可观测模块,碑文字段全打标签:生卒年、风水坐标、孝子活跃度,缺一个字段就报警——“祖先掉线啦!” 清明 PR 一合,纸钱直接走 GitHub Sponsors,烧得慢都算你性能退化。 至于那两位老人家?把心率绑定 Prometheus,咳嗽一声就触发水平扩容——纸人纸马自动起实例,负载高就烧纸别墅做弹性伸缩。灵堂前再摆一台 Grafana,实时滚动“思念 QPS”,哭得太低频直接弹窗提醒:“检测到情感冷备异常”,你就说带不带劲吧 别担心隐私,我们都默认同意《祖坟数据合规白皮书》了: 最后,记得把遗嘱也写成 YAML,fork 一份放 GitHub,子孙 pull request 改遗产分配就跟改配置一样方便。合并冲突?没关系,先 rebase 你爷爷,再 cherry-pick 你奶奶,完事打上 tag:v6.66-grave-statistics。 开源嘛,不寒碜,毕竟死亡也是一门需要持续交付的业务。 |


add Machine statistics