Git Product home page Git Product logo

ban-segshit8x-nodes's Introduction

ban-segshit8x-nodes

Prerequisites

Your bitcoind daemon must be running (running just the Bitcoin Core gui is not enough).

Linux

The ban.sh script will ban all fake SegShit8x nodes. The list of nodes is obtained from bitnodes.21.co.

Requirements for the bash script (ban.sh)

Command-line JSON processor jq.

Install on Debian-based Linux

sudo apt-get install jq

Install on OSX

brew install jq

Requirements for the perl script (ban.pl)

Perl & Perl packages JSON::XS and LWP::UserAgent.

Install on Debian-based Linux

sudo apt-get install libjson-xs-perl

CPAN

sudo cpan -i JSON::XS

Download and use the script

git clone https://github.com/mariodian/ban-segshit8x-nodes.git
cd ban-segshit8x-nodes

Run the bash script

./ban.sh

Run the perl script

perl ./ban.pl

Windows

The ban.ps1 powershell script is a port of the ban.sh script. Accomplishes the same thing on Windows.

It might work in Powershell 2.0, but you should really have PS 3.0 or greater.

If you've never used Powershell before, you might need to enable script execution. See the instructions here: https://superuser.com/questions/106360/how-to-enable-execution-of-powershell-scripts

Run the ban script

Open a Powershell prompt in the script directory and simply type "./ban".

ban-segshit8x-nodes's People

Contributors

kixunil avatar mariodian avatar wompeter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ban-segshit8x-nodes's Issues

jq: Unknown option -rcC

Doesn't work for me:

user@ts:~/ban-segshit8x-nodes$ ./ban.sh
--2017-10-20 07:21:21--  https://bitnodes.21.co/api/v1/snapshots/1508498171/
Resolving bitnodes.21.co (bitnodes.21.co)... 104.20.113.31, 104.20.112.31, 2400:cb00:2048:1::6814:711f, ...
Connecting to bitnodes.21.co (bitnodes.21.co)|104.20.113.31|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/json]
Saving to: ‘/tmp/segshit-nodes.txt’

/tmp/segshit-nodes.txt                                                      [ <=>                                                                                                                                                                            ]   1.78M  --.-KB/s   in 0.07s

2017-10-20 07:21:21 (26.5 MB/s) - ‘/tmp/segshit-nodes.txt’ saved [1868885]

jq: Unknown option -rcC
Use jq --help for help with command-line options,
or see the jq documentation at http://stedolan.github.com/jq
Found and banned 0 nodes.

user@ts:~/ban-segshit8x-nodes$ jq --version
jq-1.4-1-e73951f

user@ts:~/ban-segshit8x-nodes$ cat /etc/debian_version
8.9

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.