微信小程序逆向 : https://codeooo.blog.csdn.net/article/details/120219900
一 :_typeof3 is not a function
小程序解包之后,在微信開發(fā)者工具當(dāng)中點(diǎn)開調(diào)試器,選擇Console選項(xiàng)卡,發(fā)現(xiàn)左側(cè)的預(yù)覽界面是空白的,雖然真機(jī)調(diào)試可以有顯示,但是真機(jī)預(yù)覽也是跟左邊的界面一樣都是空白。之后發(fā)現(xiàn)Console里面顯示:
app.js錯(cuò)誤: TypeError: _typeof3 is not a function
查閱資料找到
@babel/runtime/helpers/typeof.js
原先的文件內(nèi)容是:
//這里是有問題的程序
function _typeof(o) {
return "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? module.exports = _typeof = function(o) {
return typeof o;
} : module.exports = _typeof = function(o) {
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
}, _typeof(o);
}
module.exports = _typeof;
將這個(gè)文件里面的所有內(nèi)容直接替換成下面的:
function _typeof2(o) {
"@babel/helpers - typeof";
return (_typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
return typeof o;
} : function(o) {
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
})(o);
}
function _typeof(o) {
return "function" == typeof Symbol && "symbol" === _typeof2(Symbol.iterator) ? module.exports = _typeof = function(o) {
return _typeof2(o);
} : module.exports = _typeof = function(o) {
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : _typeof2(o);
}, _typeof(o);
}
module.exports = _typeof;
就可以進(jìn)入主界面;
二。 不效驗(yàn)Xxxx
未定義 直接先定義為空;
定義全局,以免不生效;
登陸方面 :
開發(fā)者工具通過hook來確定替換code;
文章來源:http://www.zghlxwxcb.cn/news/detail-507565.html
通過hook來知道自己的wxcode值,wxCode有效期是五分鐘,所以需要實(shí)時(shí)獲取;文章來源地址http://www.zghlxwxcb.cn/news/detail-507565.html
到了這里,關(guān)于小程序逆向動(dòng)態(tài)調(diào)試及修復(fù)過程的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!