the interface of the KaosCube
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
445 B

1 year ago
  1. <?php
  2. $rootPW = $_POST["rootPW"];
  3. $pwNewKc = $_POST["pwNewKc"];
  4. $shellcommand = "echo $rootPW | sudo -S nmcli con modify kaoscube 802-11-wireless-security.psk $pwNewKc";
  5. $commandAPdown = "echo $rootPW | sudo -S nmcli con down kaoscube";
  6. $commandAPup = "echo $rootPW | sudo -S nmcli con up kaoscube";
  7. $output = exec($shellcommand);
  8. $output2 = exec($commandAPdown);
  9. $output3 = exec($commandAPup);
  10. echo _($output3);
  11. echo _(" oi oi oi ");
  12. ?>