WordPress and Joomla!
  1. ------------------------------------------------------------
------------------------------------------------------------

Joomla!


jhrccondoshare.com
jhrccond

Joomla! Version Info:
https://docs.joomla.org/What_version_of_Joomla!_should_you_use

Joomla 1.5 to 3.x Step by Step Migration
https://docs.joomla.org/Joomla_1.5_to_3.x_Step_by_Step_Migration

Joomla 2.5 to 3.x Step by Step Migration
https://docs.joomla.org/Joomla_2.5_to_3.x_Step_by_Step_Migration

Fee-based Joomla Migrations:
http://joomlabird.com/joomla-3.4-upgrade-migration/

http://www.joomlageeks.com/joomla/joomla-upgrade/
 
FIND JOOMLA SITES:
find /home/*/public_html/ -type f \( -iwholename '*/libraries/joomla/version.php' -o -iwholename '*/libraries/cms/version.php' -o -iwholename '*/libraries/cms/version/version.php' -o -iwholename '*/libraries/src/Version.php' \) -print0 -exec perl -e 'while (<>) { $release = $1 if m/ \$RELEASE\s+= .([\d.]+).;/; $dev = $1 if m/ \$DEV_LEVEL\s+= .(\d+).;/; } print qq( = $release.$dev\n);' {} \;
 
------------------------------------------------------------
------------------------------------------------------------ 
 
 
WordPress
 
 --- GET WORDPRESS VERSIONS ON MACHINE ---
find /home/*/public_html/ -type f -iwholename "*/wp-includes/version.php" -exec grep -H "\$wp_version =" {} \;
 
------------------------------------------------------------ 
 
wp-login.php  hits
 
COUNT:
cat /usr/local/apache/domlogs/michaelt/blog.wyorock.com | grep "wp-login.php" | wc -l [32]
cat /usr/local/apache/domlogs/michaelt/blog.wyorock.com | grep "POST .*wp-login.php" | wc -l [7]

LIST:
grep 'wp-login.php' /usr/local/apache/domlogs/michaelt/blog.wyorock.com
grep "POST .*wp-login.php" /usr/local/apache/domlogs/michaelt/blog.wyorock.com

LIST THE OFFENDING IPs:
egrep "POST .*wp-login.php" /usr/local/apache/domlogs/michaelt/blog.wyorock.com | awk '{print $1,$4,$5,$6,$7,substr($0, index($0,$12))}' | awk '{print $1}' | sort -n | uniq -c | sort -n | sed 's/[ ]*//'

LIST THE OFFENDING IPs AND MAIL THE RESULTS:
egrep "POST .*wp-login.php" /usr/local/apache/domlogs/michaelt/blog.wyorock.com | awk '{print $1,$4,$5,$6,$7,substr($0, index($0,$12))}' | awk '{print $1}' | sort -n | uniq -c | sort -n | sed 's/[ ]*//' | mail -s "Report" michael@wyoming.com
 
.....................
 
EXAMPLE PROCESS:

grep 'landerwy' /usr/local/apache/logs/error_log

cat /usr/local/apache/domlogs/landerwy/landerwyoming.org | grep "POST .*wp-login.php" | wc -l

cat /usr/local/apache/domlogs/landerwy/landerwyoming.org | grep "POST .*wp-login.php" | tail

egrep "POST .*wp-login.php" /usr/local/apache/domlogs/landerwy/landerwyoming.org | awk '{print $1,$4,$5,$6,$7,substr($0, index($0,$12))}' | awk '{print $1}' | sort -n | uniq -c | sort -n | sed 's/[ ]*//'

With shell grouping construct to prepend title and send mail:
egrep "POST .*wp-login.php" /usr/local/apache/domlogs/landerwy/landerwyoming.org | awk '{print $1,$4,$5,$6,$7,substr($0, index($0,$12))}' | awk '{print $1}' | sort -n | uniq -c | sort -n | { printf 'Attempted Logins to wp-login.php: \n'; sed 's/[ ]*//'; } | mail -s "Report" michael@wyoming.com

.....................
 
 
 
------------------------------------------------------------
------------------------------------------------------------