http://www.jezzamon.com/fourier/ #sp
https://gankra.github.io/blah/c-isnt-a-language/ #c #programming_language #abi 🤔C的ABI typedef的确挺混乱的,而且 *const restrict (void(*)[]) ..
https://nullprogram.com/blog/2018/05/27/ #linux #c #ffi #jit #optimization
When FFI(JS,.) Function Calls Beat Native C
https://gankra.github.io/blah/c-isnt-a-language/ #c #programming_language #abi 🤔C的ABI typedef的确挺混乱的,而且 *const restrict (void(*)[]) ..
https://nullprogram.com/blog/2018/05/27/ #linux #c #ffi #jit #optimization
When FFI(JS,.) Function Calls Beat Native C
Jezzamon
An Interactive Introduction to Fourier Transforms
Fourier transforms are a tool used in a whole bunch of different things. This is a explanation of what a Fourier transform does, and some different ways it can be useful.
#py 周刊
ShortGPT #bilibili 短视频裁缝, Pixels, Bing Image
https://github.com/gto76/python-cheatsheet#curses
TTS, Mario Brothers, TUI文件浏览器, COVID图表的示例❤️
- 代码命名红黑榜
uvicorn vs #rust 的单/多线程跑分: 差异 10%
data diff
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 Applicationimport logging; 对象支持
import asyncio
app = Application()
@app.route("/async")
async def test_async():
await asyncio.sleep(.002)
return "OK"
Formatter('%(name).%(asctime)s: %(message)s'), RotatingFileHandler('my_log.log', maxBytes=2000, backupCount=10)
的参数配置, 默认print WARN以上的记录, logger.exception() 默认 ERRORpip 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
Telegram
Newlearnerの自留地
#Python潮流周刊 #Newsletter
Python 潮流周刊#12:Python 中如何调试死锁问题?
🦄文章&教程
1 、使用 PyStack 调试 Python 中的崩溃和死锁 (英)
2 、介绍一个 FastAPI 项目模板 (英)
3 、Python FastAPI 微服务与 Polylith 架构 (英)
4 、Python 日志模块:实战应用与最佳实践
5 、测量 Python 和 Rust 异步 Web 服务的性能 (英)
6 、dinov2_retrieval:一个基于 DINOv2…
Python 潮流周刊#12:Python 中如何调试死锁问题?
🦄文章&教程
1 、使用 PyStack 调试 Python 中的崩溃和死锁 (英)
2 、介绍一个 FastAPI 项目模板 (英)
3 、Python FastAPI 微服务与 Polylith 架构 (英)
4 、Python 日志模块:实战应用与最佳实践
5 、测量 Python 和 Rust 异步 Web 服务的性能 (英)
6 、dinov2_retrieval:一个基于 DINOv2…
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() {https://whitebird0.github.io/post/Frida的Python库使用.html#:~:text=值无法交给python继续使用
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://blog.csdn.net/freeking101/article/details/107489590
btw. 这个作者还用FastAPI暴露函数参数…… 说明 Frida.re 完全是不支持跨语言和ffi的
Whitebird's Home
about
Android逆向学习笔记——使用Python库调用Frida | Whitebird's Home