rms-runtime-mobile-security
Version:
Runtime Mobile Security (RMS), powered by FRIDA, is a powerful web interface that helps you to manipulate Android and iOS Apps at Runtime
25 lines (23 loc) • 869 B
JavaScript
/************************************************************************
* Name: Pasteboard Monitor
* OS: iOS
* Author: @noobpk
* Source: https://github.com/noobpk/frida-ios-hook
*************************************************************************/
function start_pasteboard_monitoring(interval_value) {
var pasteboard = (ObjC.classes.UIPasteboard).generalPasteboard();
var latest_word = "";
setInterval(function() {
try {
var on_pasteboard = pasteboard.string().toString()
if (on_pasteboard != latest_word) {
send("[*] Found on pasteboard: " + on_pasteboard);
latest_word = on_pasteboard;
}
} catch (err) {
a = "";
}
}, interval_value);
}
//start_pasteboard_monitoring(INTERVAL_VALUE_HERE_MILLISECONDS)
start_pasteboard_monitoring(2000)