- NoxAppPlayer
- wxappUnpacker
- ADB
- テッセラクトOCR
NoxAppPlayer + wxappUnpacker
NoxAppPlayer
- NoxAppPlayerのダウンロードリンク:
https://pan.baidu.com/s/1sIDpRdwIaRkct4oLxxYGvw?pwd=hdki
公式サイトhttps://www.noxappplayer.org/
- WeChatを開いてダウンロード -> WeChatで対応するアプレットを開く -> 各ページをクリック
- 付属の adb ツールを使用する
/Applications/NoxAppPlayer.app/Contents/MacOS/adb
- デバイスを表示する
adb devices
- ログインデバイス
adb shell
- WeChat アプレットに対応するアドレスを見つける
/data/data/com.tencent.mm/MicroMsg/fc8833ac5b250ce7d780023a85b9604e/appbrand/pkg
- adb ツールを介してファイルをマシンにダウンロードします
./adb pull /data/data/com.tencent.mm/MicroMsg/fc8833ac5b250ce7d780023a85b9604e/appbrand/pkg /Users/mendd/Documents/app-dewu/
wxappUnpacker
- wxappUnpacker リンクをダウンロードします。
https://pan.baidu.com/s/1SPYrgAnVZdwsi0MrpfMDmA?pwd=3c4b
- wxappUnpackerをインストールする
npm install
- 逆コンパイルする
node wuWxapkg.js -s=/Users/mendd/Documents/app-dewu/weixin-dewu-dir/ ../weixin-dewu/_1123949441_868.wxapkg
- ファイルを結合する
- WeChat アプレット開発者ツールは、ES5 への JS コンパイルを有効または無効にし、正当なドメイン名を検証せず、基本ライブラリをデバッグします
OCR
ADBインターセプト
- クリック
/Applications/NoxAppPlayer.app/Contents/MacOS/adb shell input tap 480 580
- 滑り台
/Applications/NoxAppPlayer.app/Contents/MacOS/adb shell input swipe 250 900 300 200
- インターセプト
/Applications/NoxAppPlayer.app/Contents/MacOS/adb shell /system/bin/screencap -p /sdcard/screenshot.png
- コピー
/Applications/NoxAppPlayer.app/Contents/MacOS/adb pull /sdcard/screenshot.png /tmp/
OCR読み取り
tesseract screenshot.png scre -l chi_sim
ヒント
Error opening data file /usr/local/share/tessdata/chi_sim.traineddata
Please make sure the TESSDATA_PREFIX environment variable is set to your "tessdata" directory.
Failed loading language 'chi_sim'
Tesseract couldn't load any languages!
Could not initialize tesseract.
-
構成 TESSDATA_PREFIX=/usr/local/Cell/tesseract/4.1.1/share/tessdata
-
Tesseract 中国語パッケージ chi_sim.traineddata
https://gitcode.net/menxu_work/tessdata/-/blob/master/chi_sim.traineddata
tesseract screenshot.png scre -l chi_sim