duangsuse::Echo
583 subscribers
4.12K photos
118 videos
579 files
6.13K links
import this:
美而不丑、明而不暗、短而不凡、长而不乱,扁平不宽,读而后码,行之天下,勿托地上天国。
异常勿吞,难过勿过,叹一真理。效率是很重要,盲目最是低效。
简明是可靠的先验,不是可靠的祭品。
知其变,守其恒,为天下式;穷其变,知不穷,得地上势。知变守恒却穷变知新,我认真理,我不认真。

技术相干订阅~
另外有 throws 闲杂频道 @dsuset
转载频道 @dsusep
极小可能会有批评zf的消息 如有不适可退出
suse小站(面向运气编程): https://WOJS.org/#/
Download Telegram
#py 周刊
python -m nntplib , calendar, asyncio, http.server ,. 命令行工具 'gmane.comp.python.general has 757285 articles,'
dinov2_retrieval -q img.png -d ./all_images/
以图搜图
ShortGPT #bilibili 短视频裁缝, Pixels, Bing Image

https://github.com/gto76/python-cheatsheet#curses
TTS, Mario Brothers, TUI文件浏览器, COVID图表的示例❤️
- 代码命名红黑榜

uvicorn vs #rust单/多线程跑分: 差异 10%
from blacksheep import Application
import asyncio
app = Application()
@app.route("/async")
async def test_async():
await asyncio.sleep(.002)
return "OK"

import logging; 对象支持 Formatter('%(name).%(asctime)s: %(message)s'), RotatingFileHandler('my_log.log', maxBytes=2000, backupCount=10) 的参数配置, 默认print WARN以上的记录, logger.exception() 默认 ERROR

pip install pystack pytest-pystack; pystack remote `pidof python` #ffi (仅限 linux, docker)
git clone https://github.com/BiteStreams/fastapi-template PetStore #dev 使用 poetry poly 和 FastAPI session 创建微服务

data diff
duangsuse::Echo
— CLI程序服务 getopts; complete 用于获取短参数和提供补齐。少数人用while shift/read;case 来解析 还有一个select in ; do,和py2 print 是异曲同工之败笔,请 ->展示zenity的所有功能,并生成一个简短的MC风格的文字冒险 #!/bin/bash while getopts ":n:s:err" opt; do #?未知 :空 case $opt in n) n=$OPTARG ;; s) s=$OPTARG ;;…
#fuck u cffi, what <cdata>? Is strconv&cdef(errItem=ignore) that hard?

我之前有个dl-preload+ptrace nmhook库,本来可以学 frida.re py魔改二进制的,看来FFI界的烂API又要麻烦我了 😅
Frida is Greasemonkey for native apps
? import frida-tools
sudo frida-trace -i "readdir" telegram-desktop
#ffi.offsetof('struct dirent*','d_name')
log(args[0],Memory.readCString(args[0].add(19)));


变颜色说明参数变了,也只有这些信息量
后来结合 r2 -d $(pidof telegram-desktop); 每次选文件时Ctrl+C再 dc; V
发现 arg0 处啥都没,但后面是dirent* 的游标
查了一下才知道要通过fd读取,不过好像不是tg在读文件夹……
log(Memory.readU32(args[0]));

readlink /proc/$(pidof telegram-desktop)/fd/*

完全看不到在选的位置

#reveng 只是持久化还是要依靠 Xposed
Java.perform(function() {
var Button = Java.use("android.widget.Button");

Button.setOnClickListener.implementation = function(listener) {
listener.onClick.implementation=()=>console.log("Button onClick stopped");

// Call the original onClick method
return this.setOnClickListener(listener);
};
});
https://whitebird0.github.io/post/Frida的Python库使用.html#:~:text=值无法交给python继续使用
https://blog.csdn.net/freeking101/article/details/107489590

btw. 这个作者还用FastAPI暴露函数参数…… 说明 Frida.re 完全是不支持跨语言和ffi的