void do_taint_sendkey(Monitor *mon,const QDict *qdict) { if (qdict_haskey(qdict, "key")) { //register keystroke callback taint_key_enabled = 1; if (!keystroke_cb_handle) keystroke_cb_handle = DECAF_register_callback(DECAF_KEYSTROKE_CB, tracing_send_keystroke, &taint_key_enabled); // Send the key do_send_key(qdict_get_str(qdict, "key")); } else monitor_printf(mon, "taint_sendkey command is malformed\n"); }
//! Get a keystroke from TEMU terminal void do_taint_sendkey(char const * string, int id) { taint_sendkey_id = id; // TEMU api do_send_key(string); }