-
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from noobpk/dev
update 24-01-2022
- Loading branch information
Showing
22 changed files
with
992 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
frida-android-hook/frida-scripts/android-intercepts-crypto.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
/* Description: Android logcat capture | ||
* Mode: S+A | ||
* Version: 1.0 | ||
* Credit: https://github.com/interference-security/frida-scripts/tree/master/android | ||
* Author: @interference-security | ||
*/ | ||
Java.perform(function() { | ||
var class_name = Java.use("android.util.Log"); | ||
//isLoggable | ||
class_name.isLoggable.overload("java.lang.String", "int").implementation = function (arg1, arg2) { | ||
var today = new Date() | ||
var time = today.getHours() + ":" + today.getMinutes() + ":" + today.getSeconds() | ||
console.log("[*] " + time + " isLoggable was called:") | ||
console.log("\targ1 : " + arg1.toString()) | ||
console.log("\targ2 : " + arg2.toString()) | ||
return true; | ||
} | ||
//DEBUG | ||
class_name.d.overload("java.lang.String", "java.lang.String").implementation = function (arg1, arg2) { | ||
var today = new Date() | ||
var time = today.getHours() + ":" + today.getMinutes() + ":" + today.getSeconds() | ||
console.log("[*] " + time + " DEBUG (d):") | ||
console.log("\targ1 : " + arg1.toString()) | ||
console.log("\targ2 : " + arg2.toString()) | ||
return true; | ||
} | ||
class_name.d.overload("java.lang.String", "java.lang.String", "java.lang.Throwable").implementation = function (arg1, arg2, arg3) { | ||
var today = new Date() | ||
var time = today.getHours() + ":" + today.getMinutes() + ":" + today.getSeconds() | ||
console.log("[*] " + time + " DEBUG (d):") | ||
console.log("\targ1 : " + arg1.toString()) | ||
console.log("\targ2 : " + arg2.toString()) | ||
console.log("\targ3 : " + arg3.toString()) | ||
return true; | ||
} | ||
//ERROR | ||
class_name.e.overload("java.lang.String", "java.lang.String").implementation = function (arg1, arg2) { | ||
var today = new Date() | ||
var time = today.getHours() + ":" + today.getMinutes() + ":" + today.getSeconds() | ||
console.log("[*] " + time + " ERROR (e):") | ||
console.log("\targ1 : " + arg1.toString()) | ||
console.log("\targ2 : " + arg2.toString()) | ||
return true; | ||
} | ||
class_name.e.overload("java.lang.String", "java.lang.String", "java.lang.Throwable").implementation = function (arg1, arg2, arg3) { | ||
var today = new Date() | ||
var time = today.getHours() + ":" + today.getMinutes() + ":" + today.getSeconds() | ||
console.log("[*] " + time + " ERROR (e):") | ||
console.log("\targ1 : " + arg1.toString()) | ||
console.log("\targ2 : " + arg2.toString()) | ||
console.log("\targ3 : " + arg3.toString()) | ||
return true; | ||
} | ||
//INFO | ||
class_name.i.overload("java.lang.String", "java.lang.String").implementation = function (arg1, arg2) { | ||
var today = new Date() | ||
var time = today.getHours() + ":" + today.getMinutes() + ":" + today.getSeconds() | ||
console.log("[*] " + time + " INFO (i):") | ||
console.log("\targ1 : " + arg1.toString()) | ||
console.log("\targ2 : " + arg2.toString()) | ||
return true; | ||
} | ||
class_name.i.overload("java.lang.String", "java.lang.String", "java.lang.Throwable").implementation = function (arg1, arg2, arg3) { | ||
var today = new Date() | ||
var time = today.getHours() + ":" + today.getMinutes() + ":" + today.getSeconds() | ||
console.log("[*] " + time + " INFO (i):") | ||
console.log("\targ1 : " + arg1.toString()) | ||
console.log("\targ2 : " + arg2.toString()) | ||
console.log("\targ3 : " + arg3.toString()) | ||
return true; | ||
} | ||
//VERBOSE | ||
class_name.v.overload("java.lang.String", "java.lang.String").implementation = function (arg1, arg2) { | ||
var today = new Date() | ||
var time = today.getHours() + ":" + today.getMinutes() + ":" + today.getSeconds() | ||
console.log("[*] " + time + " VERBOSE (v):") | ||
console.log("\targ1 : " + arg1.toString()) | ||
console.log("\targ2 : " + arg2.toString()) | ||
return true; | ||
} | ||
class_name.v.overload("java.lang.String", "java.lang.String", "java.lang.Throwable").implementation = function (arg1, arg2, arg3) { | ||
var today = new Date() | ||
var time = today.getHours() + ":" + today.getMinutes() + ":" + today.getSeconds() | ||
console.log("[*] " + time + " VERBOSE (v):") | ||
console.log("\targ1 : " + arg1.toString()) | ||
console.log("\targ2 : " + arg2.toString()) | ||
console.log("\targ3 : " + arg3.toString()) | ||
return true; | ||
} | ||
//WARNING | ||
class_name.w.overload("java.lang.String", "java.lang.String").implementation = function (arg1, arg2) { | ||
var today = new Date() | ||
var time = today.getHours() + ":" + today.getMinutes() + ":" + today.getSeconds() | ||
console.log("[*] " + time + " WARNING (w):") | ||
console.log("\targ1 : " + arg1.toString()) | ||
console.log("\targ2 : " + arg2.toString()) | ||
return true; | ||
} | ||
class_name.w.overload("java.lang.String", "java.lang.Throwable").implementation = function (arg1, arg2) { | ||
var today = new Date() | ||
var time = today.getHours() + ":" + today.getMinutes() + ":" + today.getSeconds() | ||
console.log("[*] " + time + " WARNING (w):") | ||
console.log("\targ1 : " + arg1.toString()) | ||
console.log("\targ2 : " + arg2.toString()) | ||
return true; | ||
} | ||
class_name.w.overload("java.lang.String", "java.lang.String", "java.lang.Throwable").implementation = function (arg1, arg2, arg3) { | ||
var today = new Date() | ||
var time = today.getHours() + ":" + today.getMinutes() + ":" + today.getSeconds() | ||
console.log("[*] " + time + " WARNING (w):") | ||
console.log("\targ1 : " + arg1.toString()) | ||
console.log("\targ2 : " + arg2.toString()) | ||
console.log("\targ3 : " + arg3.toString()) | ||
return true; | ||
} | ||
//What a Terrible Failure (WTF) | ||
class_name.wtf.overload("java.lang.String", "java.lang.String").implementation = function (arg1, arg2) { | ||
var today = new Date() | ||
var time = today.getHours() + ":" + today.getMinutes() + ":" + today.getSeconds() | ||
console.log("[*] " + time + " WTF (wtf):") | ||
console.log("\targ1 : " + arg1.toString()) | ||
console.log("\targ2 : " + arg2.toString()) | ||
return true; | ||
} | ||
class_name.wtf.overload("java.lang.String", "java.lang.Throwable").implementation = function (arg1, arg2) { | ||
var today = new Date() | ||
var time = today.getHours() + ":" + today.getMinutes() + ":" + today.getSeconds() | ||
console.log("[*] " + time + " WTF (wtf):") | ||
console.log("\targ1 : " + arg1.toString()) | ||
console.log("\targ2 : " + arg2.toString()) | ||
return true; | ||
} | ||
class_name.wtf.overload("java.lang.String", "java.lang.String", "java.lang.Throwable").implementation = function (arg1, arg2, arg3) { | ||
var today = new Date() | ||
var time = today.getHours() + ":" + today.getMinutes() + ":" + today.getSeconds() | ||
console.log("[*] " + time + " WTF (wtf):") | ||
console.log("\targ1 : " + arg1.toString()) | ||
console.log("\targ2 : " + arg2.toString()) | ||
console.log("\targ3 : " + arg3.toString()) | ||
return true; | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.