Skip to content

Instantly share code, notes, and snippets.

View absturztaube's full-sized avatar
😺
Nyaa~ Nya~

Julian Wampfler absturztaube

😺
Nyaa~ Nya~
View GitHub Profile
@C0BR4cH
C0BR4cH / OLEObjectUtil.cs
Created April 21, 2017 08:16
Removal of OLE header from images
public static class OLEObjectUtil
{
private const string BITMAP_OLE_HEADER = "BM";
private const string JPG_OLE_HEADER = "\u00FF\u00D8\u00FF";
private const string PNG_OLE_HEADER = "\u0089PNG\r\n\u001a\n";
private const string GIF_OLE_HEADER = "GIF8";
private const string TIFF_OLE_HEADER = "II*\u0000";
public static byte[] RemoveOleHeader(byte[] inputBytes)
{