Skip to content
A Bitcoin-like (Insacoin) client modified to perform a 51% attack
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.tx
build-aux/m4
contrib
depends
doc
qa
scripts
share
src
.gitattributes
.travis.yml
COPYING
INSTALL
Makefile.am
README.md
autogen.sh
configure.ac
pkg.m4

README.md

Below is the original README of Insacoin. You can checkout commits to see what have been modified to perform the attack, or ckeckout the description in the corresponding Medium post.

Insacoin

https://crypto-lyon.fr

What is Insacoin?

Insacoin is a coin forked from Litecoin and built during a lesson at INSA lyon. This project might be upgraded and updated by students and members of the association.

Installation process

On Debian 9 :

git clone https://github.com/Crypto-lyon/INSAcoin && cd INSAcoin
su -c 'apt install libssl1.0-dev libssl1.0.2 libssl1.1 libboost-all-dev miniupnpc build-essential libtool autotools-dev automake pkg-config libssl1.0-dev libevent-dev bsdmainutils python3 software-properties-common libminiupnpc-dev libzmq3-dev libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler wget git qt5-default'
su -c './scripts/install_libdb4.8.sh amd64' # Depending on your achitecture
# OR
su -c './scripts/install_libdb4.8.sh i386' # Si vous êtes en 32bits
./autogen.sh
./configure
make
su -c 'make install'
insacoin-qt

Two binaries built with a Debian-like are available here :

On macos (tested on 10.11.6):

brew install autoconf automake openssl@1.1 libtool boost@1.59 --c++11 miniupnpc openssl pkg-config protobuf --c++11 qt5 berkeley-db4
# If not linked in /usr/local/
brew link --force openssl@1.1
brew link boost@1.59 --force
brew link --force berkeley-db4
git clone https://github.com/Crypto-lyon/INSAcoin
./autogen.sh
./configure CXXFLAGS="-std=c++11"
make -j 4
sudo make install

Be sure to have xcode installed.

Setup INSAcoin in a Docker container

Building and running INSAcoin docker image

Run the following commands to compile INSAcoin in Docker and build the image :

cd contrib/docker
docker build --rm -t insacoin .

Launch INSAcoin daemon :

# create ~/.insacoin/insacoin.conf file with rpcuser and rpcpassword

mkdir .insacoin || cat > .insacoin/insacoin.conf <<EOF
rpcuser=bitcoinrpc
rpcpassword=CHANGE_THIS
txindex=1
EOF

# run docker
docker run -d -v ~/.insacoin:/root/.insacoin \
       -p 7332:7332 \
       --name insacoin \
       insacoin \
       insacoind -txindex -rpcallowip=172.17.0.0/16
# or with docker-compose
docker-compose up -d

Using insacoin-cli :

docker exec -it insacoin insacoin-cli getinfo

Running INSAcoin UI

xhost +local:docker && docker run -ti --rm --name insacoin -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v ~/.insacoin:/root/.insacoin insacoin insacoin-qt

Setup Autocompletion

Run the following commands :

sudo cp contrib/insacoind.bash-completion /etc/bash_completion.d/
source /etc/bash_completion.d/insacoind.bash-completion

If you are using docker and want to use insacoin-cli as if it was installed :

sudo cat > /usr/local/bin/insacoin-cli << EOF
#!/bin/bash
docker exec -it insacoin insacoin-cli $@
EOF

License

Insacoin is released under the terms of the MIT license. See COPYING for more information or see http://opensource.org/licenses/MIT.

You can’t perform that action at this time.