<?php if (!isset($_SESSION["crate_" . $vars["binary"]])) { $crate = Binary::compression_rate($vars["binary"]); $_SESSION["crate_" . $vars["binary"]] = $crate; } else { $crate = $_SESSION["crate_" . $vars["binary"]]; } $filesize = Binary::filesize($vars["binary"], false); $nbytes = intval($filesize / count($crate)); $x = Common::getInteger("x"); if (strlen($x)) { $label = htmlentities(Common::getString("label")); //if($nbytes>1024*2) $nbytes=1024*2; $found = false; $found_next = false; $found_prev = false; $x_prev = 0; $label_prev = ""; $y = "?"; foreach ($crate as $point) { if ($found) { $x_next = $point["x"]; $label_next = "0x" . dechex($point["x"]) . " " . $point["label"]; $found_next = true; break; } if ($point["x"] == $x) { $found = true; $y = $point["y"]; if (isset($last_point)) {
?> <div class="row clearfix"> <div class="col-md-12 column"> <table class="table table-bordered"> <thead> <tr> <td width=20% class="active">MD5</td> <td><?php echo $vars["md5"]; ?> </td> </tr> <tr> <td class="active">File Size</td> <td><?php echo Binary::filesize($vars["binary"]); ?> </td> </tr> <tr> <td class="active">File Type</td> <td><?php echo Binary::magic($vars["binary"]); ?> </td> </tr> <tr> <td class="active">Internal Date</td> <td><?php echo date("Y-m-d H:i", $timedatestamp); ?>
} if (file_exists($binary)) { if ($action == "details" || $action == "") { print Templates::Load("templates/misc/info.php", array("md5" => $md5, "binary" => $binary)); print Templates::Load("templates/misc/info_version.php", array("md5" => $md5, "binary" => $binary)); } if ($action == "dump_sec") { print Templates::Load("templates/misc/sections.php", array("md5" => $md5, "binary" => $binary, "sections" => $sections)); if ($id > 0) { print Templates::Load("templates/misc/section_dump.php", array("")); } print Templates::Load("templates/art/draw_sections.php", array("version" => Binary::version($binary), "magic" => Binary::magic($binary), "resources" => $resources, "sections" => $sections, "md5" => $md5)); } if ($action == "dump_res") { print Templates::Load("templates/misc/resources.php", array("resources" => $resources)); print Templates::Load("templates/art/draw_resources.php", array("resources" => $resources, "filesize" => Binary::filesize($binary, false), "md5" => $md5, "res_size" => Binary::resourcesSize($binary), "res_comp" => Binary::resourcesCompression($binary))); } if ($action == "imports") { print Templates::Load("templates/misc/imports.php", array("imports" => $imports)); } if ($action == "strings") { print Templates::Load("templates/misc/strings.php", array("binary" => $binary)); } if ($action == "graph") { print Templates::Load("templates/misc/graph.php", array("binary" => $binary, "md5" => $md5)); } if ($action == "art") { $codesize = Binary::codeSize($binary); $entrypoint = Pefile::entrypoint($binary); print Templates::Load("templates/art/drawing3.php", array("functions" => Radare2::r2_functions($binary), "md5" => $md5, "codesize" => $codesize, "entrypoint" => $entrypoint)); }