如何在windows下用IDA優雅除錯ELF

2022-03-09 00:37:47 字數 1306 閱讀 9235

brief: 構建乙個ida-linux_server-docker映象,優雅地ida遠端除錯

使用傳統虛擬機器來執行乙個linux程式就得跑乙個完整的linux映象,這無形中浪費了很多資源,而且一點也不優雅。docker就很完美的解決了這一點,我們可以在某個簡單的linux基礎映象上構造乙個ida_server,這樣比較靈活、方便,而且比較elegant。

warning: 因為windows下的docker依賴於hyper-v,而hyper-v與vmware並不相容,所以已經安裝了vmware之類軟體而且不想解除安裝的話,你可能需要這個

dockerfile

from ubuntu:16.04

maintainer tr3e "[email protected]"

run echo "nameserver 223.6.6.6" >> /etc/resolv.conf

run apt-get update && apt-get install -y openssh-server python python-pip inetutils-ping net-tools netcat curl vim unzip

copy start.sh /root/start.sh

copy linux_serverx64 /root/linux_server

workdir /root

cmd /root/start.sh

上面是我64位linux_server的dockerfile僅作個參考。

docker build -t ida_server

我們可以通過docker-compose來更加優雅的執行這個映象,windows下的docker貌似是自帶的。

docker-compose.yml

ida_server:

image: ida_server

ports:

- "16422:22"

- "16446:23946"

container_name: idax64

dns:

- 223.6.6.6

- 223.5.5.5

volumes:

- ./tmp:/root/tmp

privileged: true

tty: true

在對應目錄下就只需要一句docker-compose up就能優雅地除錯了。

docker-hub網速原因暫時還沒有把映象push上去

如何在Windows下編譯 cdrtools

cdrtools 編譯方法 配置環境 安裝 cygwin 安裝 smake 獲得 smake 解壓 smake tar jxvf smake 1.2a49.tar.bz2 編譯 smake make 將 smake.exe 拷貝到 c cygwin bin 下 編譯 cdrtools 獲得 cdrt...

如何在windows下安裝GIT

在windows explorer integration選項中將 git bash here 和 git gui here 打對勾。在 adjusting your path environment 選項中,預設即可。在 configuring the line ending conversion...

如何在windows下安裝GIT

如何在windows下安裝git 分步閱讀 工具 原料 win7 msysgit 方法 步驟 1步驟閱讀 2步驟閱讀 3在windows explorer integration選項中將 git bash here 和 git gui here 打對勾。步驟閱讀 4在 adjusting your ...