\n"; ############ HTML Header ############ open(QQ,"$pot"); @john=\n"; exit; } ############ HTML Bottom ############ ############ 辞書用出力 ############ sub dictionary { if ($choise eq "2" || $choise eq "4"){ foreach $pass (@pass) { @getid = split(/\:/,$pass); $id = $getid[0]; push @dic,"$id\n"; } } foreach $john (@john) { ($john1,$password)=split(/\:/,$john); chomp($password); push @dic,"$password\n"; } open(ZZ,">$fordic"); #辞書作成 @sorted_dic = sort @dic; #sortする $dic_num = @dic; print "$dic_num個の単語を記録しました\n"; print ZZ @sorted_dic; close(ZZ); } sub dictionary2 { foreach $pass (@pass) { @getid = split(/\:/,$pass); $id = $getid[0]; $pass1 = $getid[1]; if ($choise eq "6" || $choise eq "8"){push @dic,"$id\n";} foreach $john (@john) { ($john1,$password)=split(/\:/,$john); if ($john1 eq $pass1){ chomp($pass); chomp($password); push @dic,"$password\n"; #マッチしたら記録する if ($choise eq "5" || $choise eq "6"){push @dec,"$id/$password\n";} } } } open(ZZ,">$fordic"); #辞書作成 @sorted_dic = sort @dic; #sortする $dic_num = @dic; print "$dic_num個の単語を記録しました\n"; print ZZ @sorted_dic; close(ZZ); if ($choise eq "5" || $choise eq "6"){ open(DB,">$crack"); #リスト作成 $id_num = @pass; $pass_num = @dec; #総数とhitした数 $hit = substr (($pass_num/$id_num*100),0,4); #hit確率 print DB "$url\n\n"; print DB "総数 $id_num \/ hit数 $pass_num \/ hit確率 $hit\%\n\n\n"; print "総数 $id_num \/ hit数 $pass_num \/ hit確率 $hit\%\n\n\n"; print DB "ID/PASS\n\n"; @sorted_dec = sort @dec; #sortする print DB @sorted_dec; close(DB); } } ############ 辞書用出力 ############; close(QQ); open(DB,"$p_file"); @pass= ; close(DB); if ($choise eq "1" || $choise eq "2"){ &dictionary;} elsif ($choise eq "3" || $choise eq "4"){ &dictionary; &htmlend;} elsif ($choise eq "5" || $choise eq "6" || $choise eq "7" || $choise eq "8"){ &dictionary2; &htmlend;} foreach $john (@john) { ($john1,$password)=split(/\:/,$john); foreach $pass (@pass) { @getid = split(/\:/,$pass); $id = $getid[0]; $pass1 = $getid[1]; if ($john1 eq $pass1){ chomp($pass); chomp($password); push @dec,"$id/$password\n"; #マッチしたら記録する } } } ############ HTML Body ############ open(DB,">$crack"); #リスト作成 $id_num = @pass; $pass_num = @dec; #総数とhitした数 $hit = substr (($pass_num/$id_num*100),0,4); #hit確率 print DB "$url\n\n"; print DB "総数 $id_num \/ hit数 $pass_num \/ hit確率 $hit\%\n\n\n"; print "総数 $id_num \/ hit数 $pass_num \/ hit確率 $hit\%\n\n\n"; print DB "ID/PASS\n\n"; @sorted_dec = sort @dec; #sortする print DB @sorted_dec; close(DB); &htmlend; ############ HTML Body ############ exit; ######################## sub routine ######################## ############ HTML Bottom ############ sub htmlend{ print "end \n"; print "
written by 2代目怒羅絵悶