Exemple #1
0
<?php

include_once(dirname(__FILE__)."/frame.class.inc");
include_once(dirname(__FILE__)."/class.unix.inc");


if(isset($_GET["smbd-logs"])){smbdlogs();exit;}
if(isset($_GET["testparm"])){testparm();exit;}
if(isset($_GET["idof"])){idof();exit;}
if(isset($_GET["wins-list"])){winsdat();exit;}






while (list ($num, $line) = each ($_GET)){$f[]="$num=$line";}

writelogs_framework("unable to understand query !!!!!!!!!!!..." .@implode(",",$f),"main()",__FILE__,__LINE__);
die();



function idof(){
	$uid=$_GET["idof"];
$unix=new unix();
	$id=$unix->find_program("id");
	if(!is_file($id)){
		echo "<articadatascgi>". base64_encode("id, no such binary")."</articadatascgi>";
		return;
	}	
Exemple #2
0
<?php

include_once dirname(__FILE__) . "/frame.class.inc";
include_once dirname(__FILE__) . "/class.unix.inc";
if (isset($_GET["smbd-logs"])) {
    smbdlogs();
    exit;
}
if (isset($_GET["testparm"])) {
    testparm();
    exit;
}
if (isset($_GET["idof"])) {
    idof();
    exit;
}
if (isset($_GET["wins-list"])) {
    winsdat();
    exit;
}
if (isset($_GET["test-ads-join"])) {
    testadsjoin();
    exit;
}
if (isset($_GET["adsinfos"])) {
    adsinfos();
    exit;
}
if (isset($_GET["getent"])) {
    getent();
    exit;