JAR File
[Magic Home][Home]
This is a page for JAR file analysis. | |
File signature analysis (Header analysis)JAR file (Starts with 0x50 0x4B 0x03 0x04 0x14 0x00 0x08 0x00 0x08 0x00)Additional scanning signature analysisPossible: [Postcript file), sig: 2521] Count: 1 File hex characters[00000000] 50 4B 03 04 14 00 08 00 08 00 19 14 43 3F 00 00 PK..........C?.. Base-64 conversionUEsDBBQACAAIABkUQz8AAAAAAAAAAAAAAAAJAAQATUVUQS1JTkYv/soAAAMAUEsHCAAAAAAC |
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); }