예제 #1
0
&op=tools&app=radare2/rahash2&fun=-a all">-a all</a>
							<?php 
}
?>
						</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);
        }
    }
예제 #2
0
        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>