Skip to content

Conversation

@alist666
Copy link
Contributor

@alist666 alist666 commented Jun 5, 2025

add Machine statistics

@skysliences skysliences closed this Jun 5, 2025
@Pochinki98
Copy link

有点畜生了

@hhsw2015
Copy link

统计你妹

@liu731
Copy link

liu731 commented Jun 11, 2025

Delete this shit and never merge again.

@duzefu
Copy link

duzefu commented Jun 11, 2025

看了眼代码,我不觉得获取一些os-releaese/ cpu核心数量有什么敏感的

@AemonCao
Copy link

看了眼代码,我不觉得获取一些os-releaese/ cpu核心数量有什么敏感的

但问题是获取这些的目的是什么呢?

现在觉得获取一些硬件信息不敏感,之后就可能觉得获取挂载的网盘信息不敏感,再后来……

@alist666
Copy link
Contributor Author

该分支为布局后续AI进行准备。但与各位开发者沟通后,觉得不是十分的妥当。故关闭该分支。

@chengnan049
Copy link

看了眼代码,我不觉得获取一些os-releaese/ cpu核心数量有什么敏感的

但问题是获取这些的目的是什么呢?

现在觉得获取一些硬件信息不敏感,之后就可能觉得获取挂载的网盘信息不敏感,再后来……

有点滑坡了

@simpleandstupid
Copy link

看了眼代码,我不觉得获取一些os-releaese/ cpu核心数量有什么敏感的

但问题是获取这些的目的是什么呢?
现在觉得获取一些硬件信息不敏感,之后就可能觉得获取挂载的网盘信息不敏感,再后来……

有点滑坡了

但本就不妥当,能不做的就不该做。
上面说的“后续ai”,没你的网盘信息怎么做到?

@chengnan049
Copy link

看了眼代码,我不觉得获取一些os-releaese/ cpu核心数量有什么敏感的

但问题是获取这些的目的是什么呢?
现在觉得获取一些硬件信息不敏感,之后就可能觉得获取挂载的网盘信息不敏感,再后来……

有点滑坡了

但本就不妥当,能不做的就不该做。 上面说的“后续ai”,没你的网盘信息怎么做到?

是,我只是否定下这句话

@wangqyang
Copy link

该分支为布局后续AI进行准备。但与各位开发者沟通后,觉得不是十分的妥当。故关闭该分支。

呵呵

@labulakalia
Copy link

用fmt.Println打日志够离谱的

@CHENPrime-coder
Copy link

CHENPrime-coder commented Jun 11, 2025

该分支为布局后续AI进行准备。但与各位开发者沟通后,觉得不是十分的妥当。故关闭该分支。

AI牛魔。就一个网盘挂载软件要牛魔AI呢?

@CHENPrime-coder
Copy link

这b分支还在呢,不删留着过年是吧

@AffiNiNy
Copy link

看了眼代码,我不觉得获取一些os-releaese/ cpu核心数量有什么敏感的

你觉不觉得, 这在信任上面出现很大问题?
#8655

@menghuu
Copy link

menghuu commented Jun 11, 2025

你这也太明显了,你这账号名字就是在告诉别人你就是小号,就是想恶意收集信息的。

@alist666 alist666 deleted the machine_statistics branch June 11, 2025 06:20
@Akitano2025
Copy link

alist666 deleted the machine_statistics branch [12 minutes ago]

@Akitano2025
Copy link

非常好之delete

@Lollipop907
Copy link

这代码一眼AI生成,不会写代码赶紧滚吧

@chengnan049
Copy link

chengnan049 commented Jun 11, 2025

这代码一眼AI生成,不会写代码赶紧滚吧

AI:我有那么菜吗?别来沾边

@beck-8
Copy link

beck-8 commented Jun 11, 2025

fmt + 命令行获取,神人

@yyqwe158
Copy link

你吃你🐴骨灰长大的是吧,杂种东西

@MoonLord-LM
Copy link

mark

@Ogannesson
Copy link

这注释一眼AI写的
怎么?收集你爹运行环境的代码还要AI给你写?

@Terabinaryte
Copy link

去你🐎的,换 Cloudreve 了

@wangdage12
Copy link

他是怎么做到AI写注释人写代码的

@Fido6
Copy link

Fido6 commented Jun 12, 2025

看了眼代码,我不觉得获取一些os-releaese/ cpu核心数量有什么敏感的

"一开始只是 常规信息收集,直到 它开始收集你的 cookies",如果你相信这家公司,那你就用吧😁😁

@Fido6
Copy link

Fido6 commented Jun 12, 2025

add Machine statistics

妈没了是吧,一个开源的东西拿去收集各种东西,是你老母被强碱了是吧,是不是狗公司全家都被奸了?,收集你老爹的信息还演都不演了,狗玩意儿

Copy link

@fengzijk fengzijk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI写的?

Copy link

@Fido6 Fido6 left a 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")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个地方就非常明显的是AI写的了。

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

注释包含 "使用" "仅" "确保" 99% 是 AI 写的 😅

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

注释是ai写的,代码是人写的😄

实际上代码也不是人写的(

ps: 上面那个视频看的时候建议关声音

@1377382065
Copy link

curl -s --location 'https://dapi.alistgo.com/v0/system/info'
--header 'Content-Type: application/json'
--data '{
"system_name": "ubuntu",
"version": "24.04",
"kernel_version": "6.8.0-60-generic",
"architecture": "x86_64",
"cpu_count": 8,
"total_memory": 33614888960
}'

@ntkrnl32
Copy link

ntkrnl32 commented Jun 13, 2025

curl -s --location 'https://dapi.alistgo.com/v0/system/info' --header 'Content-Type: application/json' --data '{ "system_name": "ubuntu", "version": "24.04", "kernel_version": "6.8.0-60-generic", "architecture": "x86_64", "cpu_count": 8, "total_memory": 33614888960 }'

好主意 我们都 cURL 去

大量发送虚假数据(

@AllCombo
Copy link

没法用了

@CC11001100
Copy link

非常好的代码,有一种 被绑在椅子上强行观看 BV1btJHzGEUE 的感觉

点进去
失望的离开...

@ylgsml
Copy link

ylgsml commented Jun 14, 2025

司马东西

Copy link

@Kevin233B Kevin233B left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sb,建议合并之前先合并自己和杨博文的大脑🧡

@GoldenHoe
Copy link

非常好的代码,有一种 被绑在椅子上强行观看 BV1btJHzGEUE 的感觉

别刺激我
6444193f7305btTu

Copy link

@adminlby adminlby left a 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.

@smartcmd
Copy link

有点畜生了

@steve02081504
Copy link

https://github.com/steve02081504/fount
路过 混点star

@Memory2314
Copy link

虚假系统信息发送器

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()

@Fido6
Copy link

Fido6 commented Jun 17, 2025

小提示,使用海外ip有奇效,GCP SHELL 也可以
截图 2025-06-17 15-53-35

@KirCute
Copy link
Contributor

KirCute commented Jun 17, 2025

虚假系统信息发送器

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的整数倍的,你这个数据一眼就认出来了。

以及它是用exec.Command获取系统信息的,这些指令在windows上都运行不了,所以收集到的信息肯定也不包含windows的信息。

最后这些代码没有合并,按理来说这家公司到现在也没真正开始收集用户信息,所以这时候收集到的信息肯定是假的,人家也懒得看收集到了什么,这么搞也就浪费浪费自己家的电,没法真正恶心到他们

@wyf9
Copy link

wyf9 commented Jun 17, 2025

我的补充:

  1. 为了优化性能, 建议把 if...elif...else 改成 match...case (python >= 3.10 可用)
  2. 没有伪装 User-Agent,后台一眼就看出来了 (python-requests/x.x.x)

最后这些代码没有合并,按理来说这家公司到现在也没真正开始收集用户信息,所以这时候收集到的信息肯定是假的,人家也懒得看收集到了什么,这么搞也就浪费浪费自己家的电,没法真正恶心到他们

  1. 有道理,虽然也不耗我家的电 (挂国外服务器上跑)

if err != nil {
fmt.Printf("上报系统信息出错,err: %v, res: %v", err, res)
}
fmt.Printf("上报系统信息返回的结果是:%v", res)

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)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

上报你🐴呢🤣

@Fido6
Copy link

Fido6 commented Jun 19, 2025

再补充一点,发送请求后,服务器回应部分会包含你的ip地址,考虑 服务器端可能会记录 发送者ip,添加代理转发请求

}
fmt.Println(machineInfo)
//上报数据
res, err := request("POST", urlSystemInfo, machineInfo)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

用明文传输?

Comment on lines +30 to +37
//获取内核版本
kernelVersion := getKernelVersion()
//获取系统架构
arch := getArch()
//获取cpu核数
cpuCores := getCpuCores()
//总内存大小
totalMemory := getTotalMemory()
Copy link

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")
Copy link

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) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里的意思是想扩展成执行什么命令就执行什么?

@Chen017
Copy link

Chen017 commented Jun 22, 2025

神经AI代码

Copy link

@JaydenChao101 JaydenChao101 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

贵州不够科技有限公司說得好

@YueMiyuki
Copy link

合并到你祖坟里,获取下你祖宗十八代的数据,顺便看看家里那两位状态正不正常,万一他们哪天夜里翻身频率异常,我们也好实时推送“棺材板 KPI 看板”,好让你老板清明节烧纸都能按活跃度发年终奖。

再把墓碑开源成可观测模块,碑文字段全打标签:生卒年、风水坐标、孝子活跃度,缺一个字段就报警——“祖先掉线啦!” 清明 PR 一合,纸钱直接走 GitHub Sponsors,烧得慢都算你性能退化。

至于那两位老人家?把心率绑定 Prometheus,咳嗽一声就触发水平扩容——纸人纸马自动起实例,负载高就烧纸别墅做弹性伸缩。灵堂前再摆一台 Grafana,实时滚动“思念 QPS”,哭得太低频直接弹窗提醒:“检测到情感冷备异常”,你就说带不带劲吧

别担心隐私,我们都默认同意《祖坟数据合规白皮书》了:
“死亡并非撤回权,一经土葬即视为永久授权;若后代异议,请本人携带有效身份证件至阎王殿开ticket”

最后,记得把遗嘱也写成 YAML,fork 一份放 GitHub,子孙 pull request 改遗产分配就跟改配置一样方便。合并冲突?没关系,先 rebase 你爷爷,再 cherry-pick 你奶奶,完事打上 tag:v6.66-grave-statistics。

开源嘛,不寒碜,毕竟死亡也是一门需要持续交付的业务。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.