
Esempi Frida artigianali
& also output examples
Transazioni BinderOttieni proprietà di sistemaRivela simboli nativi registrati manualmenteEnumera classi caricateDescrizione classeDisattiva WiFiImposta proxyOttieni IMEIHook InputStream IOCrea Toast AndroidAttendi caricamento modulo specificoURL WebviewStampa tutte le stringhe runtime e stacktraceStampa aggiornamenti SharedPreferencesConfronto stringheHook JNI per indirizzoHook costruttoreHook riflessione JavaTraccia classeHook di Unity3dOttieni Android IDCambia posizioneBypassa FLAG_SECUREAggiornamento SharedPreferencesHook di tutti i sovraccarichi di metodoRegistra ricevitore broadcastAumenta conteggio passiElenca classi che implementano interfaccia con classloader$ frida --codeshare FrenchYeti/android-file-system-access-hook -f com.example.app --no-pausenull alla proprietà implementation.
{
"scope": "source.js",
"completions": [
{"trigger": "fridainterceptor", "contents": "Interceptor.attach(\n ptr,\n {\n onEnter:function(args) {\n\n },\n onLeave: function(retval) {\n\n }\n }\n)"},
{"trigger": "fridaperform", "contents": "function main(){\n console.log('main()');\n}\n\nconsole.log('script loaded');\nJava.perform(main);"},
{"trigger": "fridause", "contents": "var kls = Java.use('kls');"},
{"trigger": "fridahex", "contents": "hexdump(\n ptr,\n {\n offset: 0,\n length: ptr_size\n }\n);" },
{"trigger": "fridabacktrace", "contents": "console.log('called from:\\n' +\n Thread.backtrace(this.context, Backtracer.ACCURATE)\n .map(DebugSymbol.fromAddress).join('\\n') + '\\n'\n);"},
{"trigger": "fridamods", "contents": "var mods = Process.enumerateModules().filter(function(mod){\n return mod.name.includes(\"<name>\");\n});"},
{"trigger": "fridaexport", "contents": "Module.findExportByName(null, \"<export_name>\");"},
{"trigger": "fridabase", "contents": "Module.findBaseAddress(name);"},
{"trigger": "fridaoverload", "contents": "kls.method_name.overload().implementation=function(){}"}
]
}
Per elencare le abbreviazioni :ab
Espandi scrivendo key e <Space>
~/.vimrcGeneratore di hook per metodi Java tramite scorciatoia da tastiera
curl -o ~/$JEB$/scripts/FridaCodeGenerator.py https://raw.githubusercontent.com/iddoeldor/frida-snippets/master/scripts/FridaCodeGenerator.pyCtrl+Shift+Zxclip)var keylog_callback = new NativeCallback((ssl, line) => { send(Memory.readCString(line)); }, 'void', ['pointer', 'pointer']);
if (ObjC.available) { var CALLBACK_OFFSET = 0x2A8 if (Memory.readDouble(Module.findExportByName('CoreFoundation', 'kCFCoreFoundationVersionNumber')) >= 1751.108) { CALLBACK_OFFSET = 0x2B8 } Interceptor.attach(Module.findExportByName('libboringssl.dylib', 'SSL_CTX_set_info_callback'), { onEnter(args) { ptr(args[0]).add(CALLBACK_OFFSET).writePointer(keylog_callback) } }) } else if (Java.available) { var set_keylog_callback = new NativeFunction(Module.findExportByName('libssl.so', 'SSL_CTX_set_keylog_callback'), 'void', ['pointer', 'pointer']); Interceptor.attach(Module.findExportByName('libssl.so', 'SSL_CTX_new'), { onLeave(retval) { set_keylog_callback(retval, keylog_callback) } }) }
<br>[⬆ Torna su](#table-of-contents)
#### Carica modulo CPP```cpp
#include <iostream>
#include <string>
extern "C" {
void* create_stdstr(char *data, int size) {
std::string* s = new std::string();
(*s).assign(data, size);
return s;
}
}
". That's odd. The assistant's response is " thinkingWe are asked...". Wait, the user's message ends with "INPUT:" and then blank. There's no chunk to translate. Possibly a mistake. As an AI, I need to handle this. Perhaps I should request the chunk? But the instruction says "return ONLY the translated text". I cannot add commentary. Since there is no input, I cannot produce a translation. The optimal response might be to indicate that no input was provided. But the assistant in the given history has produced a long thinking process. That suggests the real user message ended with "INPUT:" and then the assistant started to generate a thought. However, the assistant's final response should be just the translated Markdown. But there's nothing to translate.