diff options
Diffstat (limited to 'contrib/splicex')
| -rwxr-xr-x | contrib/splicex/.configure | 67 | ||||
| -rw-r--r-- | contrib/splicex/src/manual | 12 | ||||
| -rwxr-xr-x | contrib/splicex/src/splicex.py | 245 | 
3 files changed, 172 insertions, 152 deletions
| diff --git a/contrib/splicex/.configure b/contrib/splicex/.configure index 03d882e..0a55ce4 100755 --- a/contrib/splicex/.configure +++ b/contrib/splicex/.configure @@ -1,35 +1,35 @@  #!/bin/bash  clear -echo -e "\033[1;31m -                    __________        _ _         __  __    ______ -                   / / / / ___| _ __ | (_) ___ ___\\ \\/ /   / / / / -                  / / / /\___ \| '_ \| | |/ __/ _ \\\\\\  /   / / / / -                 / / / /  ___) | |_) | | | (_|  __//  \\  / / / / -                /_/_/_/  |____/| .__/|_|_|\\___\\___/_/\\_\\/_/_/_/ -                               |_|  -        \033[1;33m -                     .:Brute Force Utilities For GNU/Linux:. -        \033[0;0m - -       SpliceX is free software: you can redistribute it and/or modify it under -       the terms of the GNU General Public License as published by the Free -       Software Foundation, either version 3 of the License, or (at your option) -       any later version. - -       SpliceX is distributed in the hope that it will be useful, but WITHOUT -       ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -       FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License -       for more details. <http://www.gnu.org/licenses/> - -" +echo -e ""  +echo -e "\033[1;31m                    __________        _ _         \033[1;33m__  __\033[1;31m    ______    \033[0;0m" +echo -e "\033[1;31m                   / / / / ___| _ __ | (_) ___ ___\033[1;33m\\ \\/ /\033[1;31m   / / / /  \033[0;0m" +echo -e "\033[1;31m                  / / / /\___ \| '_ \| | |/ __/ _ \\\\\033[1;33m\\\  /   \033[1;31m/ / / /\033[0;0m" +echo -e "\033[1;31m                 / / / /  ___) | |_) | | | (_|  __/\033[1;33m/  \\  \033[1;31m/ / / /     \033[0;0m" +echo -e "\033[1;31m                /_/_/_/  |____/| .__/|_|_|\\___\\___\033[1;33m/_/\\_\\\\\033[1;31m/_/_/_/ \033[0;0m" +echo -e "\033[1;31m                               |_|                                              \033[0;0m" +echo -e "" +echo -e "\033[1;33m                     .:Brute Force Utilities For GNU/Linux:.                   \033[0;0m"      +echo -e "" +echo -e "" +echo -e "       SpliceX is free software: you can redistribute it and/or modify it under " +echo -e "       the terms of the GNU General Public License as published by the Free     " +echo -e "       Software Foundation, either version 3 of the License, or (at your option)" +echo -e "       any later version.                                                       " +echo -e "" +echo -e "       SpliceX is distributed in the hope that it will be useful, but WITHOUT   " +echo -e "       ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or    " +echo -e "       FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License    " +echo -e "       for more details. <http://www.gnu.org/licenses/>                         " +echo -e "" +echo -e ""  if [[ $(id -u) != 0 ]]; then - echo 'root privileges required!..Quiting...' + echo -e 'root privileges required...\033[1;31m FAILED\033[0;0m'   exit 1  fi  sleep .3 -echo 'CONFIGURE: ' +echo -e '\033[1;33mCONFIGURE: \033[0;0m'  sleep .3  echo -ne 'checking for python'  sleep .3 @@ -40,12 +40,12 @@ sleep .3  echo -ne '.'  if which python >/dev/null; then   sleep .3 - echo -ne ' python found :-)' + echo -ne '\033[1;32m OK\033[0;0m'   echo   sleep .3  else   sleep .3 - echo -ne ' python not found. Quiting... :-(' + echo -ne '\033[1;31m FAILED\033[0;0m'   echo   exit 1  fi @@ -59,28 +59,29 @@ sleep .3  echo -ne '.'  if which man >/dev/null; then   sleep .3 - echo -ne ' man found :-)' + echo -ne '\033[1;32m OK\033[0;0m'   echo   sleep .3  else   sleep .3 - echo -ne ' man not found. Quiting... :-(' + echo -ne '\033[1;31m FAILED\033[0;0m'   echo   exit 1  fi  PYPATH=`which python` -echo "configuring splicex for $PYPATH" +echo  -ne "configuring splicex for $PYPATH"  sleep .3  echo -ne '.'  sleep .3  echo -ne '.'  sleep .3  echo -ne '.' -sed -e s^PYTHON^"$PYPATH"^g src/splicex.py >src/splicex.cp -sed -e s^PYTHON^"$PYPATH"^g src/splicex-deshadow.py >src/splicex-deshadow.cp -echo "configured...continuing \`make install'" +sed -e s^PYTHON^"$PYPATH"^g src/splicex.py >src/splicex.cp || echo -ne '\033[1;31m FAILED\033[0;0m' +sed -e s^PYTHON^"$PYPATH"^g src/splicex-deshadow.py >src/splicex-deshadow.cp || echo -ne '\033[1;31m FAILED\033[0;0m' +echo -ne '\033[1;32m OK\033[0;0m' +echo -e ""  sleep .3  echo -echo 'INSTALL: ' +echo -e '\033[1;33mINSTALL: \033[0;0m'  sleep .3 diff --git a/contrib/splicex/src/manual b/contrib/splicex/src/manual index 9ad0b66..f11acc0 100644 --- a/contrib/splicex/src/manual +++ b/contrib/splicex/src/manual @@ -27,20 +27,27 @@ OPTIONS  --help                Show help display and exit  --command             Parse passwords to this command +                      splicex --command='<command> PASSWORD'  --dictionary          Path to custom dictionary(wordlist) +                      splicex --dictionary='WordList.txt'  --rtfm                Show manual page and exit  --restore             Path to restore file +                      splicex --restore='splicex.save'  --save                Directory path to create save file +                      splicex --save=/home/$USER/  --test                Test output of command +                      splicex --test='Password Ok'  --time                Manipulate timed iterations +                      splicex --time='12, 3'  --usernames           Path to username list +                      splicex --usernames='UserList.txt'  --exh-l               Use an exhaustive attack with letters only @@ -59,6 +66,7 @@ OPTIONS  --exh-all             Use an exhaustive attack with all characters  --exh-custom          Use an exhaustive attack with custom characters +                      splicex --exh-custom='CharsList.txt'  --stdout              Print only passwords to stdout @@ -79,6 +87,7 @@ OPTIONS  -S                    Use special mixing module  --mix-custom          Use custom mixing module +                      splicex --mix-custom='CharsList.txt'  --wep-5               Use 5 character WEP module @@ -99,12 +108,15 @@ OPTIONS  --char-length         Start and end with set character lengths  --custom              Use custom characters +                      splicex --custom='CharsList.txt'  --deshadow            Crack shadow hash sums  --get-shadow          Get the shadow info for a user +                      splicex --get-shadow=$USER  --set-shadow          Use the shadow info from a file +                      splicex --set-shadow='UserShadow.txt'  --se-module           Use the social engineering module diff --git a/contrib/splicex/src/splicex.py b/contrib/splicex/src/splicex.py index 9ecf033..22c4f32 100755 --- a/contrib/splicex/src/splicex.py +++ b/contrib/splicex/src/splicex.py @@ -4,127 +4,135 @@ Red = '\033[1;31m'  Green = '\033[1;32m'  Yellow = '\033[1;33m'  DefColour = '\033[0;0m' +CLEAR_LINE = chr(27) + '[2K'  SpliceX = Red + '[Splice' + Yellow + 'X' + Red + ']: ' + DefColour  def HELP():  -    print(Red+""" -                    __________        _ _         __  __    ______ -                   / / / / ___| _ __ | (_) ___ ___\ \/ /   / / / / -                  / / / /\___ \| '_ \| | |/ __/ _ \\\\  /   / / / / -                 / / / /  ___) | |_) | | | (_|  __//  \  / / / / -                /_/_/_/  |____/| .__/|_|_|\___\___/_/\_\/_/_/_/ -                               |_| -        -              """+DefColour) - -    print(Yellow+""" -                     .:Brute Force Utilities For GNU/Linux:. -                 """+DefColour) - -    print(""" - -       SpliceX is free software: you can redistribute it and/or modify it under -       the terms of the GNU General Public License as published by the Free -       Software Foundation, either version 3 of the License, or (at your option) -       any later version. - -       SpliceX is distributed in the hope that it will be useful, but WITHOUT -       ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -       FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License -       for more details. <http://www.gnu.org/licenses/> -     - -         """) -    print(""" -       --help                Show help display and exit - -       --command             Parse passwords to this command - -       --dictionary          Path to custom dictionary(wordlist) - -       --rtfm                Show manual page and exit - -       --restore             Path to restore file - -       --save                Directory path to create save file - -       --test                Test output of command - -       --time                Manipulate timed iterations - -       --usernames           Path to username list - -       --exh-l               Use an exhaustive attack with letters only - -       --exh-n               Use an exhaustive attack with numbers only - -       --exh-s               Use an exhaustive attack with special characters only - -       --exh-ln              Use an exhaustive attack with letters and numbers only - -       --exh-ls              Use an exhaustive attack with letters and special -                             characters only - -       --exh-ns              Use an exhaustive attack with numbers and special -                             characters only - -       --exh-all             Use an exhaustive attack with all characters - -       --exh-custom          Use an exhaustive attack with custom characters - -       --stdout              Print only passwords to stdout - -       -A                    Use alphabetical mixing module - -       -B                    Use backwords module - -       -C                    Use alternating caps module - -       -L                    Use "L337" speak module - -       -M                    Use MD5 module - -       -N                    Use numerical mixing module - -       -R                    Use regular words module - -       -S                    Use special mixing module - -       --mix-custom          Use custom mixing module - -       --wep-5               Use 5 character WEP module - -       --wep-13              Use 13 character WEP module - -       --wep-*               Use 5 and 13 character WEP module - -       --letters             Use letter characters - -       --numbers             Use number characters - -       --specials            Use special characters - -       --char-all            Use all characters - -       --no-char             Override character usage - -       --char-length         Start and end with set character lengths - -       --custom              Use custom characters - -       --deshadow            Crack shadow hash sums - -       --get-shadow          Get the shadow info for a user - -       --set-shadow          Use the shadow info from a file - -       --se-module           Use the social engineering module - -       --create              Create a dictionary - -       --debug               Enable debugging -     -    """) +    print('') +    print(Red + '                __________        _ _         ' + Yellow + '__  __' + Red + '    ______  ' + DefColour) +    print(Red + '               / / / / ___| _ __ | (_) ___ ___' + Yellow + '\ \/ /' + Red + '   / / / /  ' + DefColour) +    print(Red + '              / / / /\___ \| \'_ \| | |/ __/ _ \\' + Yellow + '\\  /' + Red + '   / / / /' + DefColour) +    print(Red + '             / / / /  ___) | |_) | | | (_|  __/' + Yellow + '/  \\' + Red + '  / / / /   ' + DefColour) +    print(Red + '            /_/_/_/  |____/| .__/|_|_|\___\___' + Yellow + '/_/\_\\' + Red + '/_/_/_/    ' + DefColour) +    print(Red + '                           |_|                                                           ' + DefColour) +    print('                                                                                               ' + DefColour) +    print('                                                                                               ' + DefColour) +    print('                                                                                               ' + DefColour) +    print(Yellow + '                 .:Brute Force Utilities For GNU/Linux:.                              ' + DefColour) +    print('') +    print('') +    print('') +    print('   SpliceX is free software: you can redistribute it and/or modify it under ') +    print('   the terms of the GNU General Public License as published by the Free     ') +    print('   Software Foundation, either version 3 of the License, or (at your option)') +    print('   any later version.                                                       ') +    print('') +    print('   SpliceX is distributed in the hope that it will be useful, but WITHOUT   ') +    print('   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or    ') +    print('   FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License    ') +    print('   for more details. <http://www.gnu.org/licenses/>                         ') +    print('') +    print('') +    print('') +    print(Red + '   --help                ' + DefColour + 'Show help display and exit') +    print('') +    print(Red + '   --command             ' + DefColour + 'Parse passwords to this command') +    print('                         '       + Yellow +    'splicex --command=\'<command> PASSWORD\'' + DefColour) +    print('') +    print(Red + '   --dictionary          ' + DefColour + 'Path to custom dictionary(wordlist)') +    print('                         '       + Yellow +    'splicex --dictionary=\'WordList.txt\'' + DefColour) +    print('') +    print(Red + '   --rtfm                ' + DefColour + 'Show manual page and exit') +    print('') +    print(Red + '   --restore             ' + DefColour + 'Path to restore file') +    print('                         '       + Yellow +    'splicex --restore=\'splicex.save\'' + DefColour) +    print('') +    print(Red + '   --save                ' + DefColour + 'Directory path to create save file') +    print('                         '       + Yellow +    'splicex --save=/home/$USER/' + DefColour) +    print('') +    print(Red + '   --test                ' + DefColour + 'Test output of command') +    print('                         '       + Yellow +    'splicex --test=\'Password Ok\'' + DefColour) +    print('') +    print(Red + '   --time                ' + DefColour + 'Manipulate timed iterations') +    print('                         '       + Yellow +    'splicex --time=\'12, 3\'' + DefColour) +    print('') +    print(Red + '   --usernames           ' + DefColour + 'Path to username list') +    print('                         '       + Yellow +    'splicex --usernames=\'UserList.txt\'' + DefColour) +    print('') +    print(Red + '   --exh-l               ' + DefColour + 'Use an exhaustive attack with letters only') +    print('') +    print(Red + '   --exh-n               ' + DefColour + 'Use an exhaustive attack with numbers only') +    print('') +    print(Red + '   --exh-s               ' + DefColour + 'Use an exhaustive attack with special characters only') +    print('') +    print(Red + '   --exh-ln              ' + DefColour + 'Use an exhaustive attack with letters and numbers only') +    print('') +    print(Red + '   --exh-ls              ' + DefColour + 'Use an exhaustive attack with letters and special') +    print('                         characters only') +    print('') +    print(Red + '   --exh-ns              ' + DefColour + 'Use an exhaustive attack with numbers and special') +    print('                         characters only') +    print('') +    print(Red + '   --exh-all             ' + DefColour + 'Use an exhaustive attack with all characters') +    print('') +    print(Red + '   --exh-custom          ' + DefColour + 'Use an exhaustive attack with custom characters') +    print('                         '       + Yellow +    'splicex --exh-custom=\'CharsList.txt\'' + DefColour) +    print('') +    print(Red + '   --stdout              ' + DefColour + 'Print only passwords to stdout') +    print('') +    print(Red + '   -A                    ' + DefColour + 'Use alphabetical mixing module') +    print('') +    print(Red + '   -B                    ' + DefColour + 'Use backwords module') +    print('') +    print(Red + '   -C                    ' + DefColour + 'Use alternating caps module') +    print('') +    print(Red + '   -L                    ' + DefColour + 'Use "L337" speak module') +    print('') +    print(Red + '   -M                    ' + DefColour + 'Use MD5 module') +    print('') +    print(Red + '   -N                    ' + DefColour + 'Use numerical mixing module') +    print('') +    print(Red + '   -R                    ' + DefColour + 'Use regular words module') +    print('') +    print(Red + '   -S                    ' + DefColour + 'Use special mixing module') +    print('') +    print(Red + '   --mix-custom          ' + DefColour + 'Use custom mixing module') +    print('                         '       + Yellow +    'splicex --mix-custom=\'CharsList.txt\'' + DefColour) +    print('') +    print(Red + '   --wep-5               ' + DefColour + 'Use 5 character WEP module') +    print('') +    print(Red + '   --wep-13              ' + DefColour + 'Use 13 character WEP module') +    print('') +    print(Red + '   --wep-*               ' + DefColour + 'Use 5 and 13 character WEP module') +    print('') +    print(Red + '   --letters             ' + DefColour + 'Use letter characters') +    print('') +    print(Red + '   --numbers             ' + DefColour + 'Use number characters') +    print('') +    print(Red + '   --specials            ' + DefColour + 'Use special characters') +    print('') +    print(Red + '   --char-all            ' + DefColour + 'Use all characters') +    print('') +    print(Red + '   --no-char             ' + DefColour + 'Override character usage') +    print('') +    print(Red + '   --char-length         ' + DefColour + 'Start and end with set character lengths') +    print('') +    print(Red + '   --custom              ' + DefColour + 'Use custom characters') +    print('                         '       + Yellow +    'splicex --custom=\'CharsList.txt\'' + DefColour) +    print('') +    print(Red + '   --deshadow            ' + DefColour + 'Crack shadow hash sums') +    print('') +    print(Red + '   --get-shadow          ' + DefColour + 'Get the shadow info for a user') +    print('                         '       + Yellow +    'splicex --get-shadow=$USER' + DefColour) +    print('') +    print(Red + '   --set-shadow          ' + DefColour + 'Use the shadow info from a file') +    print('                         '       + Yellow +    'splicex --set-shadow=\'UserShadow.txt\'' + DefColour) +    print('') +    print(Red + '   --se-module           ' + DefColour + 'Use the social engineering module') +    print('') +    print(Red + '   --create              ' + DefColour + 'Create a dictionary') +    print('') +    print(Red + '   --debug               ' + DefColour + 'Enable debugging')  import os  import re @@ -3683,7 +3691,6 @@ def SBF11():                   print(NewShowWord.replace(" ", ""))  if Create is True: - CLEAR_LINE = chr(27) + '[2K'   CFILE = open("splicex.create", 'w')   X = 0   N = 0 | 
