TAR File Contents Analysis[Back] This is a page for TAR file analysis (Header). Try sample file: Try an exampleWhat are we looking for?For a TAR file, we are looking for "u s t a r" at Byte 257. Try your ownOr enter your own URL to analyse the first six sectors of the file: |
File contents analysis |
Sample code
public string getTar(byte[] b) { string TextBox1 = ""; try { TextBox1 += "Byte 257 [Should be 75]: " + Global.intToHex(b[257]) + "<br/>"; TextBox1 += "Byte 258 [Should be 73]: " + Global.intToHex(b[258]) + "<br/>"; TextBox1 += "Byte 259 [Should be 74]: " + Global.intToHex(b[259]) + "<br/>"; TextBox1 += "Byte 260 [Should be 61]: " + Global.intToHex(b[260]) + "<br/>"; TextBox1 += "Byte 261 [Should be 72]: " + Global.intToHex(b[261]) + "<br/>"; } catch { } return (TextBox1); }