diff --git a/MBCPApp/legacy_patch.sh b/MBCPApp/legacy_patch.sh index 73d791a..a13aa06 100755 --- a/MBCPApp/legacy_patch.sh +++ b/MBCPApp/legacy_patch.sh @@ -27,7 +27,7 @@ if [ "$opt" == 'Bypass 1200 error [v6.4.45]' ]; then ## MB Forced update to 658, it must be spoofed! echo "Patching [apktool.yml]..." sed -i 's|658|700|g' ~/mbbpatch/MBCPApp/mbapk/mbapk_unpacked/apktool.yml - echo "This patch are applied by MBCPApp Patcher on $(uname -s -r) with commit :" $(git rev-parse --short HEAD) at $(date). > 'mbapk/mbapk_unpacked/assets/mbcp_info/bypass_1200_error.inf' + echo "This patch are applied by MBCPApp Patcher on $(uname -s -r) with commit :" $(git rev-parse --short HEAD) at $(git show -s --format=%cd HEAD). > 'mbapk/mbapk_unpacked/assets/mbcp_info/bypass_1200_error.inf' # Placeholder patch, not yet implemented @@ -40,18 +40,18 @@ if [ "$opt" == 'Bypass 1200 error [v6.4.45]' ]; then then echo "INFO : MBShield found on unpacked APK ! Bypass signature checks won't be possible if MBShield is present on current unpacked APK !" echo "INFO : Please use supported version !!!" - echo For React Native : MBBank/MB Lite v1.0 up to v6.3.11 - echo For Flutter : MBBank v6.4.0 up to v6.4.21 - echo Some specific version has no MBShield can also be used : - echo MBBank v6.4.24 [versionCode : 624] - echo MBBank v6.4.26 [versionCode : 626] - echo MBBank v6.4.45 [versionCode : 658] + echo "For React Native : MBBank/MB Lite v1.0 up to v6.3.11" + echo "For Flutter : MBBank v6.4.0 up to v6.4.21" + echo "Some specific version has no MBShield can also be used :" + echo "MBBank v6.4.24 [versionCode : 624]" + echo "MBBank v6.4.26 [versionCode : 626]" + echo "MBBank v6.4.45 [versionCode : 658]" else echo "Function not yet implemented due to issues with original repo, check back later !" fi else - echo APK are not unpacked ! Please unpack APK first ! + echo "APK are not unpacked ! Please unpack APK first !" fi elif [ "$opt" == '[TEST] Remove v6.4.56 root detection' ]; then diff --git a/MBCPApp/mbcpapp.sh b/MBCPApp/mbcpapp.sh index 4162d3a..8258e2d 100755 --- a/MBCPApp/mbcpapp.sh +++ b/MBCPApp/mbcpapp.sh @@ -318,11 +318,11 @@ do adb start-server adb install 'mbcpapp_apk/MBCP_Flutter_SelfPatched.apk' echo "ATTENTION : Network traffic will be redirected to [medium.com] for 20 seconds !!!" - adb shell su -c iptables -t nat -A OUTPUT -p tcp -d 0/0 -j DNAT --to-destination 162.159.153.4:443 + adb shell su -c 'iptables -t nat -A OUTPUT -p tcp -d 0/0 -j DNAT --to-destination 162.159.153.4:443' adb shell am start -n com.mbmobile/io.flutter.plugins.MainActivity sleep 20 echo "Restoring network traffic" - adb shell su -c iptables -t nat -F OUTPUT + adb shell su -c 'iptables -t nat -F OUTPUT' echo "Press [Try again] after got 1005/1007 error on MB, so it's can skip device not secure dialog !" else echo "[MBCP_Flutter_SelfPatched.apk] not found, cannot continue !"