Dotbundle_Defuscator
using de4dot.blocks;
using dnlib.DotNet;
using dnlib.DotNet.Emit;
using dnlib.DotNet.Writer;
using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using System.Text;
using System.Windows.Forms;
[assembly: Obfuscation(Feature = "Apply to type *: apply to member * when method or constructor: virtualization", Exclude = false)]
namespace ghostStrDes
{
public partial class MainForm : Form
{
public MainForm()
{
InitializeComponent();
}
private string DirectoryName = string.Empty;
[Obfuscation(Feature = "virtualization", Exclude = false)]
private Assembly assembly;
private List allMethods = new List();
private List singleMethods = new List(); //多余的int param ,没有Switch
private List switchMethods = new List(); //多余的int param ,有Switch
private void tbFileName_DragDrop(object sender, DragEventArgs e)
{
try
{
Array array = (Array)e.Data.GetData(DataFormats.FileDrop);
if (array != null)
{
string text = array.GetValue(0).ToString();
int num = text.LastIndexOf(".");
if (num != -1)
{
string text2 = text.Substring(num);
text2 = text2.ToLower();
if (text2 == ".exe" || text2 == ".dll")
{
base.Activate();
tbFileName.Text = text;
int num2 = text.LastIndexOf("\\");
if (num2 != -1)
{
DirectoryName = text.Remove(num2, text.Length - num2);
}
if (DirectoryName.Length == 2)
{
DirectoryName += "\\";
}
}
}
}
}
catch
{
}
}
private void tbFileName_DragEnter(object sender, DragEventArgs e)
{
if (e.Data.GetDataPresent(DataFormats.FileDrop))
{
e.Effect = DragDropEffects.Copy;
}
else
{
e.Effect = DragDropEffects.None;
}
}
[Obfuscation(Feature = "virtualization", Exclude = false)]
private void btnGo_Click(object sender, EventArgs e)
{
if (string.IsNullOrWhiteSpace(tbFileName.Text)) //Check whether the settings file
{
rtLog.AppendText("Please select the application that needs to be decoded. !\r\n");
return;
}
if (!File.Exists(tbFileName.Text)) //Check if the file exists
{
rtLog.AppendText("decrypt the file does not exist ! \r\n");
return;
}
update links
Download:
http://qwe.tw/release/Dotbundle_Defuscator.7z
Last edited by Sound; 04-29-2016 at 14:27.
|