Update FormBuilder.cs
This commit is contained in:
parent
a85365a836
commit
4ab00f8b60
@ -182,13 +182,14 @@ namespace Server.Forms
|
|||||||
if (!textFilename.Text.EndsWith("exe")) textFilename.Text += ".exe";
|
if (!textFilename.Text.EndsWith("exe")) textFilename.Text += ".exe";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (string.IsNullOrWhiteSpace(txtMutex.Text)) txtMutex.Text = Guid.NewGuid().ToString().Substring(20);
|
if (string.IsNullOrWhiteSpace(txtMutex.Text)) txtMutex.Text = getRandomCharacters();
|
||||||
|
|
||||||
if (chkPastebin.Checked && string.IsNullOrWhiteSpace(txtPastebin.Text)) return;
|
if (chkPastebin.Checked && string.IsNullOrWhiteSpace(txtPastebin.Text)) return;
|
||||||
|
|
||||||
|
ModuleDefMD asmDef = null;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
using (ModuleDefMD asmDef = ModuleDefMD.Load(@"Stub/Stub.exe"))
|
using (asmDef = ModuleDefMD.Load(@"Stub/Stub.exe"))
|
||||||
using (SaveFileDialog saveFileDialog1 = new SaveFileDialog())
|
using (SaveFileDialog saveFileDialog1 = new SaveFileDialog())
|
||||||
{
|
{
|
||||||
saveFileDialog1.Filter = ".exe (*.exe)|*.exe";
|
saveFileDialog1.Filter = ".exe (*.exe)|*.exe";
|
||||||
@ -226,7 +227,9 @@ namespace Server.Forms
|
|||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
MessageBox.Show(ex.Message, "AsyncRAT | Builder", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
MessageBox.Show(ex.Message, "AsyncRAT | Builder", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||||
|
asmDef?.Dispose();
|
||||||
btnBuild.Enabled = true;
|
btnBuild.Enabled = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user