示例#1
0
<?php
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.mysql.inc');
	include_once('ressources/class.computers.inc');
	include_once('ressources/class.os.system.inc');
	include_once(dirname(__FILE__).'/ressources/class.mount.inc');
	include_once(dirname(__FILE__).'/framework/frame.class.inc');
	
if($argv[1]=="--schedules"){set_computer_schedules();exit;}
if($argv[1]=="--import-list"){importcomputersFromList();exit;}		
$computer=$argv[1];
$cmdlines=implode(' ',$argv);
if(preg_match("#--verbose#",$cmdlines)){$_GET["DEBUG"]=true;}

LaunchScan($computer);

function LaunchScan($host){
	$debug=$_GET["D"];
	if(strpos($host,'$')==0){$host=$host.'$';}
	events("LaunchScan(): Scanning $host");
	
	$computer=new computers($host);
	$ini=new Bs_IniHandler();
	$ini->loadString($computer->KasperkyAVScanningDatas);
	$commandline=BuildOptionCommandLine($ini,$computer->ComputerRealName);
	
	$ini=new Bs_IniHandler();
	$ini->loadString($computer->ComputerCryptedInfos);
	$username=$ini->_params["ACCOUNT"]["USERNAME"];
示例#2
0
include_once 'ressources/class.templates.inc';
include_once 'ressources/class.ldap.inc';
include_once 'ressources/class.users.menus.inc';
include_once 'ressources/class.mysql.inc';
include_once 'ressources/class.computers.inc';
include_once 'ressources/class.os.system.inc';
include_once dirname(__FILE__) . '/ressources/class.mount.inc';
include_once dirname(__FILE__) . '/framework/frame.class.inc';
include_once dirname(__FILE__) . '/framework/class.unix.inc';
if (is_file("/etc/artica-postfix/AS_KIMSUFFI")) {
    echo "AS_KIMSUFFI!\n";
    die;
}
if ($argv[1] == "--schedules") {
    set_computer_schedules();
    exit;
}
if ($argv[1] == "--import-list") {
    importcomputersFromList();
    exit;
}
$computer = $argv[1];
$cmdlines = implode(' ', $argv);
if (preg_match("#--verbose#", $cmdlines)) {
    $_GET["DEBUG"] = true;
}
LaunchScan($computer);
function LaunchScan($host)
{
    $debug = $_GET["D"];