Skip to content

Commit

Permalink
Update 1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
MrXiaoM committed Nov 7, 2023
1 parent baa9f32 commit 3bac04a
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Eden.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<Copyright>© MrXiaoM 2023 保留所有权利</Copyright>
<PackageProjectUrl>https://github.com/MrXiaoM/Eden</PackageProjectUrl>
<ApplicationIcon>eden.ico</ApplicationIcon>
<Version>1.0.3</Version>
<Version>1.0.4</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@

本程序会在 dex2jar 转换结果中选择特定的类进行分析,寻找相关信息以生成协议信息。

在对某大型 APP 进行过完整分析后,本程序可以使用极短的时间,定点分析抽离 APK 中我们所需的参数并输出,而不需要整个 APK 反编译耗费这么长时间,在作者的计算机中只需使用大约10秒时间就可以将所需的 class 文件从 dex 中导出。

# 鸣谢

* [pxb1988/dex2jar](https://github.com/pxb1988/dex2jar) 提供dex转jar方法 - Apache-2.0 License
Expand Down
21 changes: 21 additions & 0 deletions files/xml-decode.bat
Original file line number Diff line number Diff line change
@@ -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 %*
48 changes: 48 additions & 0 deletions files/xml-decode.sh
Original file line number Diff line number Diff line change
@@ -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" "$@"

0 comments on commit 3bac04a

Please sign in to comment.