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 analysisFile signature analysis (Header analysis)JAR file (Starts with 0x50 0x4B 0x03 0x04 0x14 0x00 0x08 0x00 0x08 0x00)Additional scanning signature analysisPossible: [ZIP files, sig: 504B03] Count: 9 File hex characters[00000000] 50 4B 03 04 14 00 08 00 08 00 2E 89 8D 3E 00 00 PK...........>.. Base-64 conversionUEsDBBQACAAIAC6JjT4AAAAAAAAAAAAAAAAUAAAATUVUQS1JTkYvTUFOSUZFU1QuTUaNWNmy |
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); }