private void btn_genNativeJson_Click(object sender, EventArgs e) { if (NativeJsonGenerateCompleted != null) { List <NativeConfig> nConfigs = new List <NativeConfig>(ConstractResults(dataGridView_Native, HookType.NATIVE).Cast <NativeConfig>()); NativeConfigEventArgs args = new NativeConfigEventArgs(nConfigs); NativeJsonGenerateCompleted(this, args); } }
private void FridaHookControl1_NativeScriptGenerateCompleted(object sender, NativeConfigEventArgs e) { int counter = 0; string res = ""; foreach (NativeConfig cr in e.Config.ConfigList) { foreach (Dictionary <string, NativeParaItem> chk in cr.ParamConfig) { List <Object> checkedItems = chk.Values.ToList <Object>(); string script = CodeUtil.GenNativeCode(cr.ModelName, cr.Address, checkedItems, counter++); res += "\r\n" + script; } } outputBox.Text = res; outputBox.Refresh(); ScriptGenerateCompleted?.Invoke(this, e); }
private void FridaHookControl1_NativeJsonGenerateCompleted(object sender, NativeConfigEventArgs e) { inputBox.Text = JsonConvert.SerializeObject(e.Config, Formatting.Indented); }