<?php
|
|
|
|
$rootPW = $_POST["rootPW"];
|
|
$hsname = $_POST["hsname"];
|
|
$nodename = $_POST["nodename"];
|
|
$newTorState = "node"
|
|
|
|
$configureHiddenService = "echo $rootPW | sudo -S ";
|
|
$confiureNode = "echo $rootPW | sudo -S ";
|
|
$restartTor = "echo $rootPW | sudo -S ";
|
|
$replaceTorState = "echo $newTorState > torstate.csv"
|
|
|
|
$output = exec($shellcommand);
|
|
$output2 = exec($commandAPdown);
|
|
$output3 = exec($commandAPup);
|
|
|
|
echo _($output3);
|
|
|
|
echo _(" oi oi oi ");
|
|
|
|
?>
|
|
|