Skip to content

This Repository is a collection of different ethical hacking tools and malware's for penetration testing and research purpose written in python, ruby, rust, c++, go and c.

622 B
Raw Blame
#!/bin/sh

if [ -z "$H2_HOME" ]; then
    echo "H2_HOME is not set"
    echo "Set H2_HOME environment variable: export H2_HOME=/path/to/h2"
    exit 1
fi

URL=$1
USER=$2
PASSWORD=$3

if [ -z "$URL" ]; then
    echo "URL is not set"
    echo "Usage: h2-shell.sh URL USER PASSWORD"
    exit 1
fi

if [ -z "$USER" ]; then
    echo "USER is not set"
    echo "Usage: h2-shell.sh URL USER PASSWORD"
    exit 1
fi

if [ -z "$PASSWORD" ]; then
    echo "PASSWORD is not set"
    echo "Usage: h2-shell.sh URL USER PASSWORD"
    exit 1
fi

java -cp $H2_HOME/bin/h2*.jar org.h2.tools.Shell -url $URL -user $USER -password $PASSWORD