diff options
Diffstat (limited to '.md/tutorials/tor')
| -rw-r--r-- | .md/tutorials/tor/how-to-host-a-tor-hidden-service.md | 22 | 
1 files changed, 11 insertions, 11 deletions
diff --git a/.md/tutorials/tor/how-to-host-a-tor-hidden-service.md b/.md/tutorials/tor/how-to-host-a-tor-hidden-service.md index a6f7e4e..b3a2879 100644 --- a/.md/tutorials/tor/how-to-host-a-tor-hidden-service.md +++ b/.md/tutorials/tor/how-to-host-a-tor-hidden-service.md @@ -24,26 +24,26 @@ virtual machine, or use  Once you have Debian/Ubuntu/whatever installed and it's updated to your  liking, you can install Tor with: -``` +```bash  $ sudo apt install tor  ```  Start (or stop) Tor with: -``` +```bash  $ sudo service tor start  ```  or -``` +```bash  $ sudo systemctl start tor.service  ```  You may need to enable the service first. I think this is done by default  now, but it doesn't hurt: -``` +```bash  $ sudo systemctl enable tor.service  ``` @@ -68,7 +68,7 @@ HiddenServicePort 80 127.0.0.1:8000  Save and restart Tor for the changes to apply: -``` +```bash  $ sudo service tor restart  ``` @@ -76,7 +76,7 @@ Once you do this, you'll get a new onion address located in the  directory noted above. Use cat to read the hostname file and copy it  down somewhere. This is your ".onion" address: -``` +```bash  $ cat /var/lib/tor/hidden_service/hostname  ``` @@ -84,20 +84,20 @@ $ cat /var/lib/tor/hidden_service/hostname  Make some directory to hold your files. -``` +```bash  $ mkdir -pv ~/files  ```  If you're on WSL you can copy files from your C drive like so: -``` +```bash  $ cp -vr /mnt/c/Users/username/Desktop/cats ~/files/  ```  On a remote server (like a Raspberry pi) you can use scp instead  (replace 'rapsberry' with the hostname or local IP of you Pi): -``` +```bash  $ scp -vr cats pi@raspberry:~/files/  ``` @@ -106,13 +106,13 @@ security or where the files should go, but if you want to be careful,  you can issue the following to set the directory to read only after  you copy your files in: -``` +```bash  $ chmod -R 644 files  ```  Change into the directory and run Python's built-in http server: -``` +```bash  $ cd files  $ python3 -m http.server  ```  | 
