Skip to content

Commit d0aeafe

Browse files
committed
Switch core library to shuriken-based
1 parent 918c9f4 commit d0aeafe

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

quark/agent/agentTools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def initQuarkObject(apk_path: str):
5858
"""
5959
global quark
6060

61-
quark_lib = "androguard"
61+
quark_lib = "shuriken"
6262
quark = Quark(apk_path, core_library=quark_lib)
6363

6464
return "Quark initialized successfully"

quark/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
case_sensitive=False
139139
),
140140
required=False,
141-
default="androguard",
141+
default="shuriken",
142142
)
143143
@click.option(
144144
"--multi-process",

quark/core/quark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
class Quark:
4444
"""Quark module is used to check quark's five-stage theory"""
4545

46-
def __init__(self, apk, core_library="androguard"):
46+
def __init__(self, apk, core_library="shuriken"):
4747
"""
4848
4949
:param apk: the filename of the apk.

quark/forensic/forensic.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
from quark.core.apkinfo import AndroguardImp
66
from quark.core.rzapkinfo import RizinImp
7+
from quark.core.shurikenapkinfo import ShurikenImp
78
from quark.utils.regex import (
89
extract_url,
910
extract_ip,
@@ -16,8 +17,10 @@
1617
class Forensic:
1718
__slots__ = ["apk", "all_strings"]
1819

19-
def __init__(self, apkpath, core_library="androguard"):
20-
if core_library == "rizin":
20+
def __init__(self, apkpath, core_library="shuriken"):
21+
if core_library == "shuriken":
22+
self.apkinfo = ShurikenImp(apkpath)
23+
elif core_library == "rizin":
2124
self.apk = RizinImp(apkpath)
2225
elif core_library == "androguard":
2326
self.apk = AndroguardImp(apkpath)

quark/report.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Report:
1616
def __init__(self):
1717
self.quark = None
1818

19-
def analysis(self, apk, rule, core_library="androguard"):
19+
def analysis(self, apk, rule, core_library="shuriken"):
2020
"""
2121
The main function of Quark-Engine analysis, the analysis is based on the provided APK file.
2222

0 commit comments

Comments
 (0)