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…
ALL POSTS
Load Binary to Shared Memory Using GDB 最近在研究 gdbserver 順便驗證一些東西 應該說在 bare metal 情況下,gdb load 應該會把binary load 到記憶體位置,在riscv 看蠻多的但是在x86是否可以這樣模擬透過gdb的load 將 程式碼load 到指定位置 create memory area cod…
in windows python 與 java 溝通 https://github.com/java-native-access/jna Maven Central jna-platform-5.14.0.jar jna-platform-jpms-5.14.0.jar SharedMemoryWriter build command : javac -cp jna-jpms…
pyhton nuitka cross build 可行性與反編譯 在開發產品中,遇到了要在 linux 上面 build 出 windows 版本 和 linux 版本,經過實驗來講找了蠻多資料 nuitka 其實在 windows 版本和 linux 版本 產生出來的 c code 是不一樣的,大概從幾個地方去切入, 下面打包 比較常見的 大型 lib numpy, mat…
bitcoin auto trade 最近無聊將交易策略從股票移動到幣安上,來看看24小時不斷交易放著一個月如何 功能大概實現有 每分鐘監控前一百檔成交量高的貨幣 支持現貨/合約開單,可以指定任意槓桿倍數 支持一鍵快速逃命出清合約和現貨 交易資料都記錄在DB,使用chart.js可以標記合約和現貨買賣點 下面湊一湊應該都可以自己寫出自動交易程式 額外提供一個回測框架可以快速驗證…
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…
Nuitka 替換shardlib 路徑 看了幾篇文章只有找到這個 https://www.fournoas.com/posts/nuitka-inject-custom-c-code-at-compile-time/ 像這篇文章有透過暫停的方式去介入 nuitka 編譯過程,但是這方法是改不動我們要做的事情,不過也大概知道 nuitka 的過程是什麼 然後嘗試用ld prel…
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.…
vm using static ip 上次沒考慮好,我的vm又是吃網卡,所以斷線ip會浮動 這邊直接建立一張 VirtualBox Host-Only Ethernet Adapter #2 之後在每一台server都要多一張網卡 照理說應該會多出一個網卡enp0s8 這邊在linux 要額外設定一下 code Copy cp /etc/sysconfig/network-sc…
install k8s 整體還是在vm 上面centos 模擬集群 先在master 上先裝好環境再複製兩個node1 , node2 VirtualBox 上面用以前的方式背景執行 code Copy C:\Program Files\Oracle\VirtualBox>VBoxManage.exe startvm "centos" --type headless maste…
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…
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 \ --…
大致分析afl++ 研究一下 afl++ 內部工作原理 Install 我的環境是docker並且在windows wsl2 https://github.com/AFLplusplus/AFLplusplus/blob/stable/docs/INSTALL.md bash Copy docker pull aflplusplus/aflplusplus:latest doc…
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.…
Advanced Stock Market Analysis Tool Description This project is an advanced stock market analysis application that provides users with the ability to analyze stock data using various technic…
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…
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…
Use a docker file to create a separate site for the frontend and backend https://github.com/x213212/test_report/tree/main test_report Use a docker file to create a separate site for the fron…
Try to find the redundant area with the Python gdb (riscv) 大概想統計出某個區域內的pc address所使用的 register 的使用次數與alias的register,和記錄所有regiser 在某個區域內的所有regiser的 狀態,先假設相同compiler來說在編譯加了某些option 導致某段code做不好…