ALL POSTS

Posts · Page 6

realtime save gameboy state

realtime save gameboy state 前幾天修改一個專案,嘗試去改出gameboy 模擬器的即時存檔功能。 https://github.com/x213212/LLD_gbemu https://www.coranac.com/tonc/text/hardware.htm?source=post_page https://www.cs.rit.edu/~tj…

Games & Multimedia
realtime save gameboy state

Mini-BitTorrent

mini-BitTorrent https://github.com/darshank15/Mini-BitTorrent fork一個有趣的專案 https://github.com/x213212/Mini-BitTorrent 新增了檔案切割和重組,遇到來源中斷也可以切換source,新增進度條,基本上如果tracker做成搜尋的樣子(不難,實現一個foxy 也是蠻好玩…

Backend & Distributed Systems
Mini-BitTorrent

angr pyvexir靜態分析大致分析

angr vexir 研究 binary translator 也是蠻感興趣的,當我要檢測一個漏洞又沒有編譯器這種情形要怎麼分析呢。 在angr裡面有用到了vexir , angr 為了適應不同平台好像把不同指令集架構的轉成ir再去做分析,他用的是Valgrind's 記憶體洩漏分析器開源的 VEX IR. https://zhuanlan.zhihu.com/p/347706…

Security & Reverse Engineering
angr pyvexir靜態分析大致分析

AddressSanitizer 大致原理分析

AddressSanitizer 論文最近要加入AddressSanitizer大概研究一下實現的流程 參考了一些hook的流程找了一個大概不用去改glibc 的方式hook 方式, https://blog.csdn.net/fengbingchun/article/details/82947673 https://blog.csdn.net/faxiang1230/arti…

Security & Reverse Engineering
AddressSanitizer 大致原理分析

angr symbolic execution (2)

angr code Copy root@HOME-X213212:~# tree angr_ctf/dist/ angr_ctf/dist/ ├── 00_angr_find ├── 01_angr_avoid ├── 02_angr_find_condition ├── 03_angr_symbolic_registers ├── 04_angr_symbolic_stack…

Security & Reverse Engineering
angr symbolic execution (2)

angr symbolic execution

angr 我的環境位於wsl,不過我有docker https://docs.angr.io/introductory-errata/install code Copy # clone ctf project git clone https://github.com/jakespringer/angr_ctf.git # install docker curl -sSL htt…

Security & Reverse Engineering
angr symbolic execution

linux ipc

linux ipc 很讚的筆記https://jasonblog.github.io/note/linux_system/linux_xia_ipc_de_yun_zuo_fang_shi.html https://hackmd.io/@sysprog/linux-shared-memory https://yayaya6d.pixnet.net/blog/post/35009…

Systems, OS & Compilers
linux ipc

golang rpc

goalng rpc server go Copy package main import ( "log" "net" "net/rpc" ) // 作為rpc的server func,必須接受兩個參數 (duck typing) (request string, reply *string) // 另外返回值為error,必須為公開的方法 type HelloService…

Backend & Distributed Systems
golang rpc

golang redis 分布式鎖的應用

golang redis 分布式鎖的應用 在業務邏輯可以看到就是redis 全部爭奪同一把鎖看誰先搶到 EXAMPLE_LOCK 還沒搶到的時候其他 goroutine 會重試再重試的過程中最多會嘗試五次還有每次的嘗試時間延遲多少,搶到鎖的會有一個守護process 等到任務結束,在任務執行過程中會一直延遲EXAMPLE_LOCK 的持有時間,原因就是任務不能中斷,直到任務結束…

Backend & Distributed Systems
golang redis 分布式鎖的應用

golang create smart contract

install solidity https://docs.soliditylang.org/en/v0.8.11/installing-solidity.html install solc bahs Copy docker run ethereum/solc:stable --help You can also specify release build versions i…

Finance & Blockchain
golang create smart contract