猿人學第16逆向題目分析

滲透逆向 · 03-07 · 31 人浏览

還是一樣,找m參數的加密算法。

m = n[e(528)](btoa, p_s)

2025-03-07T10:18:18.png
進入方法 n[e(528)],發現返回值是 return e(t),而e是傳入的 btoa ,t為 p_s ,那麽m算法可以簡化為:m = btoa(p_s)

2025-03-07T10:18:56.png
然後找btoa方法,如下複製分析,不停的補就行了。
2025-03-07T10:21:28.png
最後可以生成的加密值,但是提示:
2025-03-07T10:22:43.png
那麽繼續分析這段js,可以猜想我們的環境出錯了,導致代碼走向錯誤分支。(以下是網頁的這段為true)
2025-03-07T10:24:58.png

            try {
                "WhHMm" === i[t(198)] || n.g && c[t(246)](f[t(245)](i.pHtmC(2 & o, 3) | i.evetF(a, 4)))
            } catch (e) {
                c[t(246)](f[t(245)](i[t(229)](i.cVCcp(3 & o, 4), a >> 4)))
            }

修改我們的代碼為,去掉這個try,把錯誤分支刪掉就行了。

                "WhHMm" === i[t(198)] || true && c[t(246)](f[t(245)](i.pHtmC(2 & o, 3) | i.evetF(a, 4)))
本站立足于美利堅合衆國,請讀者自覺遵守當地法律!如有違規,本站不承擔任何法律責任! This site is based in the United States of America, readers are requested to abide by local laws! If there are any violations, this site does not bear any legal responsibility! Theme Jasmine by Kent Liao