mirror of
https://github.com/bvanroll/odiseectf.git
synced 2025-08-28 19:32:42 +00:00
patterns shit
This commit is contained in:
1876156
patterns/FINALDICT
Normal file
1876156
patterns/FINALDICT
Normal file
File diff suppressed because it is too large
Load Diff
1048575
patterns/dict.txt
Normal file
1048575
patterns/dict.txt
Normal file
File diff suppressed because it is too large
Load Diff
0
patterns/dictionaryFull
Normal file
0
patterns/dictionaryFull
Normal file
160
patterns/patternsTest.txt
Normal file
160
patterns/patternsTest.txt
Normal file
@@ -0,0 +1,160 @@
|
|||||||
|
1aqw
|
||||||
|
wqa1
|
||||||
|
1Aqw
|
||||||
|
1aQw
|
||||||
|
1aqW
|
||||||
|
wQa1
|
||||||
|
wqA1
|
||||||
|
wqa1
|
||||||
|
2zsx
|
||||||
|
xsz2
|
||||||
|
2Zsx
|
||||||
|
2zSx
|
||||||
|
2zsX
|
||||||
|
xSz2
|
||||||
|
xsZ2
|
||||||
|
xsz2
|
||||||
|
3edc
|
||||||
|
cde3
|
||||||
|
3Edc
|
||||||
|
3eDc
|
||||||
|
3edC
|
||||||
|
cDe3
|
||||||
|
cdE3
|
||||||
|
cde3
|
||||||
|
4rfv
|
||||||
|
vfr4
|
||||||
|
4Rfv
|
||||||
|
4rFv
|
||||||
|
4rfV
|
||||||
|
vFr4
|
||||||
|
vfR4
|
||||||
|
vfr4
|
||||||
|
5tgb
|
||||||
|
bgt5
|
||||||
|
5Tgb
|
||||||
|
5tGb
|
||||||
|
5tgB
|
||||||
|
bGt5
|
||||||
|
bgT5
|
||||||
|
bgt5
|
||||||
|
6yhn
|
||||||
|
nhy6
|
||||||
|
6Yhn
|
||||||
|
6yHn
|
||||||
|
6yhN
|
||||||
|
nHy6
|
||||||
|
nhY6
|
||||||
|
nhy6
|
||||||
|
7uj,
|
||||||
|
,ju7
|
||||||
|
7Uj,
|
||||||
|
7uJ,
|
||||||
|
7uj,
|
||||||
|
,Ju7
|
||||||
|
,jU7
|
||||||
|
,ju7
|
||||||
|
8ik;
|
||||||
|
;ki8
|
||||||
|
8Ik;
|
||||||
|
8iK;
|
||||||
|
8ik;
|
||||||
|
;Ki8
|
||||||
|
;kI8
|
||||||
|
;ki8
|
||||||
|
9ol:
|
||||||
|
:lo9
|
||||||
|
9Ol:
|
||||||
|
9oL:
|
||||||
|
9ol:
|
||||||
|
:Lo9
|
||||||
|
:lO9
|
||||||
|
:lo9
|
||||||
|
0pm=
|
||||||
|
=mp0
|
||||||
|
0Pm=
|
||||||
|
0pM=
|
||||||
|
0pm=
|
||||||
|
=Mp0
|
||||||
|
=mP0
|
||||||
|
=mp0
|
||||||
|
0ok,
|
||||||
|
,ko0
|
||||||
|
0Ok,
|
||||||
|
0oK,
|
||||||
|
0ok,
|
||||||
|
,Ko0
|
||||||
|
,kO0
|
||||||
|
,ko0
|
||||||
|
9ijn
|
||||||
|
nji9
|
||||||
|
9Ijn
|
||||||
|
9iJn
|
||||||
|
9ijN
|
||||||
|
nJi9
|
||||||
|
njI9
|
||||||
|
nji9
|
||||||
|
8uhb
|
||||||
|
bhu8
|
||||||
|
8Uhb
|
||||||
|
8uHb
|
||||||
|
8uhB
|
||||||
|
bHu8
|
||||||
|
bhU8
|
||||||
|
bhu8
|
||||||
|
7ygv
|
||||||
|
vgy7
|
||||||
|
7Ygv
|
||||||
|
7yGv
|
||||||
|
7ygV
|
||||||
|
vGy7
|
||||||
|
vgY7
|
||||||
|
vgy7
|
||||||
|
6tfc
|
||||||
|
cft6
|
||||||
|
6Tfc
|
||||||
|
6tFc
|
||||||
|
6tfC
|
||||||
|
cFt6
|
||||||
|
cfT6
|
||||||
|
cft6
|
||||||
|
5rdx
|
||||||
|
xdr5
|
||||||
|
5Rdx
|
||||||
|
5rDx
|
||||||
|
5rdX
|
||||||
|
xDr5
|
||||||
|
xdR5
|
||||||
|
xdr5
|
||||||
|
4esw
|
||||||
|
wse4
|
||||||
|
4Esw
|
||||||
|
4eSw
|
||||||
|
4esW
|
||||||
|
wSe4
|
||||||
|
wsE4
|
||||||
|
wse4
|
||||||
|
3zq
|
||||||
|
qz3
|
||||||
|
3Zq
|
||||||
|
3zQ
|
||||||
|
3zq
|
||||||
|
qZ3
|
||||||
|
qz3
|
||||||
|
qz3
|
||||||
|
2a
|
||||||
|
a2
|
||||||
|
2A
|
||||||
|
2a
|
||||||
|
2a
|
||||||
|
a2
|
||||||
|
a2
|
||||||
|
a2
|
||||||
|
1
|
||||||
|
1
|
||||||
|
1
|
||||||
|
1
|
||||||
|
1
|
||||||
|
1
|
||||||
|
1
|
||||||
|
1
|
123
patterns/patternsTest.txt.dupless
Normal file
123
patterns/patternsTest.txt.dupless
Normal file
@@ -0,0 +1,123 @@
|
|||||||
|
1aqw
|
||||||
|
wqa1
|
||||||
|
1Aqw
|
||||||
|
1aQw
|
||||||
|
1aqW
|
||||||
|
wQa1
|
||||||
|
wqA1
|
||||||
|
2zsx
|
||||||
|
xsz2
|
||||||
|
2Zsx
|
||||||
|
2zSx
|
||||||
|
2zsX
|
||||||
|
xSz2
|
||||||
|
xsZ2
|
||||||
|
3edc
|
||||||
|
cde3
|
||||||
|
3Edc
|
||||||
|
3eDc
|
||||||
|
3edC
|
||||||
|
cDe3
|
||||||
|
cdE3
|
||||||
|
4rfv
|
||||||
|
vfr4
|
||||||
|
4Rfv
|
||||||
|
4rFv
|
||||||
|
4rfV
|
||||||
|
vFr4
|
||||||
|
vfR4
|
||||||
|
5tgb
|
||||||
|
bgt5
|
||||||
|
5Tgb
|
||||||
|
5tGb
|
||||||
|
5tgB
|
||||||
|
bGt5
|
||||||
|
bgT5
|
||||||
|
6yhn
|
||||||
|
nhy6
|
||||||
|
6Yhn
|
||||||
|
6yHn
|
||||||
|
6yhN
|
||||||
|
nHy6
|
||||||
|
nhY6
|
||||||
|
7uj,
|
||||||
|
,ju7
|
||||||
|
7Uj,
|
||||||
|
7uJ,
|
||||||
|
,Ju7
|
||||||
|
,jU7
|
||||||
|
8ik;
|
||||||
|
;ki8
|
||||||
|
8Ik;
|
||||||
|
8iK;
|
||||||
|
;Ki8
|
||||||
|
;kI8
|
||||||
|
9ol:
|
||||||
|
:lo9
|
||||||
|
9Ol:
|
||||||
|
9oL:
|
||||||
|
:Lo9
|
||||||
|
:lO9
|
||||||
|
0pm=
|
||||||
|
=mp0
|
||||||
|
0Pm=
|
||||||
|
0pM=
|
||||||
|
=Mp0
|
||||||
|
=mP0
|
||||||
|
0ok,
|
||||||
|
,ko0
|
||||||
|
0Ok,
|
||||||
|
0oK,
|
||||||
|
,Ko0
|
||||||
|
,kO0
|
||||||
|
9ijn
|
||||||
|
nji9
|
||||||
|
9Ijn
|
||||||
|
9iJn
|
||||||
|
9ijN
|
||||||
|
nJi9
|
||||||
|
njI9
|
||||||
|
8uhb
|
||||||
|
bhu8
|
||||||
|
8Uhb
|
||||||
|
8uHb
|
||||||
|
8uhB
|
||||||
|
bHu8
|
||||||
|
bhU8
|
||||||
|
7ygv
|
||||||
|
vgy7
|
||||||
|
7Ygv
|
||||||
|
7yGv
|
||||||
|
7ygV
|
||||||
|
vGy7
|
||||||
|
vgY7
|
||||||
|
6tfc
|
||||||
|
cft6
|
||||||
|
6Tfc
|
||||||
|
6tFc
|
||||||
|
6tfC
|
||||||
|
cFt6
|
||||||
|
cfT6
|
||||||
|
5rdx
|
||||||
|
xdr5
|
||||||
|
5Rdx
|
||||||
|
5rDx
|
||||||
|
5rdX
|
||||||
|
xDr5
|
||||||
|
xdR5
|
||||||
|
4esw
|
||||||
|
wse4
|
||||||
|
4Esw
|
||||||
|
4eSw
|
||||||
|
4esW
|
||||||
|
wSe4
|
||||||
|
wsE4
|
||||||
|
3zq
|
||||||
|
qz3
|
||||||
|
3Zq
|
||||||
|
3zQ
|
||||||
|
qZ3
|
||||||
|
2a
|
||||||
|
a2
|
||||||
|
2A
|
||||||
|
1
|
1860867
patterns/patternsTestThrice
Normal file
1860867
patterns/patternsTestThrice
Normal file
File diff suppressed because it is too large
Load Diff
15129
patterns/patternsTestTwice
Normal file
15129
patterns/patternsTestTwice
Normal file
File diff suppressed because it is too large
Load Diff
40
patterns/realcomb.py
Normal file
40
patterns/realcomb.py
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
#it just actually combines files by appending the lines of one to another
|
||||||
|
|
||||||
|
import sys, os
|
||||||
|
|
||||||
|
if len(sys.argv) < 2:
|
||||||
|
print("usage python blabal.py file1 ....")
|
||||||
|
sys.exit()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
files = []
|
||||||
|
for i,x in enumerate(sys.argv):
|
||||||
|
if i > 0:
|
||||||
|
files.append(x)
|
||||||
|
|
||||||
|
|
||||||
|
lines = []
|
||||||
|
title = ""
|
||||||
|
|
||||||
|
for f in files:
|
||||||
|
title = title+f
|
||||||
|
|
||||||
|
with open(f, "r") as infile:
|
||||||
|
lines.extend(infile.readlines())
|
||||||
|
|
||||||
|
|
||||||
|
for i,l in enumerate(lines):
|
||||||
|
if " " in l:
|
||||||
|
temp = l
|
||||||
|
lines.pop(i)
|
||||||
|
temp.split(" ")
|
||||||
|
lines.extend(temp)
|
||||||
|
|
||||||
|
with open(title, "w") as outfile:
|
||||||
|
outfile.writelines(lines)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
21
patterns/removedupes.py
Normal file
21
patterns/removedupes.py
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
import sys, os
|
||||||
|
|
||||||
|
if len(sys.argv) < 2:
|
||||||
|
print("usage python removedupes.py FILE")
|
||||||
|
sys.exit()
|
||||||
|
lines = []
|
||||||
|
f = sys.argv[1]
|
||||||
|
with open(f, 'r') as infile:
|
||||||
|
lines = infile.readlines()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
outlines = []
|
||||||
|
for l in lines:
|
||||||
|
if l not in outlines:
|
||||||
|
outlines.append(l)
|
||||||
|
|
||||||
|
|
||||||
|
with open(f+".dupless", "w") as outfile:
|
||||||
|
outfile.writelines(outlines)
|
||||||
|
|
@@ -1,3 +1,4 @@
|
|||||||
|
:
|
||||||
r
|
r
|
||||||
T1
|
T1
|
||||||
T2
|
T2
|
||||||
|
Reference in New Issue
Block a user