jonsmith1982 has asked for the wisdom of the Perl Monks concerning the following question:
the output is...#!/usr/bin/perl -w use strict; use Digest::Perl::MD5 'md5_hex'; my $list = "mil-dic.txt" ; #wordlist my $cmd = 'jonsmith'; # hash to crack getmd5(); sub getmd5 { open (F, $list) || die ("\nCan not open file !"); my @md5 = <F>; close(F); print "\nBruteforcing... please wait.\n\n"; foreach my $md5 (@md5) { chomp $md5; #print $md5."\n"; AddTo($md5); } } sub AddTo { my $check = shift; my $match_1 = md5_hex $check ; my $match_2 = md5_hex $cmd; if ($check =~ $cmd) { print $match_1."\n"; print $check."\n\n"; print $match_2."\n"; print $cmd."\n\n"; } exit(0); if ($match_1 =~ $match_2) { print "\nFound !\t[$check]\n\n"; open (A, ">>found.txt") || die ("\nCan not open file to write to !\ +n"); print A "[$match_2] : [$check]\n"; close(A); } }
as you can see the two dont match.Bruteforcing... please wait. b2ce97ce53eddef748a19dd6d09c9033 jonsmith 146ecb91572c5330c7d750ed29811a38 jonsmith
2006-10-10 Retitled by Arunbear, as per Monastery guidelines
Original title: 'md5_hex'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: md5_hex gives different values for same string
by davidrw (Prior) on Oct 10, 2006 at 13:33 UTC | |
|
Re: md5_hex gives different values for same string
by monarch (Priest) on Oct 10, 2006 at 13:02 UTC | |
by jonsmith1982 (Beadle) on Oct 10, 2006 at 13:13 UTC | |
by monarch (Priest) on Oct 10, 2006 at 13:26 UTC | |
by jonsmith1982 (Beadle) on Oct 10, 2006 at 13:55 UTC | |
by Anonymous Monk on Oct 10, 2006 at 13:29 UTC | |
|
Re: md5_hex gives different values for same string
by Persib (Acolyte) on Oct 10, 2006 at 13:46 UTC | |
by lyklev (Pilgrim) on Oct 10, 2006 at 22:00 UTC | |
|
Re: md5_hex gives different values for same string
by Anonymous Monk on Oct 10, 2006 at 13:26 UTC |