You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
emdee 2be5e6e66e Added well-known downloading 2 years ago
.gitignore Initial commit 2 years ago
README.md Added well-known downloading 2 years ago
exclude_badExits.py Added well-known downloading 2 years ago
trustor_poc.py Added well-known downloading 2 years ago

README.md

https://github.com/nusenu/noContactInfo_Exit_Excluder

https://github.com/TheSmashy/TorExitRelayExclude

This extends nusenu's basic idea of using the stem library to dynamically exclude nodes that are likely to be bad by putting them on the ExcludeNodes or ExcludeExitNodes setting of a running Tor.

The basic cut is to exclude Exit nodes that do not have a contact. That can be extended to nodes that do not have an email in the contact etc.

But there's a problem, and your Tor notice.log will tell you about it: you could exclude the nodes needed to access hidden services etc. So we need to add to the process the concept of a whitelist. In addition, we may have our own blacklist of nodes we want to exclude.

So we make two files that are structured in YAML:

/etc/tor/torrc-goodnodes.yaml
Nodes:
  IntroductionPoints:
    - $NODEFINGERPRINT
  ...
By default all sections of the goodnodes.yaml are used as a whitelist.

/etc/tor/torrc-badnodes.yaml
Nodes:
  ExcludeExitNodes:
    BadExit:
      # $0000000000000000000000000000000000000007

That part requires PyYAML https://github.com/yaml/pyyaml/

Right now only the ExcludeExitNodes section is used by we may add ExcludeNodes later, and by default all sub-sections of the badnodes.yaml are used as a ExcludeExitNodes but it can be customized with the lWanted commandline arg.

The original idea has also been extended to add different conditions for exclusion: the --contact commandline arg is a comma sep list of conditions:

  • Empty - no contact info
  • NoEmail - no @ sign in the contact', More may be added later.

Because you don't want to exclude the introduction points to any onion you want to connect to, --white_onions should whitelist the introduction points to a comma sep list of onions, but is currently broken in stem 1.8.0: see:

--bad_output will write the torrc configuration to a file.

--details_output will write the lookup URLs of the excluded nodes to a file

For usage, do ```python3 exclude_badExits.py --help`