# Temp note ## Q1 Modern C++? 考慮以下程式 ```cpp void foo() { VMPBegin(); // some complex modern C++ auto res = [] { struct Tmp { constexpr Tmp() = default; constexpr Tmp operator()() {return *this;} Tmp operator()(int) {return *this;} Tmp some_stuff() {return *this;} Tmp some_stuff2() { [&, _local=data]() mutable { this->data = ++_local; if (this->data == 42) { struct my_exception : std::exception {}; throw my_exception{}; } }(); return *this; } int data; }; return Tmp{}()(42)().some_stuff().some_stuff2().data; }(); VMPEnd(); } ``` https://godbolt.org/z/jMh5b44qs 即使用 macro 把上面的 code 包起來,取得這段 source code,我有沒有辦法解析這段程式碼 並且加入混淆 ## Q2 有沒有可以參考資料,不用 loader 也可以載入額外加殼的程式 (such like vmprotect) 印象中你說在 LoL 的殼?不需要額外 loader 也可以正常啟動 LoL
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up