Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdferrell3/2ecc2a7cdaac9effc92f69bd4a8f18aa to your computer and use it in GitHub Desktop.
Save jdferrell3/2ecc2a7cdaac9effc92f69bd4a8f18aa to your computer and use it in GitHub Desktop.
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