Jump to content
Fi8sVrs

WP Grab Info v2

Recommended Posts

  • Active Members

╔═══════════════════════════ ஜ۩☆۩ஜ ══════════════════════════╗

                                   WP Grab Info v2

╚═══════════════════════════ ஜ۩☆۩ஜ ══════════════════════════╝

 

Features:

  • Detect User
  • Detect Version
  • Detect Theme
  • Detect Plugins
Usage:
perl WP-Grab.pl -u http://website.com/

687474703a2f2f692e696d6775722e636f6d2f69

 

#!/usr/bin/perl

#WordPress Grab Info
#Coded By Mohamed Riahi 08/20/2017
#don't Change my Fucking Rights

#[Detect User]
#[Detect Version]    
#[Detect Theme]  
#[Detect Plugins]

use LWP::UserAgent;
use Term::ANSIColor;
use HTTP::Request::Common qw(GET);
use URI::URL;
use Getopt::Long;
$ua = LWP::UserAgent->new(keep_alive => 1);
$ua->agent("Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.63 Safari/537.31");
$ua->timeout (10);

GetOptions(
	"u=s" => \$site,
);

unless ($site) { help(); }
if ($site) { banner(); }



sub banner() {
print q(
           ____                      ,
          /---.'.__             ____//
               '--.\           /.---'
          _______  \\         //
        /.------.\  \|      .'/  ______
       //  ___  \ \ ||/|\  //  _/_----.\__
      |/  /.-.\  \ \:|< >|// _/.'..\   '--'
         //   \'. | \'.|.'/ /_/ /  \\
        //     \ \_\/" ' ~\-'.-'    \\
       //       '-._| :H: |'-.__     \\
      //           {/'==='\}'-._\     ||
      ||                        \\    \|
      ||                         \\    '
      |/                          \\
                                   ||
        WP Grab Info v2            ||
     Coded BY Mohamed Riahi        \\
                                    '
);
print "  [+] $site\n";
user();
Version();
Theme();
Plugin();
}

sub help() {
print " Usage: perl WP-Grab.pl -u http://website.com/";
}
#################### GET USER ####################
sub user(){
$user = $site . '/?author=1';

$getuser = $ua->get($user)->content;
if($getuser =~/author\/(.*?)\//){
print "  [-] User: $1\n";
}else{
print "  [-] Can't Get Username\n";
}
}

#################### GET VERSION ####################
sub Version(){
$getversion = $ua->get($site)->content;
if($getversion =~/content="WordPress (.*?)"/) {
print "  [-] Version: $1\n";
}else{
print "  [-] Can't Get Version\n";
}
}

#################### GET THEME ####################
sub Theme(){
$getheme = $ua->get($site)->content;
if($getheme =~/\/themes\/(.*?)\//){
print "  [-] Theme: $1\n";
}else{
print "  [-] Can't Get Theme\n";
}
}

#################### GET PLUGINs ####################
sub Plugin(){
$getplugin = $ua->get($site)->content;

my %seen;
while($getplugin =~m/\/wp-content\/plugins\/(.*?)\//g){ 
  $plu=$1;
  next if $seen{$plu}++; # already seen
  print "  [-] Plugin: $plu \n";
}
}

 

Download mirror: WP-Grab-Info-master.zip

Source: https://github.com/Moham3dRiahi/WP-Grab-Info

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...