MMT Operator is a Web application writting in Nodejs. It receives the protocol stats generated by MMT-Probe, saves them in a MONGO database and allows the user to visualize them in graphical charts.
This chain of tools depends on the following packages:
Follow the instruction on nodejs.org: https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions
Follow the procedure described on the following link to install the version 4.4 of Mongodb: https://www.mongodb.com/docs/v4.4/tutorial/install-mongodb-on-ubuntu/
For example, the following commands will install MongoDB 4.4 on Ubuntu server 22.04:
# install libssl1.1
echo "deb http://security.ubuntu.com/ubuntu focal-security main" | sudo tee /etc/apt/sources.list.d/focal-security.list
sudo apt-get update
sudo apt-get install libssl1.1
# install MongoDB 4.4
sudo apt-get install gnupg curl
curl -fsSL https://www.mongodb.org/static/pgp/server-4.4.asc | \
sudo gpg -o /usr/share/keyrings/mongodb-server-4.4.gpg \
--dearmor
echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-4.4.gpg ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
sudo apt-get update
sudo apt-get install -y mongodb-org
cd www
#update configuration in config.json if need
#start
sudo npm start
# use another configuration file
node bin/www --config=test.json
An option in the configuration file can be overriden by giving a new parameter when running operator, for example:
cd www
node bin/www --config=test.json -Xdatabase_server.host=10.0.0.2 -Xlocal_network.0.ip=192.168.1.0
X
parameter is in format: attribute=value
where:
attribute
value
is a primitive value: number, string. It must not be an Object or Array.
Once MMT-Operator is up and running, open your favorite Web browser and goto
localhost:8080
To start GUI of MMT-Attack
npm run attack
# one will get a deb file such as www/dist/mmt-operator_1.6.2_05c27df_2017-05-05.deb
npm run build-deb