Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
keyescgm
jadx
提交
43944681
J
jadx
项目概览
keyescgm
/
jadx
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
J
jadx
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
43944681
编写于
10月 22, 2021
作者:
S
Skylot
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: update Quark report format parsing
上级
94010866
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
22 addition
and
13 deletion
+22
-13
jadx-gui/src/main/java/jadx/gui/plugins/quark/QuarkReportData.java
...src/main/java/jadx/gui/plugins/quark/QuarkReportData.java
+1
-1
jadx-gui/src/main/java/jadx/gui/plugins/quark/QuarkReportNode.java
...src/main/java/jadx/gui/plugins/quark/QuarkReportNode.java
+7
-4
jadx-gui/src/main/java/jadx/gui/plugins/quark/QuarkReportPanel.java
...rc/main/java/jadx/gui/plugins/quark/QuarkReportPanel.java
+14
-8
未找到文件。
jadx-gui/src/main/java/jadx/gui/plugins/quark/QuarkReportData.java
浏览文件 @
43944681
...
@@ -15,7 +15,7 @@ public class QuarkReportData {
...
@@ -15,7 +15,7 @@ public class QuarkReportData {
public
List
<
String
>
permissions
;
public
List
<
String
>
permissions
;
List
<
Method
>
native_api
;
List
<
Method
>
native_api
;
List
<
Method
>
combination
;
List
<
String
[]
>
combination
;
List
<
Map
<
String
,
InvokePlace
>>
register
;
List
<
Map
<
String
,
InvokePlace
>>
register
;
}
}
...
...
jadx-gui/src/main/java/jadx/gui/plugins/quark/QuarkReportNode.java
浏览文件 @
43944681
...
@@ -56,21 +56,24 @@ public class QuarkReportNode extends JNode {
...
@@ -56,21 +56,24 @@ public class QuarkReportNode extends JNode {
@Override
@Override
public
ContentPanel
getContentPanel
(
TabbedPane
tabbedPane
)
{
public
ContentPanel
getContentPanel
(
TabbedPane
tabbedPane
)
{
QuarkReportData
data
;
try
{
try
{
data
=
GSON
.
fromJson
(
Files
.
newBufferedReader
(
apkFile
),
QuarkReportData
.
class
);
QuarkReportData
data
=
GSON
.
fromJson
(
Files
.
newBufferedReader
(
apkFile
),
QuarkReportData
.
class
);
return
new
QuarkReportPanel
(
tabbedPane
,
this
,
data
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LOG
.
error
(
"Quark report parse error"
,
e
);
LOG
.
error
(
"Quark report parse error"
,
e
);
StringEscapeUtils
.
Builder
builder
=
StringEscapeUtils
.
builder
(
StringEscapeUtils
.
ESCAPE_HTML4
);
StringEscapeUtils
.
Builder
builder
=
StringEscapeUtils
.
builder
(
StringEscapeUtils
.
ESCAPE_HTML4
);
builder
.
append
(
"<h2>"
);
builder
.
append
(
"<h2>"
);
builder
.
escape
(
"Quark analysis failed!"
);
builder
.
escape
(
"Quark analysis failed!"
);
builder
.
append
(
"</h2><pre>"
);
builder
.
append
(
"</h2>"
);
builder
.
append
(
"<h3>"
);
builder
.
append
(
"Error: "
).
escape
(
e
.
getMessage
());
builder
.
append
(
"</h3>"
);
builder
.
append
(
"<pre>"
);
builder
.
escape
(
ExceptionUtils
.
getStackTrace
(
e
));
builder
.
escape
(
ExceptionUtils
.
getStackTrace
(
e
));
builder
.
append
(
"</pre>"
);
builder
.
append
(
"</pre>"
);
errorContent
=
builder
.
toString
();
errorContent
=
builder
.
toString
();
return
new
HtmlPanel
(
tabbedPane
,
this
);
return
new
HtmlPanel
(
tabbedPane
,
this
);
}
}
return
new
QuarkReportPanel
(
tabbedPane
,
this
,
data
);
}
}
@Override
@Override
...
...
jadx-gui/src/main/java/jadx/gui/plugins/quark/QuarkReportPanel.java
浏览文件 @
43944681
...
@@ -8,6 +8,7 @@ import java.awt.event.MouseEvent;
...
@@ -8,6 +8,7 @@ import java.awt.event.MouseEvent;
import
java.util.Comparator
;
import
java.util.Comparator
;
import
java.util.Enumeration
;
import
java.util.Enumeration
;
import
java.util.IdentityHashMap
;
import
java.util.IdentityHashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
javax.swing.BorderFactory
;
import
javax.swing.BorderFactory
;
...
@@ -238,20 +239,25 @@ public class QuarkReportPanel extends ContentPanel {
...
@@ -238,20 +239,25 @@ public class QuarkReportPanel extends ContentPanel {
if
(
Utils
.
notEmpty
(
crime
.
permissions
))
{
if
(
Utils
.
notEmpty
(
crime
.
permissions
))
{
add
(
new
TextTreeNode
(
"Permissions: "
+
Strings
.
join
(
", "
,
crime
.
permissions
)));
add
(
new
TextTreeNode
(
"Permissions: "
+
Strings
.
join
(
", "
,
crime
.
permissions
)));
}
}
if
(
Utils
.
notEmpty
(
crime
.
combination
))
{
if
(
Utils
.
notEmpty
(
crime
.
native_api
))
{
TextTreeNode
node
=
new
TextTreeNode
(
"Native API"
);
TextTreeNode
node
=
new
TextTreeNode
(
"Native API"
);
for
(
QuarkReportData
.
Method
method
:
crime
.
combination
)
{
for
(
QuarkReportData
.
Method
method
:
crime
.
native_api
)
{
node
.
add
(
new
TextTreeNode
(
method
.
toString
()));
node
.
add
(
new
TextTreeNode
(
method
.
toString
()));
}
}
add
(
node
);
add
(
node
);
}
else
{
}
if
(
Utils
.
notEmpty
(
crime
.
native_api
))
{
List
<
String
[]>
combination
=
crime
.
combination
;
TextTreeNode
node
=
new
TextTreeNode
(
"Native API"
);
if
(
Utils
.
notEmpty
(
combination
))
{
for
(
QuarkReportData
.
Method
method
:
crime
.
native_api
)
{
TextTreeNode
node
=
new
TextTreeNode
(
"Combination"
);
node
.
add
(
new
TextTreeNode
(
method
.
toString
()));
int
size
=
combination
.
size
();
for
(
int
i
=
0
;
i
<
size
;
i
++)
{
TextTreeNode
set
=
new
TextTreeNode
(
"Set "
+
i
);
for
(
String
mth
:
combination
.
get
(
i
))
{
set
.
add
(
resolveMethod
(
mth
));
}
}
add
(
node
);
node
.
add
(
set
);
}
}
add
(
node
);
}
}
if
(
Utils
.
notEmpty
(
crime
.
register
))
{
if
(
Utils
.
notEmpty
(
crime
.
register
))
{
TextTreeNode
node
=
new
TextTreeNode
(
"Invocations"
);
TextTreeNode
node
=
new
TextTreeNode
(
"Invocations"
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录