TARThis 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. |
File contents analysisByte 257 [Should be 75 - u]: 20 File signature analysis (Header analysis)Additional scanning signature analysisFile hex characters[00000000] 3C 21 64 6F 63 74 79 70 65 20 68 74 6D 6C 3E 0A <!doctype.html>. Base-64 conversionPCFkb2N0eXBlIGh0bWw+CjxodG1sIGRhdGEtYWRibG9ja2tleT0iTUZ3d0RRWUpLb1pJaHZj |
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); }