Shallot
Shallot copied to clipboard
Run through the PHP
$output"; ?>
Unfortunately PHP does not return anything, no error, someone could help me?
Why are you running just shallot ^ ? Do you mean to have the onion URL start with some characters, like
<?php
$command = "Shallot/shallot ^my";
$output = shell_exec("$command");
echo "$output";
?>
Yes, I am running only "^", was on purpose, I always get a random address, intend to create a hosting system onion but I don't know how to create onionhashs, that was the only solution that I found. On terminal works, but via PHP no.
I was able to run this from PHP without a problem, by using the exact path from where the script is being run to where Shallot is, noting any case-sensitive folders. My guess would be that you want "shallot/shallot" without the beginning slash, unless you have Shallot installed on a top level directory.
tor will create a private key and .onion hostname in the directory you specify with the HiddenServiceDir in a torrc file (either the default one or the one you specify.) If you are trying to create a bunch of keys, you could just make a bunch of torrc files pointing to different directories, and repeatedly call tor with the -f option and each torrc filename.