已知下面的字符串是經過RANDOM隨機數變量md5 sum|sut -c 1-8 截取後的結果bash
請破解這些字符串對應的md5sum前的RANDOM對應數字?ide
210292993d
00205d1cmd5
a3da1677字符串
1f6d12ddit
890684dclass
答案:變量
#!/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