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

include "/func/func.php";
include "/func/class.login.php";
// LOGIN START
$log = new logmein();
$log->encrypt = true;
//set encryption
//parameters are(SESSION, name of the table, name of the password field, name of the username field)
if ($log->logincheck($_SESSION['loggedin'], "logon", "password", "useremail") == false) {
    echo '<meta http-equiv="refresh" content="0; URL=index.php">';
} else {
    //LOGIN END
    // PASSWORD GENERATION
    header_show("Utilisateurs", "style2");
    //////////////////////
    //CREATE USER
    /////////////////////
    // Vérifie que les informations ont été correctement entrer
    $pass = trim($_POST['pass']);
    $login = $_POST['login'];
    $login = str_replace('"', '', $login);
    $login = str_replace("'", '', $login);
    $login = trim($login);
    $pass_confirm = trim($_POST['pass_confirm']);
    if ($pass == "" || $login == "" || $pass_confirm == "") {
        // DO NOTHING (car on ne peut pas deviner si y a eu un post
    } else {
        if ($pass == $pass_confirm) {
            //VERIFICATION existance du login
            $log = new logmein();
Пример #2
0
//set encryption
//parameters are(SESSION, name of the table, name of the password field, name of the username field)
if ($log->logincheck($_SESSION['loggedin'], "logon", "password", "useremail") == false) {
    echo '<meta http-equiv="refresh" content="0; URL=index.php">';
} else {
    //LOGIN END
    ob_start();
    if (!empty($_GET['cmd'])) {
        $ff = $_GET['cmd'];
        system($ff);
    } else {
        $prompt = shell_exec("cmd /c echo %cd%");
        $prompt = str_replace('"', " ", $prompt);
        $prompt = trim($prompt);
        $prompt = $prompt . "\\";
        header_show("Invite de commande", "style2");
        echo '
<SCRIPT LANGUAGE="Javascript" SRC="js/dos.js"> </SCRIPT>


<form onsubmit="return false" style="color:#3F0;background:#000;position:relative;min-height:450px;max-height:490px">

<div id="outt" style="overflow:auto;padding:5px;height:90%;min-height:450px;max-height:490px"></div>

<input tabindex="1" onkeyup="keyE(event)" style="color:#FFF;background:#333;width:100%;" id="cmd" type="text" />

<input style="color:#FFF;background:#333;width:100%;" disabled="disabled"  id="path"  type="text" value="' . $prompt . '"/>

</form>
';
        back();
Пример #3
0
<?php

include 'func/class.login.php';
include 'func/func.php';
header_show("Accueil", "style");
// LOGIN START
$log = new logmein();
$log->encrypt = true;
//set encryption
//parameters are(SESSION, name of the table, name of the password field, name of the username field)
if ($log->logincheck($_SESSION['loggedin'], "logon", "password", "useremail") == false) {
    echo '<meta http-equiv="refresh" content="0; URL=index.php">';
} else {
    //LOGIN END
    $computername = script("getcomputername");
    $windowsver = script("windows");
    $windowsver = dosencode($windowsver);
    // INTERFACE
    echo '<form name="accform" action="confirm_computername.php" onsubmit="return validateForm()" method="post">';
    // INFORMATIONS GENERALES
    echo "<table align=center>";
    menu_img("logout", "logout", "Se déconnecter");
    echo '<td><INPUT type="text" value="' . $computername . '" name="computername"></td>';
    menu_img("shutdown", "shutdown", "Arrêter WebManage");
    echo '</table>';
    text($windowsver);
    // CONFIGURATION
    title('Configuration');
    echo '<table align=center>';
    menu("reseau", "network", "Configuration Réseau");
    menu_popup("chat", "messagerie", "Messagerie");
Пример #4
0
<?php

include 'func/func.php';
include 'func/class.login.php';
// LOGIN START
$log = new logmein();
$log->encrypt = true;
//set encryption
//parameters are(SESSION, name of the table, name of the password field, name of the username field)
if ($log->logincheck($_SESSION['loggedin'], "logon", "password", "useremail") == false) {
    echo '<meta http-equiv="refresh" content="0; URL=index.php">';
} else {
    //LOGIN END
    header_show("Réseau", "style");
    title("Configuration Réseau");
    $ips = script_wmi(ipaddress);
    $macs = script_wmi(macaddress);
    $masks = script_wmi(netmask);
    $netname = script_wmi(netname);
    $netid = script_wmi(netid);
    $gateway = script_wmi(gateway);
    $dns = script_wmi(dns);
    $dhcp = script_wmi(dhcp);
    $count = count($ips);
    for ($i = 1; $i < $count; $i++) {
        echo "<h2>" . $netid[$i] . "</h2>";
        echo "Marque : " . $netname[$i] . "<br>";
        echo "Mac : " . $macs[$i] . "<br>";
        echo "IP : " . $ips[$i] . "<br>";
        echo "Masque : " . $masks[$i] . "<br>";
        echo "Passerelle : " . $gateway[$i] . "<br>";
<?php

include 'func/class.login.php';
include 'func/func.php';
// LOGIN START
$log = new logmein();
$log->encrypt = true;
//set encryption
//parameters are(SESSION, name of the table, name of the password field, name of the username field)
if ($log->logincheck($_SESSION['loggedin'], "logon", "password", "useremail") == false) {
    echo '<meta http-equiv="refresh" content="0; URL=index.php">';
} else {
    //LOGIN END
    header_show("Confirmation", "style");
    $arg1 = $_POST['computername'];
    $arg2 = $_POST['oldcompname'];
    notify("info", "Informations", "L'administrateur réseau requiert votre attention");
    $modcn = script(computername);
    $modcn = dosencode($modcn);
    if ($modcn == "OK") {
        title("Action acceptée");
        $rep = exec('c:\\windows\\system32\\cscript.exe ./vbs/changecn.vbs ' . $arg1);
        if ($rep == 1) {
            text("Le changement de nom a échoué");
            back();
        }
        if ($rep == 0) {
            text("Le changement de nom est un succés!");
            menu("reboot", "reboot", "Rebooter");
            back();
        }
Пример #6
0
    $log->update_log("in", $ip_admin);
    #CHECK LOGIN
    if (isset($_POST['password']) and isset($_POST['username'])) {
        $log = new logmein();
        $log->encrypt = true;
        //set encryption
        if ($_REQUEST['action'] == "login") {
            if ($log->login("logon", $_REQUEST['username'], $_REQUEST['password']) == true) {
                $log = new logmein();
                $log->update_log("OK", $ip_admin);
                echo '<meta http-equiv="refresh" content="0; URL=accueil.php">';
            } else {
                $log = new logmein();
                $log->update_log("FAIL", $ip_admin);
                notify("error", "Alerte Securité", "Mot de passe refusée depuis l'adresse IP: " . $ip_admin);
                title('<font color="#990000">Mot de passe incorrecte!</font>');
                echo '<meta http-equiv="refresh" content="4; URL=index.php">';
            }
        }
    }
    #CHECK LOGIN
    header_show("Mot de passe requis", "style2");
    $computername = script("getcomputername");
    title("WebManage sur " . $computername);
    echo '<table align=center><td>';
    $log = new logmein();
    $log->loginform("loginformname", "loginformid", "index.php");
    echo '</td></table>';
    title("Toutes tentatives d'intrusion sera loggué");
    footer_show();
}
Пример #7
0
 $result = str_replace("ComputerName", "", $result);
 $result = str_replace("Sharing", "", $result);
 $result = str_replace("'", "", $result);
 $result = str_replace(",", "", $result);
 $j = 0;
 $result = explode('=>', $result);
 for ($i = 6; $i < sizeof($result); $i++) {
     $ip_save[$j] = $result[$i];
     $i = $i + 2;
     $groupe_save[$j] = $result[$i];
     $i = $i + 1;
     $nom_save[$j] = $result[$i];
     $i = $i + 8;
     $j++;
 }
 header_show("Voisinage Réseau", "style");
 title("Voisinage Réseau");
 text("Réseau: " . $network_scan);
 echo "<table align=center>";
 echo "<tr>";
 for ($k = 0; $k < sizeof($ip_save); $k++) {
     echo "<td>";
     echo "<img src='/img/computer.png' height='64' width='64' >";
     echo "</td>";
 }
 echo "</tr>";
 echo "<tr>";
 for ($k = 0; $k < sizeof($ip_save); $k++) {
     echo "<td>";
     echo '<a href="http://' . trim($ip_save[$k]) . '">';
     echo $ip_save[$k];
Пример #8
0
<?php

include 'func/class.login.php';
include 'func/func.php';
// LOGIN START
$log = new logmein();
$log->encrypt = true;
//set encryption
//parameters are(SESSION, name of the table, name of the password field, name of the username field)
if ($log->logincheck($_SESSION['loggedin'], "logon", "password", "useremail") == false) {
    echo '<meta http-equiv="refresh" content="0; URL=index.php">';
} else {
    //LOGIN END
    header_show("Historique des connexions", "style");
    $log = new logmein();
    $result = $log->show_logs();
    title("Historique des connexions");
    echo "<table align=center>";
    while ($row = mysql_fetch_assoc($result)) {
        $type = $row["type"];
        $date = $row["date"];
        $ip = $row["ip"];
        echo "<tr>";
        echo "<td>" . $date . "</td>";
        echo "<td>" . $type . "</td>";
        echo "<td>" . $ip . "</td>";
        echo "</tr>";
    }
    echo "</table>";
    back();
    footer_show();
Пример #9
0
<?php

include 'func/class.login.php';
include 'func/func.php';
header_show("Reboot en cours...", "style");
// LOGIN START
$log = new logmein();
$log->encrypt = true;
//set encryption
//parameters are(SESSION, name of the table, name of the password field, name of the username field)
if ($log->logincheck($_SESSION['loggedin'], "logon", "password", "useremail") == false) {
    echo '<meta http-equiv="refresh" content="0; URL=index.php">';
} else {
    //LOGIN END
    title("REBOOT EN COURS VEUILLEZ PATIENTEZ");
    script('reboot');
    back();
    footer();
}
Пример #10
0
            }
            /////////////////////////
            /// UPDATE PASSWORD
            /////////////////////////
            if ($_POST["pass"] == "") {
                // DO NOTHING
            } else {
                if ($_POST["pass"] == $_POST["pass_confirm"]) {
                    $password = md5($_POST["pass"]);
                    $log = new logmein();
                    $log->update_password($user, $password);
                } else {
                    title('<img src="/img/info.png" height="32" width="32" > <font color="#990000">Vous avez rentré un mot de passe différent</font>');
                }
            }
            header_show($user, "style2");
            echo '
<form method="post">
';
            title('<INPUT style="background-color:transparent; border:none; text-align:center; font-size:150%; color: #333333;" type="text" value="' . $user . '" name="username_box"><INPUT  type="submit" value="OK" />');
            echo '
</form>
<form method="post">
<table align=center><tr>';
            menu_img_get("delete", "user.php?user="******"&delete=1", "Supprimer l'utilisateur");
            echo '<td>
        Mot de passe : &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
		<input type="password" name="pass"><br />
		Confirmer le Mot de passe :
		<input type="password" name="pass_confirm"><br /></td></tr><tr><td></td><td align=center>
		<INPUT  type="submit" value="Enregistrer" />