几乎所有程序员都形成了一条安全本能:收到陌生人发来的求职测试项目时,绝不乱跑里面的 install.sh、绝不盲目执行 npm install 或 cargo build,先敲个 git status 或 git checkout 看看代码总归是绝对安全的吧?一位开发者在 r/programming 分享的真实遭遇,把这条安全常识彻底击碎了——攻击者把恶意载荷藏进了 ZIP 压缩包自带的 .git 目录里,有时你甚至只需要在终端里 cd 进那个文件夹,木马就已经在后台静默跑起来了。
事情源于猎头在 LinkedIn 上发来的一份待遇优厚的加密货币信用卡系统开发邀约,对方发来一个名为 Contract-2026.zip 的压缩包,声称求职合同、岗位说明和项目源码分别放在仓库的三个 Git 分支上。为什么攻击者非要传一个带完整 .git 目录的 ZIP 包,而不直接发 GitHub 仓库链接让你 git clone?
这就是整条攻击链最阴险的设计:当你执行普通的 git clone 时,Git 只会从远端拉取提交历史和文件对象,绝对不会把远端机器上的本地 .git/config 配置文件或本地钩子复制过来;但直接解压别人打包好的 ZIP,你就原盘继承了攻击者精心调教过的本地 Git 配置!
作者用归档查看器扒开 .git/config 发现了两处致命机关:第一,攻击者把 core.hooksPath 指向了极其隐蔽的 .git/objects/interrupt/ 目录(没人会去翻存放哈希对象的 objects 文件夹),并在里面塞了一个切换分支就会触发的 post-checkout 脚本;第二,配置里定义了一个名为 ltr 的自定义文件过滤器(clean = .git/ltr),并在 .git/info/attributes 里写下了星号通配符,强制对仓库内所有文件生效。一旦你在 README 引导下敲出 git checkout 切换分支,或者你的终端装了 Oh My Zsh、Starship、Powerlevel10k 等会在 cd 进目录瞬间自动调用 git status 刷新分支状态的主题插件,再或者你直接用 VS Code 打开了这个文件夹,Git 就会在检查工作区状态时立刻调用 .git/ltr 过滤脚本,甚至在 Windows 下也会直接借道 Git 自带的 sh.exe 拉起 curl 和 PowerShell 下载远控木马。记住铁律:任何带 .git 目录的不明压缩包,等于裸奔的可执行程序。
Since a lot of people asked if this is 3D or voxels
It's just 15 flat sprites stacked on top of each other, so you can edit it in any pixel editor
(Full guide in the comments)
木頭 retweeted
GTA 6 needs a tiny steering wheel. someone already 3D-printed one for GTA 5
it's a surprisingly simple build if you have a 3D printer
print the wheel and shifter, then wire two sensors to an Arduino Pro Micro
one sits behind the wheel and measures how far you turn it
the other tracks the little lever as you slide it between park, reverse and drive
plug it into your laptop over USB, and a bit of software turns those movements into Xbox controller inputs
turn the wheel on your desk, and the car turns in Los Santos
i'd build it just for the satisfaction of putting a stolen car in park
木頭 retweeted
程序员需要逐渐接受一个现实,未来很多编程工作会变成黑盒编程。
我们团队有不少系统是用 Rust 写的,但真正精通 Rust 的人并不多。有些系统很复杂,承载着高并发、高流量的业务,我们仍然敢让 AI 去开发。
为什么?
因为我们开始把更多精力放在需求、架构约束和验收标准上。系统应该具备什么能力,性能和稳定性要达到什么水位,哪些安全规范必须遵守,哪些测试必须通过,这些事情需要提前定义清楚。
至于代码具体怎么写、函数怎么组织,很多时候可以交给 AI。
当然,架构设计还是要关注,尤其是复杂的重系统。只不过,工程师不需要再盯着每一行代码、每一个实现细节。
我们真正需要做的事情,是深入理解业务想要什么,为什么要做,以及如何建立一套可靠的工程体系,让 AI 能够持续交付。
写代码这件事情,正在逐渐从工程师的核心工作中退出。
木頭 retweeted
everyone keeps asking me... "how do i make these 3D pixel art gaussian splats??"
now you can... with ink studio!!
free on github.
it comes with a full animation suite, geometry nodes, sculpting, volumes, persistent world effects, particles, physics, destruction and more.
木頭 retweeted
I'm working on a cute little interactive aquarium!! I have so many ideas for this 👀 also how cute, it was one of my first projects I've ever made so it's been fun to bring it back
一周过去了,写点东西记不下,不然久了就忘记了 blog.mutoo.im/2026/11/canva-…
木頭 retweeted
We're giving away a Hogwarts Legacy custom wrapped NVIDIA GeForce RTX 5090 to celebrate its official release with DLSS 5 🪄
To enter:
🟢 Share this post
🟢 Comment #RTXON
Terms and Conditions: nvidia.com/en-us/geforce/con…



















