Skip to content
Snippets Groups Projects
Verified Commit f8c85afc authored by David Beniamine's avatar David Beniamine
Browse files

small fixups

parent 6cc8352b
Branches
No related tags found
No related merge requests found
......@@ -19,4 +19,5 @@
IP=$(ip a | awk '/inet.*containers/ {print $2}' | cut -d / -f 1)
subnet=$(ip a | awk '/inet.*containers/ {print $2}' | cut -d / -f 1 | cut -d . -f 1-3)
echo "$1" | netcat $subnet.52 9999
netcat -l $IP 9999
retip=`netcat -l $IP 9999`
echo $retip
......@@ -25,11 +25,11 @@
$cmd = "../scripts/sendmac.sh";
echo "<p> Démarrage de la machine ".$args." terminé !</p>";
echo "<p>Pour vous y connecter, téléchargez ";
echo shell_exec("cp www/config.rdp.sample www/config.rdp");
echo shell_exec("echo \"full address:s:\"".$_SERVER["HTTP_HOST"]." >> config.rdp");
system("cp www/config.rdp.sample www/config.rdp");
system("echo \"full address:s:\"".$_SERVER["HTTP_HOST"]." >> config.rdp");
echo '<a href="config.rdp';
echo '">ce fichier</a> et lancez le.<br />';
echo "Cela ouvrira XRDP, il vous suffir alors d'indiquer l'adresse IP <pre>".shell_exec("$cmd $args")."</pre>";
echo "Cela ouvrira XRDP, il vous suffira alors d'indiquer l'adresse IP <pre>".shell_exec("$cmd $args")."</pre>";
echo "et le mot de passe adéquat";
echo "</p>";
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment