Vmware vt-x和Docker(WSL2/Hyper-V)切换方法

结论:目前win10上Docker后端要不然WSL2要不然Hyper-V,不管用哪种都会影响vt-x,目前能让vmware/安卓模拟器和Docker共存的方法只有放弃vt-x

以下是如果非要使用vt-x的切换方法

1.使用Docker(WSL2/Hyper-V)

bcdedit /set hypervisorlaunchtype auto

按照docker启动提示,设置后端到Hyper-V或者WSL2

2.使用vmware vt-x

windows功能里删除Hyper-V

bcdedit /set hypervisorlaunchtype off

CTF-v8

OOB = out of boundary

部分参照:

https://eternalsakura13.com/2018/05/06/v8/

1.准备代理,git仓库走本地流量,depot_tools走代理

source proxy
export no_proxy=10.10.10.xxx,127.0.0.1,gitlab.xxx.xxx

2.编译指定git仓库v8

git clone http://xxx.xxx.xxx.xxx/xxx/v8.git
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
export PATH=$PATH:"/path/to/depot_tools"
cd v8
gclient config http://xxx.xxx.xxx.xxx/xxx/v8.git
gclient sync
cd v8
tools/dev/v8gen.py x64.debug
ninja -C out.gn/x64.debug
./out/x64.debug/d8
./out/x64.debug/shell