示例#1
0
    ?>
 bytes - compressed info: <?php 
    echo $y;
    ?>
				</h4>
			</div>
			<div class="modal-body">
<?php 
    $bytes = Binary::readBinaryBytesAtOffset($vars["binary"], $x, $nbytes);
    $mode = Common::getString("mode");
    if ($mode != "hex" && $mode != "ascii") {
        $mode = "ascii";
    }
    print "<pre>";
    if ($mode == "hex") {
        $html = "<div style='font-size:10pt'>" . Binary::hexDump($bytes) . "</div>";
    } else {
        $bytes = preg_replace("/[\r\n]/", " ", $bytes);
        $html = htmlentities($bytes, ENT_DISALLOWED, "iso-8859-1");
        $html = preg_replace("/&#xFFFD;/", " ", $html);
    }
    print $html;
    print "</pre>";
    ?>
			</div>
			<div class="modal-footer">
			<?php 
    if ($mode == "hex") {
        ?>
				 <button type="button" class="btn btn-default" onClick="document.location='?report=<?php 
        echo $vars["md5"];