Version Description
Download this release
Release Info
Developer | hallsofmontezuma |
Plugin | Acunetix WP Security |
Version | 2.2.42 |
Comparing to | |
See all releases |
Code changes from version 2.2.41 to 2.2.42
- functions.php +45 -0
- readme.txt +10 -2
- securityscan.php +15 -10
- support.php +0 -2
functions.php
CHANGED
@@ -76,3 +76,48 @@ function mrt_get_serverinfo() {
|
|
76 |
<?php
|
77 |
}
|
78 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
<?php
|
77 |
}
|
78 |
?>
|
79 |
+
|
80 |
+
|
81 |
+
<?php
|
82 |
+
function mrt_check_table_prefix(){
|
83 |
+
if($GLOBALS['table_prefix']=='wp_'){
|
84 |
+
echo '<font color="red">Your table prefix should not be <i>wp_</i>. Please <a href="' . ABSPATH . '/wp-admin/admin.php?page=database">click here</a> to change it.</font><br />';
|
85 |
+
}else{
|
86 |
+
echo '<font color="green">Your table prefix is not <i>wp_</i>.</font><br />';
|
87 |
+
}
|
88 |
+
}
|
89 |
+
|
90 |
+
function mrt_errorsoff(){
|
91 |
+
echo '<font color="green">WordPress DB Errors turned off</font><br />';
|
92 |
+
}
|
93 |
+
|
94 |
+
function mrt_wpdberrors()
|
95 |
+
{
|
96 |
+
global $wpdb;
|
97 |
+
$wpdb->show_errors = false;
|
98 |
+
|
99 |
+
}
|
100 |
+
|
101 |
+
function mrt_version_removal(){
|
102 |
+
echo '<font color="green">Your WordPress version is successfully hidden</font><br />';
|
103 |
+
}
|
104 |
+
|
105 |
+
function mrt_remove_wp_version()
|
106 |
+
{
|
107 |
+
if (!is_admin()) {
|
108 |
+
global $wp_version;
|
109 |
+
$wp_version = '';
|
110 |
+
}
|
111 |
+
|
112 |
+
}
|
113 |
+
|
114 |
+
function mrt_check_version(){
|
115 |
+
echo "WordPress Version: ";
|
116 |
+
global $wp_version;
|
117 |
+
if ($wp_version == 2.5) $g2k5 = '<font color="green">You have the latest stable version of WordPress.</font><br />';
|
118 |
+
if ($wp_version < 2.5) $g2k5 = '<font color="red">You need version 2.5. Please <a href="http://wordpress.org/download/">upgrade</a> immediately.</font><br />';
|
119 |
+
echo "<b>" . $wp_version . "</b>   " ;echo $g2k5;
|
120 |
+
}
|
121 |
+
|
122 |
+
?>
|
123 |
+
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://semperfiwebdesign.com
|
|
4 |
Tags: security, securityscan, chmod, permissions
|
5 |
Requires at least: 2.0
|
6 |
Tested up to: 2.5
|
7 |
-
Stable tag: 2.2.
|
8 |
|
9 |
Scans your WordPress installation for security vulnerabilities.
|
10 |
|
@@ -15,7 +15,8 @@ corrective actions.
|
|
15 |
|
16 |
-passwords<br />
|
17 |
-file permissions<br />
|
18 |
-
-database security
|
|
|
19 |
|
20 |
**Future Releases**
|
21 |
|
@@ -45,6 +46,13 @@ directions.
|
|
45 |
|
46 |
For more information, please visit http://codex.wordpress.org/Changing_File_Permissions
|
47 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
== Screenshots ==
|
49 |
|
50 |
1. file/directories permissions check
|
4 |
Tags: security, securityscan, chmod, permissions
|
5 |
Requires at least: 2.0
|
6 |
Tested up to: 2.5
|
7 |
+
Stable tag: 2.2.42
|
8 |
|
9 |
Scans your WordPress installation for security vulnerabilities.
|
10 |
|
15 |
|
16 |
-passwords<br />
|
17 |
-file permissions<br />
|
18 |
+
-database security<br />
|
19 |
+
-version hiding
|
20 |
|
21 |
**Future Releases**
|
22 |
|
46 |
|
47 |
For more information, please visit http://codex.wordpress.org/Changing_File_Permissions
|
48 |
|
49 |
+
= Why do I need to hide my version of WordPress? =
|
50 |
+
|
51 |
+
Alot of attackers and automated tools will try and determine software versions
|
52 |
+
before launching exploit code. Removing your WordPress blog version may
|
53 |
+
discourage some attackers and certainly will mitigate virus and worm programs
|
54 |
+
that rely on software versions.
|
55 |
+
|
56 |
== Screenshots ==
|
57 |
|
58 |
1. file/directories permissions check
|
securityscan.php
CHANGED
@@ -4,15 +4,20 @@ Plugin Name: WP Security Scan
|
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/wp-security-scan/
|
5 |
Description: Perform security scan of WordPress installation.
|
6 |
Author: Michael Torbert
|
7 |
-
Version: 2.2.
|
8 |
Author URI: http://semperfiwebdesign.com/
|
9 |
*/
|
10 |
require_once(ABSPATH."wp-content/plugins/wp-security-scan/support.php");
|
11 |
require_once(ABSPATH."wp-content/plugins/wp-security-scan/scanner.php");
|
12 |
require_once(ABSPATH."wp-content/plugins/wp-security-scan/password_tools.php");
|
13 |
require_once(ABSPATH."wp-content/plugins/wp-security-scan/database.php");
|
|
|
|
|
14 |
|
|
|
|
|
15 |
add_action('admin_menu', 'add_men_pg');
|
|
|
16 |
function add_men_pg() {
|
17 |
if (function_exists('add_menu_page')){
|
18 |
add_menu_page('Security', 'Security', 8, __FILE__, 'mrt_opt_mng_pg');
|
@@ -20,9 +25,7 @@ add_submenu_page(__FILE__, 'Scanner', 'Scanner', 8, 'scanner', 'mrt_sub0');
|
|
20 |
add_submenu_page(__FILE__, 'Password Tool', 'Password Tool', 8, 'passwordtool', 'mrt_sub1');
|
21 |
add_submenu_page(__FILE__, 'Database', 'Database', 8, 'database', 'mrt_sub3');
|
22 |
add_submenu_page(__FILE__, 'Support', 'Support', 8, 'support', 'mrt_sub2');
|
23 |
-
|
24 |
-
}
|
25 |
-
}
|
26 |
|
27 |
function mrt_opt_mng_pg() {
|
28 |
?>
|
@@ -34,16 +37,18 @@ function mrt_opt_mng_pg() {
|
|
34 |
<div>
|
35 |
<!-- <div id="message" class="updated fade"><p></p></div>-->
|
36 |
<br /><div style="float: left;width: 600px; height: 410px;border: 1px solid #999;margin: 0 15px 15px 0;padding: 5px;">
|
|
|
37 |
<?php
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
|
|
43 |
<br /><br />
|
44 |
<hr align=center size=2 width=500px>
|
45 |
<br /><br />
|
46 |
-
<
|
47 |
<ul><li>one-click change file/folder permissions</li><li>test for XSS vulnerabilities</li></ul>
|
48 |
</div>
|
49 |
<div style="float: left; height: 410;border: 1px solid #999;margin: 0 15px 15px 0;padding: 5px;">
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/wp-security-scan/
|
5 |
Description: Perform security scan of WordPress installation.
|
6 |
Author: Michael Torbert
|
7 |
+
Version: 2.2.42
|
8 |
Author URI: http://semperfiwebdesign.com/
|
9 |
*/
|
10 |
require_once(ABSPATH."wp-content/plugins/wp-security-scan/support.php");
|
11 |
require_once(ABSPATH."wp-content/plugins/wp-security-scan/scanner.php");
|
12 |
require_once(ABSPATH."wp-content/plugins/wp-security-scan/password_tools.php");
|
13 |
require_once(ABSPATH."wp-content/plugins/wp-security-scan/database.php");
|
14 |
+
require_once(ABSPATH."wp-content/plugins/wp-security-scan/functions.php");
|
15 |
+
require_once(ABSPATH."wp-content/plugins/wp-security-scan/scripts.js");
|
16 |
|
17 |
+
add_action("init",mrt_wpdberrors,1);
|
18 |
+
add_action("parse_query",mrt_wpdberrors,1);
|
19 |
add_action('admin_menu', 'add_men_pg');
|
20 |
+
add_action("init",mrt_remove_wp_version,1);
|
21 |
function add_men_pg() {
|
22 |
if (function_exists('add_menu_page')){
|
23 |
add_menu_page('Security', 'Security', 8, __FILE__, 'mrt_opt_mng_pg');
|
25 |
add_submenu_page(__FILE__, 'Password Tool', 'Password Tool', 8, 'passwordtool', 'mrt_sub1');
|
26 |
add_submenu_page(__FILE__, 'Database', 'Database', 8, 'database', 'mrt_sub3');
|
27 |
add_submenu_page(__FILE__, 'Support', 'Support', 8, 'support', 'mrt_sub2');
|
28 |
+
}}
|
|
|
|
|
29 |
|
30 |
function mrt_opt_mng_pg() {
|
31 |
?>
|
37 |
<div>
|
38 |
<!-- <div id="message" class="updated fade"><p></p></div>-->
|
39 |
<br /><div style="float: left;width: 600px; height: 410px;border: 1px solid #999;margin: 0 15px 15px 0;padding: 5px;">
|
40 |
+
<div width=600px style="text-align:center;font-weight:bold;"><h3>Initial Scan</h3></div>
|
41 |
<?php
|
42 |
+
mrt_check_version();
|
43 |
+
mrt_check_table_prefix();
|
44 |
+
mrt_version_removal();
|
45 |
+
mrt_errorsoff();
|
46 |
+
?>
|
47 |
+
|
48 |
<br /><br />
|
49 |
<hr align=center size=2 width=500px>
|
50 |
<br /><br />
|
51 |
+
<div width=600px style="text-align:center;font-weight:bold;"><h3>Future Releases</h3></div>
|
52 |
<ul><li>one-click change file/folder permissions</li><li>test for XSS vulnerabilities</li></ul>
|
53 |
</div>
|
54 |
<div style="float: left; height: 410;border: 1px solid #999;margin: 0 15px 15px 0;padding: 5px;">
|
support.php
CHANGED
@@ -1,6 +1,4 @@
|
|
1 |
<?php
|
2 |
-
require_once(ABSPATH."wp-content/plugins/wp-security-scan/functions.php");
|
3 |
-
require_once(ABSPATH."wp-content/plugins/wp-security-scan/scripts.js");
|
4 |
|
5 |
function mrt_sub2(){
|
6 |
?>
|
1 |
<?php
|
|
|
|
|
2 |
|
3 |
function mrt_sub2(){
|
4 |
?>
|