diff --git a/README.md b/README.md index 53e4d96..b121572 100644 --- a/README.md +++ b/README.md @@ -142,6 +142,21 @@ Interceptor.attach(wechat.findExportByName("recv"), { } }); + +Interceptor.attach(wechat.findExportByName("read"), { + onEnter(args) { + this.buf = args[1]; + this.len = args[2].toInt32(); + }, + onLeave(retval) { + if (retval.toInt32() > 0) { + console.log("=== Read Data ==="); + console.log(hexdump(this.buf, { length: retval.toInt32() })); + } + } +}); + + Interceptor.attach(wechat.findExportByName("send"), { onEnter(args) { console.log("=== Send Data ==="); @@ -155,4 +170,19 @@ Interceptor.attach(wechat.findExportByName("send"), { } }); +Interceptor.attach(wechat.findExportByName("write"), { + onEnter(args) { + let fd = args[0].toInt32(); + this.buf = args[1]; + this.len = args[2].toInt32(); + dump("WRITE", this.buf, this.len); + } +}); + + +``` + +ζ‰Ύεˆ°ζ˜Žζ–‡ +``` + ```