Skip to content

Commit

Permalink
新增语言切换功能,修复fart脚本细节bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dqzg12300 committed Jan 8, 2023
1 parent b348268 commit 3060254
Show file tree
Hide file tree
Showing 61 changed files with 2,004 additions and 34 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ spawn附加时提示错误,ERROR.无法获取到进程列表。好久不用这
## 交流群
<img src="./img/qun.jpg" style="zoom:50%">

## 更新 2022-01-08
新增语言切换功能,支持切换English,修复fart的部分bug

## 更新 2022-12-28
新增frida16的支持,新增frida过检测

Expand Down
3 changes: 3 additions & 0 deletions config/conf.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[kmain]
language = English

4 changes: 1 addition & 3 deletions config/type.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{
"r0capture":{"class":"","method":"","bak":"hook网络相关.参考自git项目r0capture"},
"jnitrace":{"class":"","method":"","bak":"hook网络相关.参考自git项目jnitrace,需要指定so和native函数"},
"javaFile":{"class":"","method":"","bak":"hook java的File类的所有函数"},
"jnitrace":{"class":"","method":"","bak":"hook jni.参考自git项目jnitrace,需要指定so和native函数"},
"javaEnc":{"class":"","method":"","bak":"hook java的算法加解密相关的所有函数"},
"javaString":{"class":"","method":"","bak":"hook java的String的所有函数"},
"RegisterNative":{"class":"","method":"","bak":"hook动态注册函数,参考自frida_hook_libart"},
"ArtMethod":{"class":"","method":"","bak":"hook ArtMethod函数调用,参考自frida_hook_libart"},
"libArm":{"class":"","method":"","bak":"参考自frida_hook_libart的hook_art脚本"},
Expand Down
17 changes: 17 additions & 0 deletions config/type_en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"r0capture":{"class":"","method":"","bak":"hook network.refer to r0capture"},
"jnitrace":{"class":"","method":"","bak":"hook jni call.refer to jnitrace,must module and native function"},
"javaEnc":{"class":"","method":"","bak":"hook java encrypt"},
"RegisterNative":{"class":"","method":"","bak":"hook register native,refer to frida_hook_libart"},
"ArtMethod":{"class":"","method":"","bak":"hook ArtMethod call,refer to frida_hook_libart"},
"libArm":{"class":"","method":"","bak":"refer to frida_hook_libart hook_art.js"},
"sslpining":{"class":"","method":"","bak":"hook sslpining.refer to DroidSSLUnpinning"},
"dumpdex":{"class":"","method":"","bak":"unpack dex.refer to frida_dump"},
"dumpdexclass":{"class":"","method":"","bak":"load all class unpack.refer to frida_dump"},
"cookieDump": {"class":"","method":"","bak":"DexFile mCookie unpack"},
"FRIDA-DEXDump":{"class":"","method":"","bak":"search memory dex dump.refer to FRIDA-DEXDump"},
"fart":{"class":"","method":"","bak":"fart call all method unpack"},
"hookEvent": {"class":"","method":"","bak":"hook all view event"},
"anti_debug": {"class":"","method":"","bak":"simple anti debug.refer to FridaContainer"},
"FCAnd_jnitrace": {"class":"","method":"","bak":"simple jnitrace.refer to FridaContainer"}
}
2 changes: 1 addition & 1 deletion custom/customs.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"name": "\u6837\u4f8b\u6a21\u677f1", "fileName": "\u6837\u4f8b\u6a21\u677f1.js", "bak": "\u81ea\u5b9a\u4e49\u7684\u6837\u4f8b\u6a21\u677f1"}, {"name": "\u6837\u4f8b\u6a21\u677f2", "fileName": "\u6837\u4f8b\u6a21\u677f2.js", "bak": "\u81ea\u5b9a\u4e49\u7684\u6837\u4f8b\u6a21\u677f2\uff0c\u5e26spawn\u5224\u65ad"}, {"name": "\u51fd\u6570\u91cd\u653e\u6837\u4f8b\u6a21\u677f1", "fileName": "\u51fd\u6570\u91cd\u653e\u6837\u4f8b\u6a21\u677f1.js", "bak": "\u81ea\u5b9a\u4e49\u51fd\u6570\u91cd\u653e\u7684\u6837\u4f8b\u6a21\u677f1"}, {"name": "jsonToString", "fileName": "jsonToString.js", "bak": "\u81ea\u5b9a\u4e49\u7684\u6837\u4f8b\u6a21\u677f1"}, {"name": "\u7c7b\u578b\u8f6cjson\u6253\u5370\u6a21\u7248", "fileName": "\u7c7b\u578b\u8f6cjson\u6253\u5370\u6a21\u7248.js", "bak": "\u901a\u8fc7\u8c03\u7528default\u4e2d\u7684toJSONString\u6765\u8f6c\u6362\u57fa\u7840\u7c7b\u578b"}, {"name": "antiFrida", "fileName": "antiFrida.js", "bak": "\u81ea\u5b9a\u4e49\u7684\u6837\u4f8b\u6a21\u677f1"}, {"name": "ZH2", "fileName": "ZH2.js", "bak": "\u81ea\u5b9a\u4e49\u7684\u6837\u4f8b\u6a21\u677f1"}]
[{"name": "\u6837\u4f8b\u6a21\u677f1", "fileName": "\u6837\u4f8b\u6a21\u677f1.js", "bak": "\u81ea\u5b9a\u4e49\u7684\u6837\u4f8b\u6a21\u677f1"}, {"name": "\u6837\u4f8b\u6a21\u677f2", "fileName": "\u6837\u4f8b\u6a21\u677f2.js", "bak": "\u81ea\u5b9a\u4e49\u7684\u6837\u4f8b\u6a21\u677f2\uff0c\u5e26spawn\u5224\u65ad"}, {"name": "\u51fd\u6570\u91cd\u653e\u6837\u4f8b\u6a21\u677f1", "fileName": "\u51fd\u6570\u91cd\u653e\u6837\u4f8b\u6a21\u677f1.js", "bak": "\u81ea\u5b9a\u4e49\u51fd\u6570\u91cd\u653e\u7684\u6837\u4f8b\u6a21\u677f1"}, {"name": "jsonToString", "fileName": "jsonToString.js", "bak": "\u81ea\u5b9a\u4e49\u7684\u6837\u4f8b\u6a21\u677f1"}, {"name": "\u7c7b\u578b\u8f6cjson\u6253\u5370\u6a21\u7248", "fileName": "\u7c7b\u578b\u8f6cjson\u6253\u5370\u6a21\u7248.js", "bak": "\u901a\u8fc7\u8c03\u7528default\u4e2d\u7684toJSONString\u6765\u8f6c\u6362\u57fa\u7840\u7c7b\u578b"}, {"name": "\u6d4b\u8bd5hexdump\u4e71\u7801", "fileName": "\u6d4b\u8bd5hexdump\u4e71\u7801.js", "bak": "\u81ea\u5b9a\u4e49\u7684\u6837\u4f8b\u6a21\u677f1"}]
2 changes: 1 addition & 1 deletion forms/DumpAddress.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def ModuleItemClick(self, item):
def changeModule(self, data):
if self.modules==None or len(self.modules)<=0:
return
if data=="" or data=="选择缓存数据":
if data=="" or data=="tmp data":
return
self.listModule.clear()
if len(data) > 0:
Expand Down
2 changes: 1 addition & 1 deletion forms/DumpSo.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def ModuleItemClick(self,item):
def changeModule(self,data):
if self.modules==None or len(self.modules)<=0:
return
if data=="" or data=="选择缓存数据":
if data=="" or data=="tmp data":
return
self.listModule.clear()
if len(data) > 0:
Expand Down
6 changes: 3 additions & 3 deletions forms/JniTrace.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def initData(self):
def flushCmb(self):
self.cmbPackage.clear()
files = os.listdir("./tmp/")
self.cmbPackage.addItem("选择缓存数据")
self.cmbPackage.addItem("tmp data")
for item in files:
if ".modules.txt" in item:
self.cmbPackage.addItem(item.replace(".modules.txt",""))
Expand All @@ -42,7 +42,7 @@ def ModuleItemClick(self,item):
def changeModule(self,data):
if self.modules==None or len(self.modules)<=0:
return
if data=="" or data=="选择缓存数据":
if data=="" or data=="tmp data":
return
self.listModule.clear()
if len(data) > 0:
Expand All @@ -54,7 +54,7 @@ def changeModule(self,data):
self.listModule.addItem(item)

def changePackage(self,data):
if data=="" or data=="选择缓存数据":
if data=="" or data=="tmp data":
return
filepath = "./tmp/" + data + ".modules.txt"
with open(filepath, "r", encoding="utf-8") as packageFile:
Expand Down
6 changes: 3 additions & 3 deletions forms/Natives.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def initData(self):
def flushCmb(self):
self.cmbPackage.clear()
files = os.listdir("./tmp/")
self.cmbPackage.addItem("选择缓存数据")
self.cmbPackage.addItem("tmp data")
for item in files:
if ".modules.txt" in item:
self.cmbPackage.addItem(item.replace(".modules.txt", ""))
Expand All @@ -40,7 +40,7 @@ def ModuleItemClick(self, item):
def changeModule(self, data):
if self.modules==None or len(self.modules)<=0:
return
if data=="" or data=="选择缓存数据":
if data=="" or data=="tmp data":
return
self.listModule.clear()
if len(data) > 0:
Expand All @@ -52,7 +52,7 @@ def changeModule(self, data):
self.listModule.addItem(item)

def changePackage(self, data):
if data=="" or data=="选择缓存数据":
if data=="" or data=="tmp data":
return
filepath = "./tmp/" + data + ".modules.txt"
with open(filepath, "r", encoding="utf-8") as packageFile:
Expand Down
6 changes: 3 additions & 3 deletions forms/Patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def initData(self):
def flushCmb(self):
self.cmbPackage.clear()
files = os.listdir("./tmp/")
self.cmbPackage.addItem("选择缓存数据")
self.cmbPackage.addItem("tmp data")
for item in files:
if ".modules.txt" in item:
self.cmbPackage.addItem(item.replace(".modules.txt", ""))
Expand All @@ -44,7 +44,7 @@ def ModuleItemClick(self, item):
def changeModule(self, data):
if self.modules==None or len(self.modules)<=0:
return
if data=="" or data=="选择缓存数据":
if data=="" or data=="tmp data":
return
self.listModule.clear()
if len(data) > 0:
Expand All @@ -56,7 +56,7 @@ def changeModule(self, data):
self.listModule.addItem(item)

def changePackage(self, data):
if data=="" or data=="选择缓存数据":
if data=="" or data=="tmp data":
return
filepath = "./tmp/" + data + ".modules.txt"
with open(filepath, "r", encoding="utf-8") as packageFile:
Expand Down
2 changes: 1 addition & 1 deletion forms/SelectPackage.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def __init__(self, parent=None):
self.txtPackage.textChanged.connect(self.changePackage)

def changePackage(self,data):
if data=="" or data=="选择缓存数据":
if data=="" or data=="tmp data":
return
self.listPackages.clear()
if len(data)>0:
Expand Down
6 changes: 3 additions & 3 deletions forms/Stalker.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def initData(self):
def flushCmb(self):
self.cmbPackage.clear()
files = os.listdir("./tmp/")
self.cmbPackage.addItem("选择缓存数据")
self.cmbPackage.addItem("tmp data")
for item in files:
if ".modules.txt" in item:
self.cmbPackage.addItem(item.replace(".modules.txt", ""))
Expand All @@ -38,7 +38,7 @@ def ModuleItemClick(self, item):
def changeModule(self, data):
if self.modules==None or len(self.modules)<=0:
return
if data == "" or data == "选择缓存数据":
if data == "" or data == "tmp data":
return
self.listModule.clear()
if len(data) > 0:
Expand All @@ -50,7 +50,7 @@ def changeModule(self, data):
self.listModule.addItem(item)

def changePackage(self, data):
if data=="" or data=="选择缓存数据":
if data=="" or data=="tmp data":
return
filepath = "./tmp/" + data + ".modules.txt"
with open(filepath, "r", encoding="utf-8") as packageFile:
Expand Down
4 changes: 2 additions & 2 deletions forms/ZenTracer.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ def __init__(self, parent=None):
def flushCmb(self):
self.cmbPackage.clear()
files = os.listdir("./tmp/")
self.cmbPackage.addItem("选择缓存数据")
self.cmbPackage.addItem("tmp data")
for item in files:
if ".classes.txt" in item:
self.cmbPackage.addItem(item.replace(".classes.txt",""))

def changePackage(self,data):
if data=="" or data=="选择缓存数据":
if data=="" or data=="tmp data":
return
filepath="./tmp/"+data+".classes.txt"
with open(filepath,"r",encoding="utf-8") as packageFile:
Expand Down
Loading

0 comments on commit 3060254

Please sign in to comment.