Esempio n. 1
0
 static function Results()
 {
     $basedir = Config::$sinjector_path . "/results";
     if (!is_dir($basedir)) {
         die("ERROR - \"{$basedir}\" not found...");
     }
     $files = @scandir($basedir);
     $res = array();
     foreach ($files as $f) {
         if ($f[0] == ".") {
             continue;
         }
         $item = array();
         $item["md5"] = $f;
         $item["type"] = Binary::magic("uploads/" . $f . ".bin");
         $item["type"] = preg_replace("/executable for MS Windows/", "exec MSWin", $item["type"]);
         $item["art"] = array();
         if (file_exists("art/{$f}" . "-0.png")) {
             $item["art"]["sections"] = "art/{$f}" . "-0.png";
         }
         if (file_exists("art/{$f}" . "-1.png")) {
             $item["art"]["resources"] = "art/{$f}" . "-1.png";
         }
         if (file_exists("art/{$f}" . "-2.png")) {
             $item["art"]["r2_functions"] = "art/{$f}" . "-2.png";
         }
         $item["date"] = date("M d H:i:s", filemtime($basedir . "/" . $f));
         $log = self::fullLog($f);
         if (count(preg_split("/\n/", $log)) <= 2) {
             $item["status"] = "Failed";
         } else {
             $item["status"] = "Done";
         }
         array_push($res, $item);
     }
     @usort($res, array(self, "cmp_samples"));
     return $res;
 }
Esempio n. 2
0
						<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);
?>
</td>
					</tr>
					<tr>
						<td class="active">Packer ID</td>
						<td><?php 
echo $packerid;
?>
Esempio n. 3
0
    }
}
?>
	<div class="row clearfix">
		<div class="col-md-12 column">
			<div class="row clearfix">
				<div class="col-md-2 column">
					<div class="panel panel-primary">
						<div class="panel-heading">
							<h3 class="panel-title">
								misc
							</h3>
						</div>
						<div class="panel-body">
							<?php 
if (preg_match("/Mono/", Binary::magic($binary))) {
    ?>
								<b>monodis</b>
								<br>
								<?php 
    if ($app == "monodis" && $fun == "pedump") {
        ?>
									- pedump
								<?php 
    } else {
        ?>
									- <a href="?report=<?php 
        echo $md5;
        ?>
&op=tools&app=monodis&fun=pedump">pedump</a>
								<?php 
Esempio n. 4
0
    print Templates::Load("templates/sandbox/registry.php", array("registry" => $registry_queries, "md5" => $md5, "mode" => "query"));
}
if ($action == "sandbox/network") {
    print Templates::Load("templates/sandbox/network.php", array("packets" => $packets, "md5" => $md5));
}
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") {