1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 | #!usr/bin/perl #Finder Pass 0.3 #Coded By pr0xXx0r use LWP::UserAgent; my $nave = LWP::UserAgent->new; $nave->agent( "Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.8.1.12) Gecko/20080201Firefox/2.0.0.12" ); $nave->timeout(5); menu(); sub menu { head(); print "<ul class="bbc_list"><li type="square"> Option : ";[/li][/list] chomp( my $op = <stdin> ); if ( $op eq "1" ) { print "\n\n</li><li type="square"> Hash : ";[/li][/list] chomp( my $ha = <stdin> ); if ( ver_length($ha) ) { print "\n\n</li><li type="square"> Cracking Hash...\n";[/li][/list] my $re = crackit($ha); unless ( $re =~ /false01/ ) { print "\n</li><li type="square"> Cracked : $re\n\n";[/li][/list] savefile( "hashes-found.txt", $ha . ":" . $re ); } else { print "\n[-] Not Found\n\n"; } } else { print "\n\n[-] Hash invalid\n\n"; } print "\n</li><li type="square"> Finished";[/li][/list] <stdin>; menu(); } if ( $op eq "2" ) { print "\n\n</li><li type="square"> Wordlist : ";[/li][/list] chomp( my $fi = <stdin> ); if ( -f $fi ) { print "\n\n</li><li type="square"> Opening File\n";[/li][/list] open( WORD, $fi ); my @varios = <WORD>; close WORD; my @varios = repes(@varios); print "</li><li type="square"> Hashes Found : " . int(@varios);[/li][/list] print "\n\n</li><li type="square"> Cracking hashes...\n\n";[/li][/list] for $hash (@varios) { chomp $hash; if ( ver_length($hash) ) { my $re = crackit($hash); unless ( $re =~ /false01/ ) { print "</li><li type="square"> $hash : $re\n";[/li][/list] savefile( "hashes-found.txt", $hash . ":" . $re ); } } } } else { print "\n\n[-] File Not Found\n\n"; } print "\n</li><li type="square"> Finished";[/li][/list] <stdin>; menu(); } if ( $op eq "3" ) { copyright(); } } sub crackit { my $target = shift; chomp $target; my %hash = ( 'http://md5.hashcracking.com/search.php?md5=' => { 'tipo' => 'get', 'regex' => "Cleartext of $target is (.*)", }, 'http://www.hashchecker.com/index.php?_sls=search_hash' => { 'variables' => { 'search_field' => $target, 'Submit' => 'search' }, 'regex' => "<td><li>Your md5 hash is :<br><li>$target is <b>(.*)<\/b>", }, 'http://md5.rednoize.com/?q=' => { 'tipo' => 'get', 'regex' => "<div id=\"result\" >(.*)<\/div>" }, 'http://md52.altervista.org/index.php?md5=' => { 'tipo' => 'get', 'regex' => "<br>Password: <font color=\"Red\">(.*)<\/font><\/b>" } ); for my $data ( keys %hash ) { if ( $hash{$data}{tipo} eq "get" ) { $code = toma( $data . $target ); if ( $code =~ /$hash{$data}{regex}/ig ) { my $found = $1; unless ( $found =~ /\[Non Trovata\]/ ) { return $found; last; } } } else { $code = tomar( $data, $hash{$data}{variables} ); if ( $code =~ /$hash{$data}{regex}/ig ) { my $found = $1; return $found; last; } } } return "false01"; } sub copyright { print "\n\n(C) Doddy Hackman 2012\n"; <stdin>; exit(1); } sub head { print qq( ########## ######### ######### ##### # ### ### # # # ## # # # # # # # # # # # # # # # # ## # # # # # # # # # # # # ### # # # # # # ### ### ### # # ## ## # # # # # # # # # # # ##### # # # # # ## # # # # # # # # # # # # # ### ###### # ##### ######## # ### ### ###### ### [++] Options </li><li type="square"> 1 : Hash[/li] </li><li type="square"> 2 : File with hashes[/li] </li><li type="square"> 3 : Exit [/li][/list] ); } sub savefile { open( SAVE, ">>" . $_[0] ); print SAVE $_[1] . "\n"; close SAVE; } sub repes { my @limpio; foreach $test (@_) { push @limpio, $test unless $repe{$test}++; } return @limpio; } sub ver_length { return true if length( $_[0] ) == 32; } sub toma { return $nave->get( $_[0] )->content; } sub tomar { my ( $web, $var ) = @_; return $nave->post( $web, [ %{$var} ] )->content; } #The End ? |
[Perl] Finder Pass 0.3
La nueva version de un programa que habia hecho para crackear hashes md5 mediante paginas online.
Suscribirse a:
Enviar comentarios
0 comentarios: sobre [Perl] Finder Pass 0.3
Publicar un comentario para [Perl] Finder Pass 0.3