</pre> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> </div> </div> </div> </div> <?php } if (isset($_GET["rcdata"])) { print Templates::Load("templates/misc/rcdata_dump.php", array("")); } if (isset($_GET["rtbitmap"])) { print Templates::Load("templates/misc/rtbitmap_dump.php", array("")); } if (isset($_GET["rtstring"])) { print Templates::Load("templates/misc/rtstring_dump.php", array("")); } //check if we found the right section for dumping the resources $sectionFound = false; foreach (Binary::sections($binary) as $s) { if ($va == $s["va"]) { $sectionFound = true; } } if (!$sectionFound && $va) { print Common::Error("Error", "The section with VirtualAddress={$va} was not found"); }
</li> </ul> </div> </div> <p> <?php if ($op == "tools") { if (Common::getString("fun") == "pdf") { ob_clean(); } print Templates::Load("templates/radare2/index.php", array("")); } elseif ($op == "pefile") { print Templates::Load("templates/pefile/index.php", array("")); } elseif ($op == "results") { print Templates::Load("templates/sandbox/index.php", array("")); } elseif ($op == "screenshots") { if (count($images)) { foreach ($images as $img) { ?> <center> <a id="modal-<?php echo $img; ?> " href="#modal-container-<?php echo $img; ?> " role="button" class="btn" data-toggle="modal"> <p><?php echo $img; ?>
?> </td> <td> <a href="?report=<?php echo $vars["md5"]; ?> &op=tools&app=monodis&fun=presources&id=<?php echo $r["id"]; ?> "><?php echo $r["name"]; ?> </a> </td> <td> <?php echo number_format($r["size"]); ?> </td> </tr> <?php } ?> </tbody> </table> </div> </div> <?php if (strlen($id)) { print Templates::Load("templates/mono/resource_dump.php", array_merge($vars, array("id" => $id))); }
static function info($title, $description) { $html = Templates::Load("templates/website/info.php", array("title" => $title, "description" => $description)); return $html; }
static function Error($msg) { return Templates::Load("templates/website/error.php", array("msg" => $msg)); }
$html = Website::page("contact.html", array("md5" => $md5)); } if (isset($_GET["samples"])) { $html = Website::page("samples.php", array("md5" => $md5)); } if (isset($_GET["analyze"])) { $html = Website::page("analyze.php", array("md5" => $md5)); } if (isset($_GET["submit"])) { $html = Website::page("submit.php", array("md5" => $md5)); } if (isset($_GET["report"])) { $html = Website::page("report.php", array("md5" => $md5)); } if (isset($_GET["image"])) { $html = Templates::Load("templates/website/image.php", array("md5" => $md5)); } if (isset($_GET["icon"])) { $html = Templates::Load("templates/pefile/icon.php", array("md5" => $md5)); } if (isset($_GET["bitmap"])) { $html = Templates::Load("templates/pefile/bitmap.php", array("md5" => $md5)); } if (!isset($html)) { $html = Website::page("index.html", array("md5" => $md5)); } print $html; ?>
<?php } else { ?> <?php echo $r["name"]; ?> <?php } $lastname = $r["name"]; ?> </td> </tr> <?php if (strlen($pid) && $pid == $r["pid"] && !$processDumped) { print "</table>"; print Templates::Load("templates/sandbox/process_pid.php", array_merge($vars, array("pid" => $pid))); $processDumped = true; if ($i < count($vars["processes"])) { ?> <table class="table table-bordered"> <thead> <tr> <th> # </th> <th> Pid </th> <th> <center>Action</center> </th>
<?php ob_clean(); print Templates::Load("templates/website/header.php", array("")); ?> <!-- <html> <head> <style> body{ font-family:courier-new; color:lime; background:black; } </style> </head> --> <font size=+2> <?php $md5 = Common::getMD5("analyze"); if (!file_exists("uploads/{$md5}.bin")) { print "ERROR - The sample '" . htmlentities($md5) . "' was not found"; return; } ?> Analyzing sample <a href="?report=<?php echo $md5; ?> "><?php echo $md5; ?>
if (preg_match("/^radare2\\/(rabin2|rahash2)/", $app)) { print Radare2::call($app, $fun, $binary); } if (preg_match("/^radare2\\/radare2/", $app)) { $functions = Radare2::r2_functions($binary); $codesize = Binary::codeSize($binary); $entrypoint = Pefile::entrypoint($binary); print Templates::Load("templates/art/drawing3.php", array("functions" => $functions, "codesize" => $codesize, "entrypoint" => $entrypoint, "md5" => $md5)); print Templates::Load("templates/radare2/r2_functions.php", array("functions" => $functions, "md5" => $md5)); } if (preg_match("/^pefile/", $app)) { print Pefile::call($fun, $binary); } if (preg_match("/^monodis/", $app)) { if ($fun == "presources") { print Templates::Load("templates/mono/presources.php", array("presources" => $presources, "binary" => $binary, "md5" => $md5)); } else { print Mono::call($fun, $binary); } } } else { print "Binary not found.. removed?"; } ?> </p> </div> </div> </div> </div>
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)); } } else { print "Binary not found.. removed?"; } ?> </p> </div> </div> </div> </div>