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.

22 lines
453 B

1 year ago
1 year ago
1 year ago
  1. <?php
  2. $rootPW = $_POST["rootPW"];
  3. $hsname = $_POST["hsname"];
  4. $nodename = $_POST["nodename"];
  5. $newTorState = "node"
  6. $configureHiddenService = "echo $rootPW | sudo -S ";
  7. $confiureNode = "echo $rootPW | sudo -S ";
  8. $restartTor = "echo $rootPW | sudo -S ";
  9. $replaceTorState = "echo $newTorState > torstate.csv"
  10. $output = exec($shellcommand);
  11. $output2 = exec($commandAPdown);
  12. $output3 = exec($commandAPup);
  13. echo _($output3);
  14. echo _(" oi oi oi ");
  15. ?>