2022-12-20 14:30:30 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
$rootPW = $_POST["rootPW"];
|
2023-01-09 22:27:01 +01:00
|
|
|
$hsname = $_POST["hsname"];
|
|
|
|
$nodename = $_POST["nodename"];
|
|
|
|
$newTorState = "node"
|
2022-12-20 14:30:30 +01:00
|
|
|
|
2023-01-09 22:27:01 +01:00
|
|
|
$configureHiddenService = "echo $rootPW | sudo -S ";
|
|
|
|
$confiureNode = "echo $rootPW | sudo -S ";
|
|
|
|
$restartTor = "echo $rootPW | sudo -S ";
|
|
|
|
$replaceTorState = "echo $newTorState > torstate.csv"
|
2022-12-20 14:30:30 +01:00
|
|
|
|
|
|
|
$output = exec($shellcommand);
|
|
|
|
$output2 = exec($commandAPdown);
|
|
|
|
$output3 = exec($commandAPup);
|
|
|
|
|
|
|
|
echo _($output3);
|
|
|
|
|
|
|
|
echo _(" oi oi oi ");
|
|
|
|
|
|
|
|
?>
|
|
|
|
|