int eval_dump(byte[] blob) { int idx = CmdEngine.theInstance.dumps.Count; DumpEntry dumpEntry = new DumpEntry(); dumpEntry.Source = this.clientName; dumpEntry.Data = blob; CmdEngine.theInstance.dumps.Add(dumpEntry); string result = Program.GetResourceString("Threads.Client.Dump", idx, dumpEntry.Data.Length); Logger.N(result); Gui.theInstance.InvokeOn((FMain Me) => { Me.lstDumps.Items.Add(new ListViewItem(new string[] { idx.ToString(), dumpEntry.Data.Length.ToString(), this.clientName })); Me.txtHookedResults.Text += (result + Environment.NewLine); }); return(idx); }
private void SaveDump() { int idx = lstDumps.SelectedIndices[0]; Threads.DumpEntry entry = Threads.CmdEngine.theInstance.dumps[idx]; dlgDumpSave.FileName = Program.GetResourceString( "UI.Gui.Dump.Format", idx, entry.Source ); if (dlgDumpSave.ShowDialog() != DialogResult.OK) { return; } string cmd = String.Format("dump {0} --format={1} --save=\"{2}\"", lstDumps.SelectedIndices[0], cboDumpFormats.SelectedItem, dlgDumpSave.FileName ); Threads.CmdEngine.theInstance.AddCommand(cmd); }