Spoof "EntryNode" in latest Tails 4.18


SUBMITTED BY: Guest

DATE: May 4, 2021, 1:31 a.m.

FORMAT: Bash

SIZE: 1.4 kB

HITS: 543

  1. #!/bin/bash
  2. # Spoof "EntryNode" in latest Tails 4.18
  3. # so change hole circle
  4. # get new identity?
  5. # YOU only need to type in the last used EntryNode as country code
  6. # for example "united states" = "us" (without quotes)
  7. mkdir -p /root/torrc
  8. cp /etc/tor/torrc /etc/tor/torrc.backup
  9. cp /etc/tor/torrc /etc/tor/torrc.super.backup
  10. cp /etc/tor/torrc.super.backup /root/torrc/torrc
  11. sed -n 31p /root/torrc/torrc > /root/torrc/excludes.txt
  12. sed 's/ StrictNodes 1//g' /root/torrc/excludes.txt > /root/torrc/tmp;mv /root/torrc/tmp /root/torrc/excludes.txt
  13. echo ; echo ; echo ; echo "Type in last EntryNode:" ; read state ; echo ,{$state} > /root/torrc/state.txt
  14. echo `cat /root/torrc/excludes.txt /root/torrc/state.txt` | sed 's/ //2' > /root/torrc/set.txt
  15. echo `cat /root/torrc/set.txt ; echo ' StrictNodes 1'` > /root/torrc/pastetotorrc.txt
  16. sed 31d /root/torrc/torrc > /root/torrc/delete37.txt
  17. cat /root/torrc/delete37.txt | sed 31,34d > /root/torrc/final.txt ; cat /root/torrc/pastetotorrc.txt >> /root/torrc/final.txt ; echo LongLivedPorts 21, 22, 80, 443, 706, 1863, 5050, 5190, 5222, 5223, 6523, 6667, 6697, 8080, 8300, 9001, 9030 StrictNodes 1 >> /root/torrc/final.txt ; echo RejectPlaintextPorts 23,109 >> /root/torrc/final.txt ; mv /root/torrc/final.txt /etc/tor/torrc ; echo ; echo ; echo ; sed -n 31p /etc/tor/torrc ; echo ; echo ; echo
  18. service network-manager restart

comments powered by Disqus