From 3bac04ad75b56cfb51d7721cd5c3428e0b657d19 Mon Sep 17 00:00:00 2001 From: MrXiaoM Date: Wed, 8 Nov 2023 00:14:20 +0800 Subject: [PATCH] Update 1.0.4 --- Eden.csproj | 2 +- README.md | 2 ++ files/xml-decode.bat | 21 +++++++++++++++++++ files/xml-decode.sh | 48 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 72 insertions(+), 1 deletion(-) create mode 100644 files/xml-decode.bat create mode 100644 files/xml-decode.sh diff --git a/Eden.csproj b/Eden.csproj index 7c83997..47f9368 100644 --- a/Eden.csproj +++ b/Eden.csproj @@ -12,7 +12,7 @@ © MrXiaoM 2023 保留所有权利 https://github.com/MrXiaoM/Eden eden.ico - 1.0.3 + 1.0.4 diff --git a/README.md b/README.md index abf5374..0c90655 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,8 @@ 本程序会在 dex2jar 转换结果中选择特定的类进行分析,寻找相关信息以生成协议信息。 +在对某大型 APP 进行过完整分析后,本程序可以使用极短的时间,定点分析抽离 APK 中我们所需的参数并输出,而不需要整个 APK 反编译耗费这么长时间,在作者的计算机中只需使用大约10秒时间就可以将所需的 class 文件从 dex 中导出。 + # 鸣谢 * [pxb1988/dex2jar](https://github.com/pxb1988/dex2jar) 提供dex转jar方法 - Apache-2.0 License diff --git a/files/xml-decode.bat b/files/xml-decode.bat new file mode 100644 index 0000000..c3a6bea --- /dev/null +++ b/files/xml-decode.bat @@ -0,0 +1,21 @@ +@echo off + +REM +REM dex2jar - Tools to work with android .dex and java .class files +REM Copyright (c) 2009-2013 Panxiaobo +REM +REM Licensed under the Apache License, Version 2.0 (the "License"); +REM you may not use this file except in compliance with the License. +REM You may obtain a copy of the License at +REM +REM http://www.apache.org/licenses/LICENSE-2.0 +REM +REM Unless required by applicable law or agreed to in writing, software +REM distributed under the License is distributed on an "AS IS" BASIS, +REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +REM See the License for the specific language governing permissions and +REM limitations under the License. +REM + +REM call d2j_invoke.bat to setup java environment +@"%~dp0d2j_invoke.bat" test.AXMLPrinter %* diff --git a/files/xml-decode.sh b/files/xml-decode.sh new file mode 100644 index 0000000..06709f0 --- /dev/null +++ b/files/xml-decode.sh @@ -0,0 +1,48 @@ +#!/bin/sh + +# +# dex2jar - Tools to work with android .dex and java .class files +# Copyright (c) 2009-2013 Panxiaobo +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +# copy from $Tomcat/bin/startup.sh +# resolve links - $0 may be a softlink +PRG="$0" +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`/"$link" + fi +done +PRGDIR=`dirname "$PRG"` +# + +_classpath="." +if [ `uname -a | grep -i -c cygwin` -ne 0 ]; then # Cygwin, translate the path + for k in "$PRGDIR"/lib/*.jar + do + _classpath="${_classpath};`cygpath -w ${k}`" + done +else + for k in "$PRGDIR"/lib/*.jar + do + _classpath="${_classpath}:${k}" + done +fi + +java -Xms512m -Xmx2048m -classpath "${_classpath}" "test.AXMLPrinter" "$@"