News for hackers. Stuff that matters.
Re:File Content Histograms by etherealG on Wednesday July 06, 2011 @09:29AM (#2733757)
does anyone know if this is reliable for guessing file type? how would you code a file type guesser using this techinque?

perhaps relative distributions would be close enough to the "general pattern" for a particular file type to be guessed?

Re:File Content Histograms by sp332 on Wednesday July 06, 2011 @10:28AM (#2734035)
It's not reliable, but it could work for certain filetypes. Notepad uses it for Unicode detection. Try putting "this app can break" into Notepad, save it and reopen it :) http://blogs.msdn.com/b/oldnewthing/archive/2004/03/24/95235...