From 78e607b3e4c55b830193dee5711b220e6ca79720 Mon Sep 17 00:00:00 2001 From: d3v11 Date: Sat, 29 Oct 2011 11:37:41 -0400 Subject: SpliceX patched compiler for /path/to/Python.h and /path/to/structmember.h --- contrib/splicex/CHANGES | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'contrib/splicex/CHANGES') diff --git a/contrib/splicex/CHANGES b/contrib/splicex/CHANGES index 3a0e43b..442a19e 100644 --- a/contrib/splicex/CHANGES +++ b/contrib/splicex/CHANGES @@ -25,3 +25,23 @@ CHANGES: via Cython. see README for dependencies and installation details. + SpliceX compiler flags patched. recent + update did not distinguish: + + /usr/include/ + + -FROM- + + /usr/local/include/ + + Thus, if you have debian python-dev or + source python-dev the ./configure script + should choose the appropriate option. + if the configure still failed to locate + the python development files (headers) + please let me know and I will correct. + + SpliceX can now optionally do a pure + python install. This cuts down on + dependencies and is useful if you just + want to test, try, and/or debug. -- cgit v1.2.3 From 47c0b07a9ee8949c421ebf6bccff54efbf357664 Mon Sep 17 00:00:00 2001 From: d3v11 Date: Sat, 29 Oct 2011 17:14:19 -0400 Subject: SpliceX improved invalid argument detection/reporting --- contrib/splicex/CHANGES | 3 +++ 1 file changed, 3 insertions(+) (limited to 'contrib/splicex/CHANGES') diff --git a/contrib/splicex/CHANGES b/contrib/splicex/CHANGES index 442a19e..f550f6d 100644 --- a/contrib/splicex/CHANGES +++ b/contrib/splicex/CHANGES @@ -45,3 +45,6 @@ CHANGES: python install. This cuts down on dependencies and is useful if you just want to test, try, and/or debug. + + SpliceX now detects invalid arguments + and prints with error message. -- cgit v1.2.3 From dfd03060484c8ad77f7fa8a713e046237ecc37e9 Mon Sep 17 00:00:00 2001 From: d3v11 Date: Sun, 30 Oct 2011 08:01:22 -0400 Subject: SpliceX fixed, old coding trim down with patch for --time option --- contrib/splicex/CHANGES | 11 +++++++ contrib/splicex/configure | 6 ++++ contrib/splicex/src/splicex.pyx | 68 ++++++++++++++++++++--------------------- 3 files changed, 51 insertions(+), 34 deletions(-) (limited to 'contrib/splicex/CHANGES') diff --git a/contrib/splicex/CHANGES b/contrib/splicex/CHANGES index f550f6d..f6befee 100644 --- a/contrib/splicex/CHANGES +++ b/contrib/splicex/CHANGES @@ -48,3 +48,14 @@ CHANGES: SpliceX now detects invalid arguments and prints with error message. + + d3v11 - Sat Oct 29 2011: + + Old timing bug is now fixed. --time now + how a consistant tracking of how many + passwords and how much time has elapsed + among each brute force algorithm. This + new patch also simplified the code and + makes the functions faster. Much code + has been trimmed from splicex without + removing any options or functionality. diff --git a/contrib/splicex/configure b/contrib/splicex/configure index 933b51d..a01825c 100755 --- a/contrib/splicex/configure +++ b/contrib/splicex/configure @@ -17,6 +17,7 @@ if which `which "$1"` >/dev/null; then echo else echo -ne ' FAILED' + echo exit 1 fi @@ -26,6 +27,7 @@ if which man >/dev/null; then echo else echo -ne ' FAILED' + echo exit 1 fi @@ -36,6 +38,7 @@ if [ -z "$2" ]; then echo else echo -ne ' FAILED' + echo exit 1 fi fi @@ -47,6 +50,7 @@ if [ -z "$2" ]; then echo else echo -ne ' FAILED' + echo exit 1 fi fi @@ -65,6 +69,8 @@ if [ -z "$2" ]; then echo -e " compiler flags == gcc -I /usr/local/include/$1" else echo -e " Python.h and structmember.h could not be found... FAILED" + echo + exit 1 fi fi echo diff --git a/contrib/splicex/src/splicex.pyx b/contrib/splicex/src/splicex.pyx index d5d23c8..26c7898 100644 --- a/contrib/splicex/src/splicex.pyx +++ b/contrib/splicex/src/splicex.pyx @@ -1822,7 +1822,7 @@ def BF1(): if timeup == sleep_now: time.sleep(sleep_for) timeup = 0 - print(SpliceX + str(Speed) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) + print(SpliceX + str(int(round(float(Speed)))) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) output = os.popen(cmd.replace("PASSWORD", NewPassWd.replace(" ", "")).replace("USERNAME", User[u].replace(" ", ""))).read() if test == None: print(output) @@ -1878,7 +1878,7 @@ def BF2(): if timeup == sleep_now: time.sleep(sleep_for) timeup = 0 - print(SpliceX + str(Speed) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) + print(SpliceX + str(int(round(float(Speed)))) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) output = os.popen(cmd.replace("PASSWORD", NewPassWd.replace(" ", "")).replace("USERNAME", User[u].replace(" ", ""))).read() if test == None: print(output) @@ -1897,7 +1897,7 @@ def BF2(): if timeup == sleep_now: time.sleep(sleep_for) timeup = 0 - print(SpliceX + str(Speed) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) + print(SpliceX + str(int(round(float(Speed)))) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) output = os.popen(cmd.replace("PASSWORD", NewPassWd.replace(" ", "")).replace("USERNAME", User[u].replace(" ", ""))).read() if test == None: print(output) @@ -1955,7 +1955,7 @@ def BF3(): if timeup == sleep_now: time.sleep(sleep_for) timeup = 0 - print(SpliceX + str(Speed) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) + print(SpliceX + str(int(round(float(Speed)))) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) output = os.popen(cmd.replace("PASSWORD", NewPassWd.replace(" ", "")).replace("USERNAME", User[u].replace(" ", ""))).read() if test == None: print(output) @@ -1974,7 +1974,7 @@ def BF3(): if timeup == sleep_now: time.sleep(sleep_for) timeup = 0 - print(SpliceX + str(Speed) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) + print(SpliceX + str(int(round(float(Speed)))) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) output = os.popen(cmd.replace("PASSWORD", NewPassWd.replace(" ", "")).replace("USERNAME", User[u].replace(" ", ""))).read() if test == None: print(output) @@ -1992,7 +1992,7 @@ def BF3(): if timeup == sleep_now: time.sleep(sleep_for) timeup = 0 - print(SpliceX + str(Speed) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) + print(SpliceX + str(int(round(float(Speed)))) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) output = os.popen(cmd.replace("PASSWORD", NewPassWd.replace(" ", "")).replace("USERNAME", User[u].replace(" ", ""))).read() if test == None: print(output) @@ -2052,7 +2052,7 @@ def BF4(): if timeup == sleep_now: time.sleep(sleep_for) timeup = 0 - print(SpliceX + str(Speed) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) + print(SpliceX + str(int(round(float(Speed)))) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) output = os.popen(cmd.replace("PASSWORD", NewPassWd.replace(" ", "")).replace("USERNAME", User[u].replace(" ", ""))).read() if test == None: print(output) @@ -2071,7 +2071,7 @@ def BF4(): if timeup == sleep_now: time.sleep(sleep_for) timeup = 0 - print(SpliceX + str(Speed) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) + print(SpliceX + str(int(round(float(Speed)))) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) output = os.popen(cmd.replace("PASSWORD", NewPassWd.replace(" ", "")).replace("USERNAME", User[u].replace(" ", ""))).read() if test == None: print(output) @@ -2089,7 +2089,7 @@ def BF4(): if timeup == sleep_now: time.sleep(sleep_for) timeup = 0 - print(SpliceX + str(Speed) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) + print(SpliceX + str(int(round(float(Speed)))) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) output = os.popen(cmd.replace("PASSWORD", NewPassWd.replace(" ", "")).replace("USERNAME", User[u].replace(" ", ""))).read() if test == None: print(output) @@ -2107,7 +2107,7 @@ def BF4(): if timeup == sleep_now: time.sleep(sleep_for) timeup = 0 - print(SpliceX + str(Speed) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) + print(SpliceX + str(int(round(float(Speed)))) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) output = os.popen(cmd.replace("PASSWORD", NewPassWd.replace(" ", "")).replace("USERNAME", User[u].replace(" ", ""))).read() if test == None: print(output) @@ -2169,7 +2169,7 @@ def BF5(): if timeup == sleep_now: time.sleep(sleep_for) timeup = 0 - print(SpliceX + str(Speed) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) + print(SpliceX + str(int(round(float(Speed)))) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) output = os.popen(cmd.replace("PASSWORD", NewPassWd.replace(" ", "")).replace("USERNAME", User[u].replace(" ", ""))).read() if test == None: print(output) @@ -2188,7 +2188,7 @@ def BF5(): if timeup == sleep_now: time.sleep(sleep_for) timeup = 0 - print(SpliceX + str(Speed) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) + print(SpliceX + str(int(round(float(Speed)))) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) output = os.popen(cmd.replace("PASSWORD", NewPassWd.replace(" ", "")).replace("USERNAME", User[u].replace(" ", ""))).read() if test == None: print(output) @@ -2206,7 +2206,7 @@ def BF5(): if timeup == sleep_now: time.sleep(sleep_for) timeup = 0 - print(SpliceX + str(Speed) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) + print(SpliceX + str(int(round(float(Speed)))) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) output = os.popen(cmd.replace("PASSWORD", NewPassWd.replace(" ", "")).replace("USERNAME", User[u].replace(" ", ""))).read() if test == None: print(output) @@ -2270,7 +2270,7 @@ def BF6(): if timeup == sleep_now: time.sleep(sleep_for) timeup = 0 - print(SpliceX + str(Speed) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) + print(SpliceX + str(int(round(float(Speed)))) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) output = os.popen(cmd.replace("PASSWORD", NewPassWd.replace(" ", "")).replace("USERNAME", User[u].replace(" ", ""))).read() if test == None: print(output) @@ -2289,7 +2289,7 @@ def BF6(): if timeup == sleep_now: time.sleep(sleep_for) timeup = 0 - print(SpliceX + str(Speed) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) + print(SpliceX + str(int(round(float(Speed)))) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) output = os.popen(cmd.replace("PASSWORD", NewPassWd.replace(" ", "")).replace("USERNAME", User[u].replace(" ", ""))).read() if test == None: print(output) @@ -2307,7 +2307,7 @@ def BF6(): if timeup == sleep_now: time.sleep(sleep_for) timeup = 0 - print(SpliceX + str(Speed) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) + print(SpliceX + str(int(round(float(Speed)))) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) output = os.popen(cmd.replace("PASSWORD", NewPassWd.replace(" ", "")).replace("USERNAME", User[u].replace(" ", ""))).read() if test == None: print(output) @@ -2325,7 +2325,7 @@ def BF6(): if timeup == sleep_now: time.sleep(sleep_for) timeup = 0 - print(SpliceX + str(Speed) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) + print(SpliceX + str(int(round(float(Speed)))) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) output = os.popen(cmd.replace("PASSWORD", NewPassWd.replace(" ", "")).replace("USERNAME", User[u].replace(" ", ""))).read() if test == None: print(output) @@ -2391,7 +2391,7 @@ def BF7(): if timeup == sleep_now: time.sleep(sleep_for) timeup = 0 - print(SpliceX + str(Speed) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) + print(SpliceX + str(int(round(float(Speed)))) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) output = os.popen(cmd.replace("PASSWORD", NewPassWd.replace(" ", "")).replace("USERNAME", User[u].replace(" ", ""))).read() if test == None: print(output) @@ -2410,7 +2410,7 @@ def BF7(): if timeup == sleep_now: time.sleep(sleep_for) timeup = 0 - print(SpliceX + str(Speed) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) + print(SpliceX + str(int(round(float(Speed)))) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) output = os.popen(cmd.replace("PASSWORD", NewPassWd.replace(" ", "")).replace("USERNAME", User[u].replace(" ", ""))).read() if test == None: print(output) @@ -2428,7 +2428,7 @@ def BF7(): if timeup == sleep_now: time.sleep(sleep_for) timeup = 0 - print(SpliceX + str(Speed) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) + print(SpliceX + str(int(round(float(Speed)))) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) output = os.popen(cmd.replace("PASSWORD", NewPassWd.replace(" ", "")).replace("USERNAME", User[u].replace(" ", ""))).read() if test == None: print(output) @@ -2496,7 +2496,7 @@ def BF8(): if timeup == sleep_now: time.sleep(sleep_for) timeup = 0 - print(SpliceX + str(Speed) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) + print(SpliceX + str(int(round(float(Speed)))) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) output = os.popen(cmd.replace("PASSWORD", NewPassWd.replace(" ", "")).replace("USERNAME", User[u].replace(" ", ""))).read() if test == None: print(output) @@ -2515,7 +2515,7 @@ def BF8(): if timeup == sleep_now: time.sleep(sleep_for) timeup = 0 - print(SpliceX + str(Speed) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) + print(SpliceX + str(int(round(float(Speed)))) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) output = os.popen(cmd.replace("PASSWORD", NewPassWd.replace(" ", "")).replace("USERNAME", User[u].replace(" ", ""))).read() if test == None: print(output) @@ -2533,7 +2533,7 @@ def BF8(): if timeup == sleep_now: time.sleep(sleep_for) timeup = 0 - print(SpliceX + str(Speed) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) + print(SpliceX + str(int(round(float(Speed)))) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) output = os.popen(cmd.replace("PASSWORD", NewPassWd.replace(" ", "")).replace("USERNAME", User[u].replace(" ", ""))).read() if test == None: print(output) @@ -2551,7 +2551,7 @@ def BF8(): if timeup == sleep_now: time.sleep(sleep_for) timeup = 0 - print(SpliceX + str(Speed) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) + print(SpliceX + str(int(round(float(Speed)))) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) output = os.popen(cmd.replace("PASSWORD", NewPassWd.replace(" ", "")).replace("USERNAME", User[u].replace(" ", ""))).read() if test == None: print(output) @@ -2621,7 +2621,7 @@ def BF9(): if timeup == sleep_now: time.sleep(sleep_for) timeup = 0 - print(SpliceX + str(Speed) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) + print(SpliceX + str(int(round(float(Speed)))) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) output = os.popen(cmd.replace("PASSWORD", NewPassWd.replace(" ", "")).replace("USERNAME", User[u].replace(" ", ""))).read() if test == None: print(output) @@ -2640,7 +2640,7 @@ def BF9(): if timeup == sleep_now: time.sleep(sleep_for) timeup = 0 - print(SpliceX + str(Speed) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) + print(SpliceX + str(int(round(float(Speed)))) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) output = os.popen(cmd.replace("PASSWORD", NewPassWd.replace(" ", "")).replace("USERNAME", User[u].replace(" ", ""))).read() if test == None: print(output) @@ -2658,7 +2658,7 @@ def BF9(): if timeup == sleep_now: time.sleep(sleep_for) timeup = 0 - print(SpliceX + str(Speed) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) + print(SpliceX + str(int(round(float(Speed)))) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) output = os.popen(cmd.replace("PASSWORD", NewPassWd.replace(" ", "")).replace("USERNAME", User[u].replace(" ", ""))).read() if test == None: print(output) @@ -2730,7 +2730,7 @@ def BF10(): if timeup == sleep_now: time.sleep(sleep_for) timeup = 0 - print(SpliceX + str(Speed) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) + print(SpliceX + str(int(round(float(Speed)))) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) output = os.popen(cmd.replace("PASSWORD", NewPassWd.replace(" ", "")).replace("USERNAME", User[u].replace(" ", ""))).read() if test == None: print(output) @@ -2749,7 +2749,7 @@ def BF10(): if timeup == sleep_now: time.sleep(sleep_for) timeup = 0 - print(SpliceX + str(Speed) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) + print(SpliceX + str(int(round(float(Speed)))) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) output = os.popen(cmd.replace("PASSWORD", NewPassWd.replace(" ", "")).replace("USERNAME", User[u].replace(" ", ""))).read() if test == None: print(output) @@ -2767,7 +2767,7 @@ def BF10(): if timeup == sleep_now: time.sleep(sleep_for) timeup = 0 - print(SpliceX + str(Speed) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) + print(SpliceX + str(int(round(float(Speed)))) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) output = os.popen(cmd.replace("PASSWORD", NewPassWd.replace(" ", "")).replace("USERNAME", User[u].replace(" ", ""))).read() if test == None: print(output) @@ -2785,7 +2785,7 @@ def BF10(): if timeup == sleep_now: time.sleep(sleep_for) timeup = 0 - print(SpliceX + str(Speed) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) + print(SpliceX + str(int(round(float(Speed)))) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) output = os.popen(cmd.replace("PASSWORD", NewPassWd.replace(" ", "")).replace("USERNAME", User[u].replace(" ", ""))).read() if test == None: print(output) @@ -2859,7 +2859,7 @@ def BF11(): if timeup == sleep_now: time.sleep(sleep_for) timeup = 0 - print(SpliceX + str(Speed) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) + print(SpliceX + str(int(round(float(Speed)))) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) cmd = os.popen(cmd.replace("PASSWORD", NewPassWd.replace(" ", "")).replace('USERNAME', User[u].replace(" ", ""))) if test == None: print(output) @@ -2878,7 +2878,7 @@ def BF11(): if timeup == sleep_now: time.sleep(sleep_for) timeup = 0 - print(SpliceX + str(Speed) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) + print(SpliceX + str(int(round(float(Speed)))) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) output = os.popen(cmd.replace("PASSWORD", NewPassWd.replace(" ", "")).replace("USERNAME", User[u].replace(" ", ""))).read() if test == None: print(output) @@ -2896,7 +2896,7 @@ def BF11(): if timeup == sleep_now: time.sleep(sleep_for) timeup = 0 - print(SpliceX + str(Speed) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) + print(SpliceX + str(int(round(float(Speed)))) + "/s " + User[u].replace(" ", "") + " " + NewShowWord.replace(" ", "")) output = os.popen(cmd.replace("PASSWORD", NewPassWd.replace(" ", "")).replace("USERNAME", User[u].replace(" ", ""))).read() if test == None: print(output) -- cgit v1.2.3 From a246e58ccf508b251fba138cd1a329d4a125324e Mon Sep 17 00:00:00 2001 From: d3v11 Date: Sun, 30 Oct 2011 08:29:58 -0400 Subject: update changes for splicex --- contrib/splicex/CHANGES | 2 ++ 1 file changed, 2 insertions(+) (limited to 'contrib/splicex/CHANGES') diff --git a/contrib/splicex/CHANGES b/contrib/splicex/CHANGES index f6befee..aefb866 100644 --- a/contrib/splicex/CHANGES +++ b/contrib/splicex/CHANGES @@ -59,3 +59,5 @@ CHANGES: makes the functions faster. Much code has been trimmed from splicex without removing any options or functionality. + + --no-char bug fixed -- cgit v1.2.3