import
os
import
threading
import
datetime
chrs
=
'0123456789'
AesPreffix
=
''
a
=
b
=
c
=
d
=
''
AesPreffixS
=
[]
starttime
=
datetime.datetime.now()
threads
=
[]
class
Getoutofloop(Exception):
pass
def
runsc(AesPreffix):
cmd
=
os.popen(
'NoLimit.exe '
+
AesPreffix)
result
=
cmd.read()
print
(
"result:"
+
result)
if
'success'
in
result:
print
(
'AesPreffix is '
+
AesPreffix)
AesPreffixS.append(AesPreffix)
for
a
in
chrs:
AesPreffix
+
=
a
for
b
in
chrs:
AesPreffix
+
=
b
for
c
in
chrs:
AesPreffix
+
=
c
for
d
in
chrs:
AesPreffix
+
=
d
t
=
threading.Thread(target
=
runsc, args
=
(AesPreffix,))
threads.append(t)
t.start()
AesPreffix
=
AesPreffix[:
-
1
]
AesPreffix
=
AesPreffix[:
-
1
]
AesPreffix
=
AesPreffix[:
-
1
]
AesPreffix
=
AesPreffix[:
-
1
]
for
t
in
threads:
t.join(
2
)
os.system(
'taskkill /f /im %s'
%
'NoLimit.exe'
)
str
=
''
lastresult
=
[]
try
:
for
p
in
AesPreffixS:
for
i
in
range
(
0
,
4
):
a
=
p[i]
for
j
in
range
(
0
,
4
):
if
j
=
=
i :
continue
b
=
p[j]
for
k
in
range
(
0
,
4
):
if
k
=
=
j
or
k
=
=
i:
continue
c
=
p[k]
for
l
in
range
(
0
,
4
):
if
l
=
=
k
or
l
=
=
j
or
l
=
=
i:
continue
d
=
p[l]
str
=
a
+
b
+
c
+
d
num
=
ord
(
str
[
0
])
+
ord
(
str
[
1
])
if
num
=
=
ord
(
str
[
2
])
+
ord
(
str
[
3
])
and
num
=
=
ord
(
str
[
0
])
+
ord
(
str
[
2
])
and
num
=
=
ord
(
str
[
1
])
+
ord
(
str
[
3
]):
if
p
not
in
lastresult:
lastresult.append(p)
break
;
except
Getoutofloop:
pass
print
(
'AesPreffix:'
)
print
(lastresult)
endtime
=
datetime.datetime.now()
print
(
'time:%ds'
%
(endtime
-
starttime).seconds )