} 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)); }