Java Command Line Client for the IOTA Spam Fund (www.iotaspam.com). Work in progress, bugs should be expected.
If you have never heard about Maven, you should stick with this rather simple "installation" (basically a download).
download the .jar file from the releases page and put it somewhere where it has write access (e.g. into Desktop/isf-jclient/
)
if you haven't already, now is the time to install the JRE (Java Runtime Environment) or JDK (Java Development Kit, which includes the JRE) so you can execute the .jar file in the next step
open your console, cd
yourself into the jar's directory and simply start it: java -jar isf-jclient-[VERSION].jar
If you prefer to compile the .jar file yourself and know how to use a terminal, use this guide. Just follow through the steps.
Please make sure you have the JDK (Java Development Kit) and Maven installed. Here is how to do that:
Depending on your permissions, you might have to write sudo
in front of each line.
$ apt update
$ add-apt-repository ppa:webupd8team/java
$ apt-get update
$ apt-get install oracle-java8-installer
$ apt-get install -y maven
$ apt-get install oracle-java8-set-default
To check whether the installations went successfully, execute these commands:
$ java -version
$ mvn --version
credits to this guide.
Please install the JDK from oracle.com. You can check whether it works by executing java -version
in your console. After that, proceed to install Maven:
download the latest version of Maven from maven.apache.org/download.cgi
unzip it into the folder where you want to install Maven (e.g. C:\Program Files\Apache\maven)
add both M2_HOME
and MAVEN_HOME
variables in the Windows system enviroment and point it to the maven folder (C:\Program Files\Apache\maven)
update the PATH
variable, append Maven bin folder: %M2_HOME%\bin (now you can run maven commands everywhere)
to test whether it works, execute mvn --version
in cmd, this should show you details about the installed version, directory etc.
Our spammer makes use of the official IOTA java library JOTA (iota.lib.java). You need to install it locally before you can run our spammer. There are several ways to do that:
$ cd ~/somewhere-over-the-rainbow/
$ wget https://github.com/iotaledger/iota.lib.java/archive/master.zip
$ unzip master.zip
$ cd iota.lib.java-master
$ mvn install
For this you will need the GIT plugin (installation on UBUNTU via: sudo apt-get install git
)
$ cd ~/somewhere-over-the-rainbow/
$ git clone https://github.com/iotaledger/iota.lib.java
$ cd iota.lib.java
$ mvn install
click on Clone or download
and select Download ZIP
unzip the downloaded master.zip file
open you console (CMD on windows) and cd
yourself into the directory iota.lib.java-master/
you just unzipped
execute mvn install
to locally install the iota.lib.java repository
Simply create the executable .jar directly from the GitHub source code. Again, there are several ways to do that:
$ cd ~/my-favorite-directory/
$ wget https://github.com/mikrohash/isf-jclient/archive/master.zip
$ unzip master.zip
$ cd isf-jclient-master
$ mvn versions:use-latest-versions -DallowSnapshots=true -DexcludeReactor=false
$ mvn install
For this you will need the GIT plugin (installation on UBUNTU via: sudo apt-get install git
)
$ cd ~/my-favorite-directory/
$ git clone https://github.com/mikrohash/isf-jclient
$ cd isf-jclient
$ mvn versions:use-latest-versions -DallowSnapshots=true -DexcludeReactor=false
$ mvn install
click on Clone or download
and select Download ZIP
unzip the downloaded master.zip file
open you console (CMD on windows) and cd
yourself into the directory isf-jclient-master/
you just unzipped
run mvn versions:use-latest-versions -DallowSnapshots=true -DexcludeReactor=false
to update all dependencies to the newest versions
execute mvn install
to locally install the iota.lib.java repository
Simply start the .jar to run the spamming tool:
$ java -jar isf-jclient-[VERSION].jar
After starting it for the first time, you will be guided through the configuration. You can always stop the spammer using CTRL+C
.
option | example | what it does |
---|---|---|
-autostart |
-autostart |
skips main menu and looking for updates, allowing you to instantly start the spammer |
-offline |
-offline |
spam your own spam instead of iotaspam.com spam (you won't receive rewards) |
-spamnet |
-spamnet |
spam on the spamnet |
-testnet |
-testnet |
spam on the testnet (you won't receive rewards) |
-email |
-email bob@example.org |
automatically try to sign in using this email |
-pass |
-pass hunter2 |
automatically try to sign in using this password (requires you to use -email ) |
If you want to compile the GO proof-of-work module yourself instead of downloading it from the releases, here is how to do it:
go get -u github.com/iotaledger/giota
go build pow.go
pow_[first three letters of os name]_[os architecture]_v2
, (make it a .exe if you have Windows) examples are: pow_lin_amd64_v2
or pow_win_386_v2.exe