Version Description
Download this release
Release Info
Developer | hallsofmontezuma |
Plugin | Acunetix WP Security |
Version | 2.2.3.9.1 |
Comparing to | |
See all releases |
Code changes from version 2.2.3.9 to 2.2.3.9.1
- menu.php +0 -117
- password_tools.php +21 -0
- readme.txt +1 -1
- scanner.php +29 -0
- securityscan.php +11 -22
- support.php +16 -0
menu.php
DELETED
@@ -1,117 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
require_once(ABSPATH."wp-content/plugins/wp-security-scan/functions.php");
|
4 |
-
require_once(ABSPATH."wp-content/plugins/wp-security-scan/scripts.js");
|
5 |
-
|
6 |
-
|
7 |
-
function mrt_sub0(){?>
|
8 |
-
|
9 |
-
|
10 |
-
<div class=wrap>
|
11 |
-
<h2><?php _e('WP - Security Scan') ?></h2>
|
12 |
-
<div style="height:299px">
|
13 |
-
|
14 |
-
|
15 |
-
<table width="100%" border="0" cellspacing="0" cellpadding="3" style="text-align:center;">
|
16 |
-
<tr>
|
17 |
-
<th style="border:0px;"><b>Name</b></th>
|
18 |
-
<th style="border:0px;"><b>File/Dir</b></th>
|
19 |
-
<th style="border:0px;"><b>Needed Chmod</b></th>
|
20 |
-
<th style="border:0px;"><b>Current Chmod</b></th>
|
21 |
-
<!-- <th style="border:0px;"><b>Change Permissions</b></th>-->
|
22 |
-
</tr>
|
23 |
-
<?php
|
24 |
-
check_perms("root directory","../","0745");
|
25 |
-
check_perms("wp-includes/","../wp-includes","0447");
|
26 |
-
check_perms(".htaccess","../.htaccess","0644");
|
27 |
-
check_perms("wp-admin/index.php","index.php","0644");
|
28 |
-
check_perms("wp-admin/js/","js/","0775");
|
29 |
-
check_perms("wp-content/themes/","../wp-content/themes","0745");
|
30 |
-
check_perms("wp-content/plugins/","../wp-content/plugins","0745");
|
31 |
-
check_perms("wp-admin/","../wp-admin","0745");
|
32 |
-
check_perms("wp-content/","../wp-content","0745");
|
33 |
-
?>
|
34 |
-
</table>
|
35 |
-
</div>
|
36 |
-
Plugin by <a href="http://semperfiwebdesign.com/" title="Semper Fi Web Design">Semper Fi Web Design</a>
|
37 |
-
</div>
|
38 |
-
|
39 |
-
|
40 |
-
<?}
|
41 |
-
|
42 |
-
|
43 |
-
function mrt_sub1(){
|
44 |
-
?>
|
45 |
-
<div class=wrap>
|
46 |
-
<h2><?php _e('WP - Password Tools') ?></h2>
|
47 |
-
<div style="height:299px">
|
48 |
-
<?php
|
49 |
-
echo "<br /><strong>Password Strength Tool</strong>";
|
50 |
-
?>
|
51 |
-
<table><tr valign=top><td><form name="commandForm">
|
52 |
-
|
53 |
-
Type password: <input type=password size=30 maxlength=50 name=password onkeyup="testPassword(document.forms.commandForm.password.value);" value="">
|
54 |
-
|
55 |
-
<br/><font color="#808080">Minimum 6 Characters</td><td><font size="1"> Password Strength:</font><a id="Words"><table><tr><td><table><tr><td height=4 width=150 bgcolor=tan></td></tr></table></td><td> <b>Begin Typing</b></td></tr></table></a></td></tr></table></td></tr></table>
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
</form>
|
60 |
-
<?php
|
61 |
-
echo "<br /><br /><strong>Strong Password Generator</strong><br />";
|
62 |
-
echo "Strong Password: " . '<font color="red">' . make_password(15) . "</font>";
|
63 |
-
?>
|
64 |
-
|
65 |
-
<?php
|
66 |
-
|
67 |
-
//Check_Password('heythere');
|
68 |
-
/*function Check_Password($password)
|
69 |
-
{
|
70 |
-
//Makes it easy to implement grammar rules.
|
71 |
-
$password_flaws = array();
|
72 |
-
$strlen = strlen($password);
|
73 |
-
if($strlen <= 5)
|
74 |
-
$password_flaws[sizeof($password_flaws)] = "too short";
|
75 |
-
$count_chars = count_chars($password, 3);
|
76 |
-
if(strlen($count_chars) < $strlen / 2)
|
77 |
-
$password_flaws[sizeof($password_flaws)] = "too simple";
|
78 |
-
//The function returns an empty string if the password is "good".
|
79 |
-
$return_string = "";
|
80 |
-
$sizeof = sizeof($password_flaws);
|
81 |
-
for($index = 0; $index < $sizeof; $index++)
|
82 |
-
{
|
83 |
-
if($index == 0)
|
84 |
-
$return_string .= "the password is ";
|
85 |
-
if($index == $sizeof - 1 && $sizeof != 1)
|
86 |
-
$return_string .= " and ";
|
87 |
-
//this is in case i have more than 3 sources of error.
|
88 |
-
if($index != 0 && $index != $sizeof - 1)
|
89 |
-
$return_string .= ", ";
|
90 |
-
$return_string .= $password_flaws[$index];
|
91 |
-
}
|
92 |
-
return($return_string);
|
93 |
-
}
|
94 |
-
*/?>
|
95 |
-
</div>
|
96 |
-
Plugin by <a href="http://semperfiwebdesign.com/" title="Semper Fi Web Design">Semper Fi Web Design</a>
|
97 |
-
</div>
|
98 |
-
<? }
|
99 |
-
|
100 |
-
function mrt_sub2(){
|
101 |
-
?>
|
102 |
-
<div class=wrap>
|
103 |
-
<h2><?php _e('WP - Security Support') ?></h2>
|
104 |
-
<div style="height:299px">
|
105 |
-
<br /><br />support page coming soon...
|
106 |
-
<br /><br /><br />
|
107 |
-
<em>For comments, suggestions, bug reporting, etc email <a href="mailto:michael@semperfiwebdesign.com">michael@semperfiwebdesign.com</a></em>
|
108 |
-
|
109 |
-
|
110 |
-
</div>
|
111 |
-
Plugin by <a href="http://semperfiwebdesign.com/" title="Semper Fi Web Design">Semper Fi Web Design</a>
|
112 |
-
</div>
|
113 |
-
<? }
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
password_tools.php
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
function mrt_sub1(){?>
|
3 |
+
<div class=wrap>
|
4 |
+
<h2><?php _e('WP - Password Tools') ?></h2>
|
5 |
+
<div style="height:299px">
|
6 |
+
<?php
|
7 |
+
echo "<br /><strong>Password Strength Tool</strong>";
|
8 |
+
?>
|
9 |
+
<table><tr valign=top><td><form name="commandForm">
|
10 |
+
Type password: <input type=password size=30 maxlength=50 name=password onkeyup="testPassword(document.forms.commandForm.password.value);" value="">
|
11 |
+
<br/><font color="#808080">Minimum 6 Characters</td><td><font size="1"> Password Strength:</font><a id="Words"><table><tr><td><table><tr><td height=4 width=150 bgcolor=tan></td></tr></table></td><td> <b>Begin Typing</b></td></tr></table></a></td></tr></table></td></tr></table></form>
|
12 |
+
<br /><hr align=left size=2 width=612px>
|
13 |
+
<?php
|
14 |
+
echo "<br /><br /><strong>Strong Password Generator</strong><br />";
|
15 |
+
echo "Strong Password: " . '<font color="red">' . make_password(15) . "</font>";
|
16 |
+
?>
|
17 |
+
</div>
|
18 |
+
Plugin by <a href="http://semperfiwebdesign.com/" title="Semper Fi Web Design">Semper Fi Web Design</a>
|
19 |
+
</div>
|
20 |
+
<? }
|
21 |
+
|
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.3.9
|
8 |
|
9 |
Scans your WordPress installation for security vulnerabilities.
|
10 |
|
4 |
Tags: security, securityscan, chmod, permissions
|
5 |
Requires at least: 2.0
|
6 |
Tested up to: 2.5
|
7 |
+
Stable tag: 2.2.3.9.1
|
8 |
|
9 |
Scans your WordPress installation for security vulnerabilities.
|
10 |
|
scanner.php
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
function mrt_sub0(){?>
|
3 |
+
<div class=wrap>
|
4 |
+
<h2><?php _e('WP - Security Scan') ?></h2>
|
5 |
+
<div style="height:299px">
|
6 |
+
<table width="100%" border="0" cellspacing="0" cellpadding="3" style="text-align:center;">
|
7 |
+
<tr>
|
8 |
+
<th style="border:0px;"><b>Name</b></th>
|
9 |
+
<th style="border:0px;"><b>File/Dir</b></th>
|
10 |
+
<th style="border:0px;"><b>Needed Chmod</b></th>
|
11 |
+
<th style="border:0px;"><b>Current Chmod</b></th>
|
12 |
+
<!-- <th style="border:0px;"><b>Change Permissions</b></th>-->
|
13 |
+
</tr>
|
14 |
+
<?php
|
15 |
+
check_perms("root directory","../","0745");
|
16 |
+
check_perms("wp-includes/","../wp-includes","0447");
|
17 |
+
check_perms(".htaccess","../.htaccess","0644");
|
18 |
+
check_perms("wp-admin/index.php","index.php","0644");
|
19 |
+
check_perms("wp-admin/js/","js/","0775");
|
20 |
+
check_perms("wp-content/themes/","../wp-content/themes","0745");
|
21 |
+
check_perms("wp-content/plugins/","../wp-content/plugins","0745");
|
22 |
+
check_perms("wp-admin/","../wp-admin","0745");
|
23 |
+
check_perms("wp-content/","../wp-content","0745");
|
24 |
+
?>
|
25 |
+
</table>
|
26 |
+
</div>
|
27 |
+
Plugin by <a href="http://semperfiwebdesign.com/" title="Semper Fi Web Design">Semper Fi Web Design</a>
|
28 |
+
</div><?}
|
29 |
+
|
securityscan.php
CHANGED
@@ -4,13 +4,12 @@ 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.3.9
|
8 |
Author URI: http://semperfiwebdesign.com/
|
9 |
*/
|
10 |
-
require_once(ABSPATH."wp-content/plugins/wp-security-scan/
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
|
15 |
add_action('admin_menu', 'add_men_pg');
|
16 |
function add_men_pg() {
|
@@ -19,38 +18,28 @@ add_menu_page('Security', 'Security', 8, __FILE__, 'mrt_opt_mng_pg');
|
|
19 |
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__, 'Support', 'Support', 8, 'support', 'mrt_sub2');
|
22 |
-
|
23 |
-
|
24 |
}
|
25 |
}
|
26 |
|
27 |
function mrt_opt_mng_pg() {
|
28 |
?>
|
29 |
-
|
30 |
<div class=wrap>
|
31 |
<h2><?php _e('WP - Security Admin Tools') ?></h2>
|
32 |
<div style="height:299">
|
33 |
<!-- <div id="message" class="updated fade"><p></p></div>-->
|
34 |
<br /><br /><br />
|
35 |
<?php
|
36 |
-
|
37 |
-
|
38 |
echo "WordPress versions = ";
|
39 |
global $wp_version;
|
40 |
-
if ($wp_version
|
41 |
-
if ($wp_version < 2.
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
<br /><br
|
46 |
<b>Future Releases</b>
|
47 |
-
<ul>
|
48 |
-
<li>one-click change file/folder permissions</li>
|
49 |
-
<li>test for XSS vulnerabilities</li>
|
50 |
-
</ul>
|
51 |
</div>
|
52 |
Plugin by <a href="http://semperfiwebdesign.com/" title="Semper Fi Web Design">Semper Fi Web Design</a>
|
53 |
</div>
|
54 |
-
|
55 |
-
|
56 |
<?php } ?>
|
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.3.9.1
|
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 |
|
14 |
add_action('admin_menu', 'add_men_pg');
|
15 |
function add_men_pg() {
|
18 |
add_submenu_page(__FILE__, 'Scanner', 'Scanner', 8, 'scanner', 'mrt_sub0');
|
19 |
add_submenu_page(__FILE__, 'Password Tool', 'Password Tool', 8, 'passwordtool', 'mrt_sub1');
|
20 |
add_submenu_page(__FILE__, 'Support', 'Support', 8, 'support', 'mrt_sub2');
|
|
|
|
|
21 |
}
|
22 |
}
|
23 |
|
24 |
function mrt_opt_mng_pg() {
|
25 |
?>
|
|
|
26 |
<div class=wrap>
|
27 |
<h2><?php _e('WP - Security Admin Tools') ?></h2>
|
28 |
<div style="height:299">
|
29 |
<!-- <div id="message" class="updated fade"><p></p></div>-->
|
30 |
<br /><br /><br />
|
31 |
<?php
|
|
|
|
|
32 |
echo "WordPress versions = ";
|
33 |
global $wp_version;
|
34 |
+
if ($wp_version == 2.5) $g2k5 = "You have the latest stable version of WordPress.";
|
35 |
+
if ($wp_version < 2.5) $g2k5 = "You need version 2.5. Upgrade immediately for security reasons.";
|
36 |
+
echo "<b>" . $wp_version . "</b>" . "<br />";echo $g2k5;?>
|
37 |
+
<br /><br /><br />
|
38 |
+
<hr align=left size=2 width=612px>
|
39 |
+
<br /><br />
|
40 |
<b>Future Releases</b>
|
41 |
+
<ul><li>one-click change file/folder permissions</li><li>test for XSS vulnerabilities</li></ul>
|
|
|
|
|
|
|
42 |
</div>
|
43 |
Plugin by <a href="http://semperfiwebdesign.com/" title="Semper Fi Web Design">Semper Fi Web Design</a>
|
44 |
</div>
|
|
|
|
|
45 |
<?php } ?>
|
support.php
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
?>
|
7 |
+
<div class=wrap>
|
8 |
+
<h2><?php _e('WP - Security Support') ?></h2>
|
9 |
+
<div style="height:299px">
|
10 |
+
<br /><br />support page coming soon...
|
11 |
+
<br /><br /><br />
|
12 |
+
<em>For comments, suggestions, bug reporting, etc email <a href="mailto:michael@semperfiwebdesign.com">michael@semperfiwebdesign.com</a></em>
|
13 |
+
</div>
|
14 |
+
Plugin by <a href="http://semperfiwebdesign.com/" title="Semper Fi Web Design">Semper Fi Web Design</a>
|
15 |
+
</div>
|
16 |
+
<?}?>
|