ALL POSTS

Posts · Page 3

大概分析 gdbserver 原理

大概分析 gdbserver 原理 這次來研究一下 gdbserver https://github.com/bet4it/gdbserver.git https://github.com/trixirt/deebe 簡單來說 gdbserver 工作原理就是透過ptrace 去控制 process 的動作 在main 可以看到 這邊會透過 get_request 來持續查看是…

Systems, OS & Compilers
大概分析 gdbserver 原理

Load Binary to Shared Memory Using GDB

Load Binary to Shared Memory Using GDB 最近在研究 gdbserver 順便驗證一些東西 應該說在 bare metal 情況下,gdb load 應該會把binary load 到記憶體位置,在riscv 看蠻多的但是在x86是否可以這樣模擬透過gdb的load 將 程式碼load 到指定位置 create memory area cod…

Systems, OS & Compilers
Load Binary to Shared Memory Using GDB

pyhton nuitka cross build 可行性與反編譯

pyhton nuitka cross build 可行性與反編譯 在開發產品中,遇到了要在 linux 上面 build 出 windows 版本 和 linux 版本,經過實驗來講找了蠻多資料 nuitka 其實在 windows 版本和 linux 版本 產生出來的 c code 是不一樣的,大概從幾個地方去切入, 下面打包 比較常見的 大型 lib numpy, mat…

Programming & Software Engineering
pyhton nuitka cross build 可行性與反編譯

bitcoin auto trade

bitcoin auto trade 最近無聊將交易策略從股票移動到幣安上,來看看24小時不斷交易放著一個月如何 功能大概實現有 每分鐘監控前一百檔成交量高的貨幣 支持現貨/合約開單,可以指定任意槓桿倍數 支持一鍵快速逃命出清合約和現貨 交易資料都記錄在DB,使用chart.js可以標記合約和現貨買賣點 下面湊一湊應該都可以自己寫出自動交易程式 額外提供一個回測框架可以快速驗證…

Finance & Blockchain
bitcoin auto trade

elf diff call graph

elf diff tool 最近在想可不可以將分析的路徑在減少一點,這樣在分析code size 會更省事 python Copy import subprocess import re from graphviz import Digraph def generate_objdump_output ( elf_file , output_file ): cmd = [ 'ri…

Systems, OS & Compilers
elf diff call graph

nutika replace dynamic shared library path

Nuitka 替換shardlib 路徑 看了幾篇文章只有找到這個 https://www.fournoas.com/posts/nuitka-inject-custom-c-code-at-compile-time/ 像這篇文章有透過暫停的方式去介入 nuitka 編譯過程,但是這方法是改不動我們要做的事情,不過也大概知道 nuitka 的過程是什麼 然後嘗試用ld prel…

Programming & Software Engineering
nutika replace dynamic shared library path

git command

git merge ex 假設兩個分支master 和 a 有個文件為test.log code Copy a code Copy git add ./test.log git commit -m 'add test.log' 切到 branch a code Copy git checkout a code Copy a b code Copy git add ./test.…

DevOps & Cloud
git command

Creating jenkins tasklets to k8s

vm using static ip 上次沒考慮好,我的vm又是吃網卡,所以斷線ip會浮動 這邊直接建立一張 VirtualBox Host-Only Ethernet Adapter #2 之後在每一台server都要多一張網卡 照理說應該會多出一個網卡enp0s8 這邊在linux 要額外設定一下 code Copy cp /etc/sysconfig/network-sc…

DevOps & Cloud
Creating jenkins tasklets to k8s

install k8s on centos7

install k8s 整體還是在vm 上面centos 模擬集群 先在master 上先裝好環境再複製兩個node1 , node2 VirtualBox 上面用以前的方式背景執行 code Copy C:\Program Files\Oracle\VirtualBox>VBoxManage.exe startvm "centos" --type headless maste…

DevOps & Cloud
install k8s on centos7

gitlab autodevops

gitlab Auto DevOps 在上一次實驗中有發現這個Auto DevOps大概來測試一下 .gitlab-ci.yml code Copy stages: - test run_my_tests: stage: test script: - echo "Running custom test script..." - ./run_test…

DevOps & Cloud
gitlab autodevops

jenkins gitlab 環境搭建與實驗

jenkins code Copy docker pull jenkins/jenkins:lts docker run -d -p 8080:8080 -p 50000:50000 --name jenkins jenkins/jenkins:lts docker logs jenkins gitlab code Copy docker run --detach \ --…

DevOps & Cloud
jenkins gitlab 環境搭建與實驗

大致分析afl++

大致分析afl++ 研究一下 afl++ 內部工作原理 Install 我的環境是docker並且在windows wsl2 https://github.com/AFLplusplus/AFLplusplus/blob/stable/docs/INSTALL.md bash Copy docker pull aflplusplus/aflplusplus:latest doc…

Security & Reverse Engineering
大致分析afl++

build Huawei WiFi Iot

Hi3861 Huawei WiFi Iot SDK Note (20220706): Porting from code-1.0.tar.gz in https://repo.huaweicloud.com/harmonyos/os/1.0/code-1.0.tar.gz You could also find the binary from wifiiot-1.0.tar.…

Embedded, IoT & Hardware
build Huawei WiFi Iot

python package

python package install python code Copy pip install pyinstaller wget https://www.python.org/ftp/python/3.11.5/Python-3.11.5.tar.xz tar -xvf Python-3.11.5.tgz cd Python-3.11.5 ./configure --p…

Programming & Software Engineering
python package

Study ASLi

Using ASLi with Arm's v8.6-A ISA specification https://alastairreid.github.io/using-asli/ 在這篇文章有提到說怎麼安裝和使用ASLi 也就是 code Copy ASLi is an interpreter for Arm’s Architecture Specification Langu…

Systems, OS & Compilers
Study ASLi