Created
April 11, 2019 04:27
-
-
Save tynes/4123a82d2e01e8abb3377e8d54b12091 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 | |
# pull gmax's lattest banlist, replace ./bitcoin-cli | |
# with bcoin-cli and write it to disk as a bash script | |
# WARNING: please inspect the file before executing it | |
# works correctly as of 4/10/19 | |
curl -s https://people.xiph.org/~greg/banlist.cli.txt \ | |
| sed 's/\.\/bitcoin-cli/bcoin-cli\ rpc/g' \ | |
| sed '1s/^/#!\/bin\/bash\n\n/' > banlist.sh | |
# Don't make random files that you download from | |
# the internet executable until you know exactly | |
# what they are doing. banlist.sh should call | |
# the rpc method setban on many known IPs that | |
# exhibit poor behavior as peers/attempt to | |
# deanonymize the network | |
# chmod +x banlist.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment