标签:密码
一名安全研究员发布了一份包含1000万条记录的用户名、密码文件。原文可见:$ wc -l 10-million-combos.txt 10000000 10-million-combos.txt共有两列,分别是username、password
$ head 10-million-combos.txt 0000 00000000 0000 00001 0000 00001111 0000 000099 0000 00009999 0000 0000w 0000 5927499 0000 634252 0000 6911703 0000 701068出现最多的100个username:
$ cat 10-million-combos.txt | awk '{print $2}' | tr 'A-Z' 'a-z' | sort | uniq -c | sort -nr | head -100 | awk '{print $2"\t"$1}' > top_100_username $ head top_100_username info 3044 admin 2119 michael 1323 robert 1113 2000 1095 john 1049 david 1041 null 967 richard 940 thomas 922按照出现频次,使用http://worditout.com/ 作出标签图:
$ cat 10-million-combos.txt | awk '{print $2}' | tr 'A-Z' 'a-z' | sort | uniq -c | sort -nr | head -100 | awk '{print $2"\t"$1}' > top_100_password $ head top_100_password 123456 55893 password20785 1234567813582 qwerty 13230 1234567811696 12345 10938 1234 6432 111111 5682 1234567 4796 dragon 4191使用http://worditout.com/ 作出标签图:
$ cat top_password | awk '{sum+=$2} END {print sum/1e7 * 100}' 3.34714就有3%的概率登录成功。
$ cat 10-million-combos.txt |tr 'A-Z' 'a-z' | awk '{print $1}' | grep 'michael' | wc -l 8132下面看看username是michael,密码中还有michael的次数:
$ cat 10-million-combos.txt | tr 'A-Z' 'a-z' | awk '$1=="michael" {print $2}' | grep 'michael' | wc -l 23
$ cat 10-million-combos.txt | tr 'A-Z' 'a-z' | awk '$1=="admin" {print $2}' | sort | uniq -c |sort -nr | head 1 zzzz 1 zzzsecurityzzz 1 zzzsecu1 1 zykova33173 1 zxzz
标签:密码
原文地址:http://blog.csdn.net/laozhaokun/article/details/44106171