polarking / jss7-attack-simulator

SS7 Attack Simulator based on RestComm's jss7
76 stars 46 forks source link

Help for step by step guide #3

Open hackdrug opened 6 years ago

hackdrug commented 6 years ago

-after execute:

SS7/ss7/restcomm-ss7-simulator/bin/run.sh (i renamed the file to SS7)

-then come the error:

SS7 Simulator Bootstrap Environment

SIMULATOR_HOME: /root/SS7/ss7/restcomm-ss7-simulator

JAVA: java

JAVA_OPTS: -Dprogram.name=run.sh -server -Djava.net.preferIPv4Stack=true -Xms256m -Xmx2048m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000

CLASSPATH: /root/SS7/ss7/restcomm-ss7-simulator/bin/run.jar

=========================================================================

-Djava.ext.dirs=/root/SS7/ss7/restcomm-ss7-simulator/lib is not supported. Use -classpath instead. Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.

i am new to java so i don't get the point. any tutorial or how to fix this ? already install latest java. running kali linux OS

AdamGreenhill commented 3 years ago

I received this issue as well on a flavour of Debian. Steps to fix the issue are: 1) Install Java 8 JRE - apt-get install -y openjdk-8-jre 2) Modify run.sh to use the updated version of Java. For example, I did the following:

File: https://github.com/polarking/jss7-attack-simulator/blob/43fb0b5e0f7b6cfc34e6627e7bc30cc6022874a3/sgw/boot/src/main/config/run.sh

Lines: 91-98

Before:

# Setup the JVM
if [ "x$JAVA" = "x" ]; then
    if [ "x$JAVA_HOME" != "x" ]; then
    JAVA="$JAVA_HOME/bin/java"
    else
    JAVA="java"
    fi
fi

After:

# Setup the JVM
if [ "x$JAVA" = "x" ]; then
    if [ "x$JAVA_HOME" != "x" ]; then
    JAVA="$JAVA_HOME/bin/java"
    else
    JAVA="/usr/lib/jvm/java-8-openjdk-amd64/bin/java"
    fi
fi