Some useful tools for I2P
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
MDLeom 30eb1f4382
docs: add zlib1g-dev as dependency
5 years ago
common b33address 6 years ago
i2pd@c4c896a833 b33address 6 years ago
scripts i2pdctl: compatibility with Java 6 years ago
websocket-ui add readme for websocket ui directory 8 years ago
websocks-demo fix up exmaples 7 years ago
.gitignore b33address 6 years ago
.gitmodules i2pd sumodule added 8 years ago
LICENSE keygen added 8 years ago
Makefile b33address 6 years ago
README.md docs: add zlib1g-dev as dependency 5 years ago
b33address.cpp Fixed build error: BlindedPublicKey only takes ident as argument now. 5 years ago
famtool.cpp bump i2pd. fix build error 6 years ago
i2pbase64.cpp i2p base64 encode/decode tool 7 years ago
keygen.cpp don't initialize GOST explicitly 8 years ago
keyinfo.cpp show offline signature expiration time and trasient signature type 6 years ago
offlinekeys.cpp offline keys added 6 years ago
regaddr.cpp don't init GOST explicitly 8 years ago
regaddr_3ld.cpp implement 3LD authentification string generator for stats.i2p 6 years ago
routerinfo.cpp update git submodule and unbreak update 8 years ago
vanity.hpp regex 7 years ago
vanitygen.cpp Merge pull request #60 from da2x/patch-2 6 years ago

README.md

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
  • zlib1g

depend="libboost-chrono-dev \
    libboost-date-time-dev \
    libboost-filesystem-dev \
    libboost-program-options-dev \
    libboost-system-dev \
    libboost-thread-dev \
    libssl-dev \
    zlib1g-dev"
kernel=`uname -a`

case "$kernel" in
*ubuntu*)
	sudo apt install $depend;;
*debian*)
	sudo aptitude install $depend;;
*gentoo*)
	sudo emerge --deep --newuse dev-libs/boost dev-libs/openssl;;

*)
	echo "Just install libboost and libopenssl dev packages on your pc";;
esac

Building

make 

Tools included

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 --usage

Time to Generate on a 2.70GHz Processor

characters time to generate (approx.)
1 ~0.082s
2 ~0.075s
3 ~0.100s
4 ~0.394s
5 ~6.343s
6 ~1m-5m
7 ~30m

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

regaddr_3ld

Generate authentication string for stats.i2p in 3 steps

./regaddr_3ld step1 sub_domain.dat sub.domain.i2p > step1.txt
./regaddr_3ld step2 step1.txt domain.dat domain.i2p > step2.txt
./regaddr_3ld step3 step2.txt sub_domain.dat > step3.txt
cat step3.txt

Send output from step3 to http://stats.i2p/i2p/addkey.html to register subdomain on stats.i2p