M-A

Plugin Generater

M-A
Nov 23rd, 2013
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.87 KB | None | 0 0
  1. #!/usr/bin/perl
  2. # by Mr_AnarShi-T
  3.  
  4. use WWW::Mechanize;
  5. use strict;
  6. no warnings;
  7.  
  8. print "[*] Do you Want to Generate plugin list [Y/N] : ";
  9. my $reponse = <>;
  10. chomp ($reponse);
  11. if ($reponse eq 'Y'){
  12. print"\n\n[*] Generating plugins plz wait ...";
  13. &Makelist;
  14. }
  15. else {if ($reponse eq 'N'){
  16. print"\n[*] Ok! As you like ;)\n\n";
  17. exit;
  18. } }
  19. sub Makelist {
  20.         print"\n[*] Ok! Enter Plugins output : ";
  21.         my $output = <>;
  22.         chomp ($output);
  23.         my $ex = WWW::Mechanize->new();
  24.         $ex->get('http://plugins.svn.wordpress.org/');
  25.         my @plugins;
  26.         @plugins = $ex->links;
  27.         my $del = scalar(@plugins);
  28.         delete $plugins[$del-1];
  29.         open(FF, ">>$output") || die($!);
  30.         print FF $_->text."\n" foreach(@plugins);
  31.         close(FF);
  32.         $del--;
  33.         print '[+] '.$del.' Saved plugins in '.$output."\n";
  34. }
Advertisement
Add Comment
Please, Sign In to add comment