已知下面的字符串是通过RANDOM随机数变量md5 sum|sut -c 1-8 截取后的结果
请破解这些字符串对应的md5sum前的RANDOM对应数字?
21029299
00205d1c
a3da1677
1f6d12dd
890684d
答案:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/bash
mima=(
21029299
00205d1c
a3da1677
1f6d12dd
890684d
)
for
i
in
{1..32767}
do
name=`
echo
$i|md5sum|
cut
-c -8`
for
n
in
${mima[*]}
do
if
[
"$name"
==
"$n"
]
then
echo
"$i match $n"
fi
done
done
|
本文转自 baishuchao 51CTO博客,原文链接:http://blog.51cto.com/baishuchao/1979885