Krebs::OutputStream
88 subscribers
359 photos
9 videos
5 files
195 links
这里是 @krebsgeo 的个人频道,有时发点东西。
Download Telegram
突然发现今天是我 #HRT 第 100 天和日用 #Linux 第 600 天 !
7
你会买临期酸奶喝嘛?
Final Results
43%
19%
不会
38%
不喝酸奶 / 查看结果
FILE_DISPOSITION_POSIX_SEMANTICS

When FILE_DISPOSITION_POSIX_SEMANTICS is not set, a file marked for deletion is not actually deleted until all open handles for the file have been closed and the link count for the file is zero. When FILE_DISPOSITION_POSIX_SEMANTICS is set, the link is removed from the visible namespace as soon as the POSIX delete handle has been closed, but the file's data streams remain accessible by other existing handles until the last handle has been closed. That is, applications that already had the file open can still use their handle to read/write even though the name they used to open it is gone and the file's link count may have reached zero. (source)


🌚... 还有这种东西

#Windows
#TDoV 戴了一天发卡, 不过相比去年直接穿裙子 RLE 可能不算什么。正在想明天要不要接着戴。
#Maimai 鸟的第一张紫谱
五一在武汉!!
避雷神人邮箱 Outlook

大概率你收不到别人邮件
小概率别人收不到你邮件
😅
💔3
到达 #武汉!
🥰1
Krebs::OutputStream
长这么大第一次差点赶上车,特此留念(
再别武汉 (没找到合适拍摄地点, Ad removed)
🥴2
武汉群友送的纪念品
🥰2
原来我也能吃到 520 的疯四的吗
3🥰3👀1
如何对 android app 使用 strace

1. 首先, 需要一个可在设备上运行的 strace, 系统里不自带的话就自己编译个静态的吧。
2. 需要使用 wrap.sh 来自定义 app 启动参数, 关于 wrap.sh 可以参考这里, 此文档的使用方式需要重打包, 还有一种不需要重打包方式 (实测也不需要 debuggable:true):
setprop wrap.<PACKAGE_NAME> /path/to/wrap.sh

3. 设置 SELinux 宽容, 然后软重启:
setenforce 0
stop
start

4. 应用的可写路径并不多, 建议把 wrap.sh 放在数据目录:
#!/system/bin/sh
strace -f -o /data/data/com.example.app/strace.log "$@"

setprop wrap.com.example.app /data/data/com.example.app/wrap.sh

5. 在 launcher 打开应用, strace.log 就会出现在数据目录。

参考资料: 1, 2

---
这只是一篇笔记。实际上, 这种使用 strace 的方式非常容易被检测 (通过 TracerPid), 与 frida 配合使用也十分麻烦。因此更推荐使用最新最热的 frida-strace (通过 eBPF 实现, 需要内核打开 CONFIG_DEBUG_INFO_BTF)。

#Android
新设备 Xiaomi Pad 4
第一次用小平板, 挺出乎意料的, 虽然 SDM660 性能属实一般, 但对于我这种不玩手游的人来说也并没有那么烂。横屏打字握感超级好, 买之前还在担心在 8 英寸屏上看 16 开书会不会看不清字, 结果完全没有这个问题, 单手翻页体验也很棒!
缺点的话, 120 块买的还要什么自行车呢。感觉真说缺点的话就是下巴有点大吧, 以及单边扬声器 (然而外放很少的话其实无所谓), 还有就是看惯了 120Hz 屏幕…(不过听说这个屏幕可以超频, 还没研究)。