El codigo
Código
#!usr/bin/perl #SMF Manager 0.00001 #Coded By Doddy H #ppm install http://www.bribes.org/perl/ppm/HTML-Strip.ppd use LWP::UserAgent; use HTTP::Cookies; use HTML::Strip; my $nave = LWP::UserAgent->new( cookie_jar => HTTP::Cookies->new(), requests_redirectable => [], timeout => 5, agent => "Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.8.1.12) Gecko/20080201Firefox/2.0.0.12" ); @@@ @ @ @@@@@ @ @ @ @ @ @ @ @ @ @ @@ @@ @ @@ @@ @ @@ @@ @ @@ @@ @@@ @ @@ @@@ @@@@ @@@ @@ @@@ @ @ @ @ @@@@ @ @ @ @ @ @@ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @@@@ @ @ @@@@ @ @ @@@@@ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @@@ @ @ @ @ @ @@@@ @ @ @@@@ @@@@ @@@ @ @ @@@@ ); ## Login my $code = $nave->post( $url . "/index.php?action=login2", { "user" => $usera, "passwrd" => $passa, "cookielength" => "9000", "hash_passwrd" => "", "submit" => "submit" } ); if ( $code->is_redirect ) { #print $code->header('location'),"\n"; } elsif ( $code->is_success ) { } else { } my $code = toma( $url . "/SSI.php?ssi_function=welcome" ); if ( $code =~ /Hola, <strong>(.*)<\/strong>/ ) { my $name = $1; } else { } ## while (1) { if ( $op eq "3" ) { } if ( $op eq "1" ) { @ @ @@@@@ @ @ @ @ @@ @@ @ @ @@ @@ @ @ @ @ @ @ @@@@@ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ ); mps($url); } if ( $op eq "2" ) { @ @ @@ @ @ @@ @ @ @ @ @ @@@ @ @ @@@ @@@@ @@@ @@ @@@ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @@@@ @ @ @@@@@ @ @ @@@@ @ @@@@@ @ @@ @ @ @ @ @ @ @ @ @ @ @ @ @@ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @@@@ @ @@@ @@@@ @@@@ @ @@@ @ @@@@ ); my $chau2 = 0; while ( $chau2 eq 0 ) { if ( $op eq "1" ) { my $code = toma($url); while ( $code =~ /<a class=\"subject\" href=\"(.*?)\" name=(.*?)>(.*?)<\/a>/migs ) { } } else { $chau2 = 1; } } } } #gets_list_mp(); #gets_msg_mp(); #gets_msg_now(); sub mps { my $chau = "0"; my @founds = gets_list_mp($url); while ( $chau eq 0 ) { if ( $op eq "1" ) { gets_msg_mp( $founds[ $op - 1 ] ); } elsif ( $op eq "2" ) { gets_msg_now( $founds[ $n - 1 ], $id ); } else { $chau = 1; } } } sub gets_msg_now { my $url = toma( $_[0] ); my $id = "msg_" . $_[1]; if ( $url =~ /<div class=\"inner\" id=\"$id\">(.*?)<\/div>/mig ) { my $uno = HTML::Strip->new( emit_spaces => 1 ); my $final = $uno->parse($1); $final =~ s/^[\t\f ]+|[\t\f ]+$//mg; } } sub gets_msg_mp { my $url = toma( $_[0] ); my @ids; my @asunto; my @nombre; while ( $url =~ /<td><a href=\"#msg(.*?)\">(.*?)<\/a><\/td>/migs ) { #print "$1 $2\n"; } while ( $url =~ /Ver perfil de (.*?)">/migs ) { #print "$1\n\n"; } for my $num ( 0 .. $total ) { print "[+] ID : " . $ids[$num] . " [+] Asunto : " . $asunto[$num] . " [+] De : " . $nombre[$num] . "\n"; } } sub gets_list_mp { my @paginas; my $code = toma( $url . "/index.php?action=pm" ); while ( $code =~ /<a class="navPages" href="(.*?)">(.*?)<\/a>/migs ) { } my @paginas = repes(@paginas); } sub repes { my @limpio; foreach $test (@_) { } } sub toma { } sub tomar { my ( $web, $var ) = @_; } #The End ?
AVISO : Solo esta probado en el foro