Skip to content

Instantly share code, notes, and snippets.

@Sarverott
Created October 4, 2018 14:54
Show Gist options
  • Save Sarverott/286874429736d17949cfab2c10049420 to your computer and use it in GitHub Desktop.
Save Sarverott/286874429736d17949cfab2c10049420 to your computer and use it in GitHub Desktop.
#!/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