Beispiel #1
0
}
?>
						</div>
					</div>
				</div>
				<div class="col-md-10 column">
					<p>
						<?php 
if (file_exists($binary)) {
    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?";