JARThis is a page for JAR file analysis (Header). Try sample file: Try an exampleWhat are we looking for?For an JAR file, we are looking for PK........ or, in hex, 50 4B 03 04 14 00 08 00 08 00 at the start of the file. } |
File contents analysisSelect file |
Sample code
public string getFlv(byte[] b) { string TextBox1 = ""; try { TextBox1 += "Byte 0 [Should be 46]: " + Global.intToHex(b[0]) + "<br/>"; TextBox1 += "Byte 1 [Should be 4c]: " + Global.intToHex(b[1]) + "<br/>"; TextBox1 += "Byte 2 [Should be 56]: " + Global.intToHex(b[2]) + "<br/>"; TextBox1 += "Byte 3: Version (should be 1): " + Global.intToHex(b[3]) + "<br/>"; TextBox1 += "Byte 4: Flags (should be 5 - audio and video): " + Global.intToHex(b[4]) + "<br/>"; uint filesize = ((uint)b[8] << 24) + ((uint)b[7] << 16) + ((uint)b[6] << 8) + ((uint)b[5]); } catch { } return (TextBox1); }