Created
October 4, 2018 14:54
-
-
Save Sarverott/286874429736d17949cfab2c10049420 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# CREATE TOR HOST | |
# ./create-tor-host.sh {host port (np. 80)} {service address with port (np. 127.0.0.1:80)} {path to directory for service containment (np. /var/lib/tor/serv/http)} | |
# ~Sarverott | |
su | |
echo HiddenServiceDir $3 >>/etc/tor/torrc | |
echo HiddenServicePort $1 $2 >>/etc/tor/torrc | |
systermctl restart tor | |
clear | |
cat $3/hostname |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment