From 6409854efc7dcf5e9cfb02b9cb97305609faa429 Mon Sep 17 00:00:00 2001 From: d3v11 Date: Sun, 9 Oct 2011 13:16:30 -0500 Subject: improved splice3 code - d3v11 --- contrib/splice3/LINUX/splice3.py | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) (limited to 'contrib/splice3/LINUX/splice3.py') diff --git a/contrib/splice3/LINUX/splice3.py b/contrib/splice3/LINUX/splice3.py index affcf72..5953f6c 100755 --- a/contrib/splice3/LINUX/splice3.py +++ b/contrib/splice3/LINUX/splice3.py @@ -1549,12 +1549,20 @@ def WEP13(): def SOCEN(): + socen = [] + socen_a = [] + socen_words = [] + + try: + for i in Word: + socen_words.append(i.replace('\n', '')) + except: + pass + ReadDictionary = open(dictionary, 'r') for line in ReadDictionary: socen_words.append(line.replace('\n', '')) - socen = [] - socen_a = [] for i in socen_words: for let in i: try: @@ -1592,10 +1600,6 @@ def SOCEN(): Word.append(a + b + c) - -if SESwitch is True: - socen_words = [] - SOCEN() if RegularSwitch is True: REGULAR() if BWSwitch is True: @@ -1610,7 +1614,8 @@ if wep5 is True: WEP5() if wep13 is True: WEP13() - +if SESwitch is True: + SOCEN() DoMix = False if AlphaSwitch is True: @@ -1635,6 +1640,10 @@ else: User.append("") UserCount = 1 +if not Word: + print "splice3: error: compiled empty wordlist" + sys.exit(1) + Word = list(set(Word)) WordCount = 0 ShowWord = [] -- cgit v1.2.3