Пример #1
0
 function init()
 {
     $this->Application = $Application = new Mono("Gtk.Application");
     $Application->Init();
     $win = new Mono("Gtk.Window", "Hello");
     $win->add_DeleteEvent(new Mono("Gtk.DeleteEventHandler", mono_closure($this, "delete", mono('Gtk.DeleteEventHandler$Method'))));
     $btn = new Mono("Gtk.Button", "Show output from phpinfo()");
     $btn->add_Clicked(new Mono("System.EventHandler", mono_closure($this, "clicked", mono('System.EventHandler$Method'))));
     $win->Add($btn);
     $win->ShowAll();
 }
 function GtkFileSelectorDemo()
 {
     // mono_require("gtk-sharp", "2.0.0.0", "35e10195dab3c99f");
     // The following is equivalent to the above mono_require
     // statement. It shows how to load a library from the GAC.
     $Assembly = mono("System.Reflection.Assembly");
     $assemblyName = new Mono("System.Reflection.AssemblyName");
     // Name is a property of AssemblyName, set_Name(...) calls the
     // setter, get_Name() calls the getter
     $assemblyName->set_Name("gtk-sharp");
     $assemblyName->set_Version(new Mono("System.Version", "2.12"));
     // pack converts the hex string into a byte array
     $assemblyName->setPublicKeyToken(pack("H16", "35e10195dab3c99f"));
     // load gtk-sharp 2.0.0.0 (35e10195dab3c99f)
     $Assembly->Load($assemblyName);
 }
Пример #3
0
<?php

$bytes = Mono::loadResource($vars["binary"], $vars["id"]);
print "<pre>";
$html = htmlentities($bytes, ENT_DISALLOWED, "iso-8859-1");
$html = preg_replace("/&#xFFFD;/", " ", $html);
print $html;
print "</pre>";
Пример #4
0
    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>

Пример #5
0
<?php

$md5 = Common::getMD5("report");
$action = Common::getString("action");
$id = Common::getInteger("id");
$binary = "uploads/{$md5}.bin";
$html_res_offsets = Pefile::call("res_offsets", $binary);
$resources = Binary::resources($binary);
$sections = Binary::sections($binary);
$images = Sinjector::fetch($md5, "screenshots");
$processes = Sinjector::processes($md5);
$libraries = Sinjector::libraries($md5);
$files = Sinjector::files($md5);
$presources = Mono::presources($binary);
$packets = Tcpdump::packets($md5);
$imports = Binary::imports($binary);
#TODO: cache registry
if ($action == "sandbox/registry" || $action == "sandbox/registry_queries") {
    $registry = Sinjector::registry($md5);
    $registry_queries = Sinjector::registry_queries($md5);
}
//if($action=="") $action="art";
?>
	<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">
								binary