Created
March 9, 2018 02:39
-
-
Save jdferrell3/2ecc2a7cdaac9effc92f69bd4a8f18aa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void Main() | |
{ | |
try | |
{ | |
//IntPtr fResource = FindResource(new IntPtr(0), new IntPtr(130), new IntPtr(23)); | |
//uint sResource = SizeofResource(new IntPtr(0), fResource); | |
//IntPtr lResource = LoadResource(new IntPtr(0), fResource); | |
//IntPtr dResource = LockResource(lResource); | |
//CtNmG = new byte[sResource]; | |
//System.Runtime.InteropServices.Marshal.Copy(dResource, CtNmG, 0, System.Convert.ToInt32(sResource)); | |
// Read the resource from a file, "convert" it, and write it to a file | |
byte[] array = File.ReadAllBytes("c:\\users\\admin\\desktop\\130.bin"); | |
CtNmG = qAqQHwJ(ConvertFromBmp(Byte2Image(array))); | |
File.WriteAllBytes("c:\\users\\admin\\desktop\\payload.bin", CtNmG); | |
//System.Threading.Thread thr = new System.Threading.Thread(rYARgCibTpkrykbr); | |
//thr.Start(); | |
} | |
catch (ArgumentException e) | |
{ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment