private de4dotOptions GetOptions() { var options = new de4dotOptions(); options.Host = _host; options.SourceDir = _sourceDir; options.TextInfoBox = txtInfo; options.Rows = _rows; if (rbDeobf.Checked) { options.Action = de4dotOptions.Actions.Deobfuscate; } else if (rbDetect.Checked) { options.Action = de4dotOptions.Actions.Detect; } options.Verbose = chkVerbose.Checked; options.CreateOutputDir = chkCreateOutputDir.Checked; options.ScanDir = chkScanDir.Checked; options.StringDecrypterType = (de4dotOptions.StringDecrypterTypes)cboStringDecrypter.SelectedItem; options.StringDecrypterMethod = txtStringDecrypterMethod.Text; options.IgnoreUnsupported = chkIgnoreUnsupported.Checked; options.PreserveTokens = chkPreserveTokens.Checked; options.DontRename = chkDontRename.Checked; options.KeepTypes = chkKeepTypes.Checked; options.AdditionalOptions = txtAdditional.Text; return(options); }
private void btnHelp_Click(object sender, EventArgs e) { var options = new de4dotOptions(); options.Host = _host; options.SourceDir = _sourceDir; options.TextInfoBox = txtInfo; options.ExeFile = cboExe.SelectedItem as string; new de4dot(options).Help(); }
public de4dot(de4dotOptions options) : base(options) { }
private de4dotOptions GetOptions() { var options = new de4dotOptions(); options.Host = _host; options.SourceDir = _sourceDir; options.TextInfoBox = txtInfo; options.Rows = _rows; if (rbDeobf.Checked) options.Action = de4dotOptions.Actions.Deobfuscate; else if (rbDetect.Checked) options.Action = de4dotOptions.Actions.Detect; options.Verbose = chkVerbose.Checked; options.CreateOutputDir = chkCreateOutputDir.Checked; options.ScanDir = chkScanDir.Checked; options.StringDecrypterType = (de4dotOptions.StringDecrypterTypes)cboStringDecrypter.SelectedItem; options.StringDecrypterMethod = txtStringDecrypterMethod.Text; options.IgnoreUnsupported = chkIgnoreUnsupported.Checked; options.PreserveTokens = chkPreserveTokens.Checked; options.DontRename = chkDontRename.Checked; options.KeepTypes = chkKeepTypes.Checked; options.AdditionalOptions = txtAdditional.Text; return options; }