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.
 
 

26 lines
769 B

<?php
$rootPW = $_POST["rootPW"];
$hsname = $_POST["hsname"];
$nodename = $_POST["nodename"];
$newTorState = "node"
$configureHiddenService1 = "echo $rootPW | sudo -S sed -i 's/#HiddenServiceDir\ \/var\/lib\/tor\/hidden_service/HiddenServiceDir\ \/var\/lib\/tor\/$hsname/' torrc";
$configureHiddenService1 = "echo $rootPW | sudo -S sed '0,/#HiddenServiceP/{s/#HiddenServicePort\ 80 127.0.0.1:80/HiddenServicePort 80 127.0.0.1:80\nHiddenServicePort 22 127.0.0.1:22/}' torrc";
$confiureNode = "echo $rootPW | sudo -S sed -i ";
$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 ");
?>