已知下面的字符串是通过RANDOM随机数变量md5sum|cut-c 1-8截取后的结果,请破解这些字符串对应的md5sum前的RANDOM对应数字?
21029299
00205d1c
a3da1677
1f6d12dd
脚本如下:
#!/bin/sh
#######################################################
#ShellName:crack random
#Author:zkg
#Created Time:2019-08-29
#Blog Address:https://blog.51cto.com/1009516
#######################################################

#引用系统函数库
. /etc/init.d/functions

#定义数组
md5sumafter=(21029299 00205d1c a3da1677 1f6d12dd)

for randomnum in {0..32767}
do
randommd5sum=echo $randomnum |md5sum|cut -c 1-8
for ((i=0;i<${#md5sumafter[*]};i++))
do
if [ "${md5sumafter[i]}" == "$randommd5sum" ];then
echo -e "$randomnum\t $randommd5sum" >> /opt/shell/random.txt
echo -e "$randomnum\t $randommd5sum"
fi
done
done
action "字符串破解完成!!!" /bin/true