Created
August 18, 2023 20:09
-
-
Save miticollo/6d813c3c64b3607054b5c36dc0462bdd to your computer and use it in GitHub Desktop.
Based on https://github.com/opa334/TimeBomb by opa334
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
const SYSTEMCONFIGURATION_PATH = '/System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration'; | |
const CAPTIVENETWORK_PATH = '/System/Library/PrivateFrameworks/CaptiveNetwork.framework/CaptiveNetwork'; | |
const FOUNDATION_PATH = '/System/Library/Frameworks/Foundation.framework/Foundation'; | |
Interceptor.attach(Module.getExportByName(SYSTEMCONFIGURATION_PATH, "CNCopyCurrentNetworkInfo"), { | |
onEnter(args) { | |
console.log("onEnter CNCopyCurrentNetworkInfo"); | |
}, | |
onLeave(retval) { | |
console.log("onLeave CNCopyCurrentNetworkInfo"); | |
} | |
}); | |
Interceptor.attach(Module.getExportByName(CAPTIVENETWORK_PATH, "CNCopyCurrentNetworkInfo"), { | |
onEnter(args) { | |
console.log("onEnter __CNCopyCurrentNetworkInfo"); | |
}, | |
onLeave(retval) { | |
console.log("onLeave __CNCopyCurrentNetworkInfo"); | |
} | |
}); | |
Interceptor.attach(Module.getExportByName(SYSTEMCONFIGURATION_PATH, "SCNetworkReachabilityGetFlags"), { | |
onEnter(args) { | |
console.log("onEnter SCNetworkReachabilityGetFlags"); | |
}, | |
onLeave(retval) { | |
console.log("onLeave SCNetworkReachabilityGetFlags"); | |
} | |
}); | |
Interceptor.attach(Module.getExportByName(FOUNDATION_PATH, "CFAbsoluteTimeGetCurrent"), { | |
onEnter(args) { | |
console.log("onEnter SCNetworkReachabilityGetFlags"); | |
}, | |
onLeave(retval) { | |
console.log("onLeave SCNetworkReachabilityGetFlags"); | |
} | |
}); | |
Interceptor.attach(Module.getExportByName(null, "time"), { | |
onEnter(args) { | |
console.log("onEnter time"); | |
}, | |
onLeave(retval) { | |
console.log("onLeave time"); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment