1
0
mirror of https://github.com/PurpleI2P/i2pd-tools synced 2025-01-11 15:27:59 +00:00
Some useful tools for I2P
Go to file
Warlock-Dalbaeb 9150890101 4 byte
2017-08-15 01:42:16 +07:00
common correct name for GOST signatures 2017-05-01 09:29:06 -04:00
i2pd@0b560fdd27 update submodule 2017-08-08 09:44:31 -04:00
websocket-ui add readme for websocket ui directory 2016-11-01 10:56:35 -04:00
websocks-demo more 2016-12-17 12:48:54 -05:00
.gitignore add famtool 2016-10-24 13:19:33 -04:00
.gitmodules i2pd sumodule added 2016-09-16 10:47:27 -04:00
famtool.cpp fix 2016-10-24 14:08:58 -04:00
keygen.cpp don't initialize GOST explicitly 2017-03-13 16:16:11 -04:00
keyinfo.cpp pretty print sig key types 2016-10-10 07:59:54 -04:00
LICENSE keygen added 2016-09-16 11:28:01 -04:00
Makefile Vanity stuff 2017-08-15 01:29:32 +07:00
README.md Vanity name fix, readme 2017-08-09 00:35:02 +07:00
regaddr.cpp don't init GOST explicitly 2017-03-10 11:56:07 -05:00
routerinfo.cpp update git submodule and unbreak update 2017-01-16 08:36:09 -05:00
vanity.hpp 4 byte 2017-08-15 01:42:16 +07:00
vanitygen.cpp 4 byte 2017-08-15 01:42:16 +07:00

i2pd-tools

This repository contains tools that supplement i2pd.

Notice: git submodules are used so make sure to clone this repository recursively

git clone --recursive https://github.com/purplei2p/i2pd-tools

Building

Dependencies

  • boost chrono
  • boost date-time
  • boost filesystem
  • boost program-options
  • libssl
sudo apt-get install \
    libboost-chrono-dev \
    libboost-date-time-dev \
    libboost-filesystem-dev \
    libboost-program-options-dev \
    libboost-system-dev \
    libboost-thread-dev \
    libssl-dev

Building

make 

Tools included

baddiefinder

i2p netdb blocklist generator tool

Usage

see here

routerinfo

print information about a router info file

usage

print ip and port for router info excluding ipv6

./routerinfo -p ~/.i2pd/netDb/r6/routerInfo-blah.dat

print iptables firewall rules to allow 1 nodes in netdb through firewall including ipv6 addresses

./routerinfo -6 -f ~/.i2pd/netDb/r6/routerInfo-blah.dat

keygen

Generate an i2p private key

Usage

Make a DSA-SHA1 destination key

./keygen privkey.dat

Make an destination key with a certain key type

./keygen privkey.dat <number>

or

./keygen privkey.dat <key name>
key name number
DSA-SHA1 0
ECDSA-SHA256-P256 1
ECDSA-SHA384-P384 2
ECDSA-SHA512-P521 3
RSA-SHA256-2048 4
RSA-SHA384-3072 5
RSA-SHA512-4096 6
EDDSA-SHA512-ED25519 7

vain

Vanity generation adress.

Usage

./vain privatekey.dat prefix

keyinfo

Prints information about an i2p private key

Usage

Print just the b32 address for this key

 ./keyinfo privatekey.dat

... just the base64 address

./keyinfo -d privatekey.dat

Print all info about the public key

./keyinfo -v privatekey.dat