diff options
author | d3v11 <d3v11@d3v11.ano> | 2011-10-09 13:16:30 -0500 |
---|---|---|
committer | d3v11 <d3v11@d3v11.ano> | 2011-10-09 13:16:30 -0500 |
commit | 6409854efc7dcf5e9cfb02b9cb97305609faa429 (patch) | |
tree | 95faf6dee6b17779463d08c11d9fb004ca9dc005 /contrib/splice3/LINUX/splice3.py | |
parent | f93f56b05f411e9b848147d887b3deb0ca75525e (diff) | |
download | resdb-6409854efc7dcf5e9cfb02b9cb97305609faa429.tar.gz resdb-6409854efc7dcf5e9cfb02b9cb97305609faa429.zip |
improved splice3 code - d3v11
Diffstat (limited to 'contrib/splice3/LINUX/splice3.py')
-rwxr-xr-x | contrib/splice3/LINUX/splice3.py | 23 |
1 files changed, 16 insertions, 7 deletions
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 = [] |