Acunetix WP Security - Version 2.2.3.5

Version Description

Download this release

Release Info

Developer hallsofmontezuma
Plugin Icon wp plugin Acunetix WP Security
Version 2.2.3.5
Comparing to
See all releases

Code changes from version 2.2.3.4 to 2.2.3.5

Files changed (4) hide show
  1. functions.php +14 -0
  2. menu.php +42 -2
  3. readme.txt +1 -1
  4. securityscan.php +16 -44
functions.php CHANGED
@@ -15,6 +15,20 @@ for($i = 0; $i < $password_length; $i ++) {
15
  return $token;
16
  }
17
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
 
19
 
20
  ?>
15
  return $token;
16
  }
17
 
18
+ function check_perms($name,$path,$perm)
19
+ {
20
+ clearstatcache();
21
+ // $configmod = fileperms($path);
22
+ $configmod = substr(sprintf(".%o.", fileperms($path)), -4);
23
+ $trcss = (($configmod != $perm) ? "background-color:#fd7a7a;" : "background-color:#91f587;");
24
+ echo "<tr style=".$trcss.">";
25
+ echo '<td style="border:0px;">' . $name . "</td";
26
+ echo '<td style="border:0px;">'. $path ."</td>";
27
+ echo '<td style="border:0px;">' . $perm . '</td>';
28
+ echo '<td style="border:0px;">' . $configmod . '</td>';
29
+ // echo '<td style="border:0px;">' . '<input type="submit" name="' . $perm . '" value="Change now.">' . '</td>';
30
+ echo "</tr>";
31
+ }
32
 
33
 
34
  ?>
menu.php CHANGED
@@ -4,6 +4,42 @@ 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_sub1(){
8
  ?>
9
  <div class=wrap>
@@ -64,9 +100,13 @@ echo "Strong Password: " . '<font color="red">' . make_password(15) . "</font>";
64
  function mrt_sub2(){
65
  ?>
66
  <div class=wrap>
67
- <h2><?php _e('WP - Security Scan') ?></h2>
68
  <div style="height:299px">
69
- coming soon...
 
 
 
 
70
  </div>
71
  Plugin by <a href="http://semperfiwebdesign.com/" title="Semper Fi Web Design">Semper Fi Web Design</a>
72
  </div>
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>
100
  function mrt_sub2(){
101
  ?>
102
  <div class=wrap>
103
+ <h2><?php _e('WP - Security Support') ?></h2>
104
  <div style="height:299px">
105
+ support page coming soon...
106
+ <br /><br /><br />
107
+ <em>For comments, suggestions, bug reporting, etc email michael@semperfiwebdesign.com</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>
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.4
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.5
8
 
9
  Scans your WordPress installation for security vulnerabilities.
10
 
securityscan.php CHANGED
@@ -4,7 +4,7 @@ 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.4
8
  Author URI: http://semperfiwebdesign.com/
9
  */
10
  require_once(ABSPATH."wp-content/plugins/wp-security-scan/menu.php");
@@ -16,64 +16,36 @@ 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');
19
- add_submenu_page(__FILE__, 'Password Tool', 'Password Tool', 8, '1dfg23f', 'mrt_sub1');
20
- add_submenu_page(__FILE__, 'Help', 'Help', 8, '23d2f331', 'mrt_sub2');
 
 
21
 
22
  }
23
  }
24
- function check_perms($name,$path,$perm)
25
- {
26
- clearstatcache();
27
- // $configmod = fileperms($path);
28
- $configmod = substr(sprintf(".%o.", fileperms($path)), -4);
29
- $trcss = (($configmod != $perm) ? "background-color:#fd7a7a;" : "background-color:#91f587;");
30
- echo "<tr style=".$trcss.">";
31
- echo '<td style="border:0px;">' . $name . "</td";
32
- echo '<td style="border:0px;">'. $path ."</td>";
33
- echo '<td style="border:0px;">' . $perm . '</td>';
34
- echo '<td style="border:0px;">' . $configmod . '</td>';
35
- // echo '<td style="border:0px;">' . '<input type="submit" name="' . $perm . '" value="Change now.">' . '</td>';
36
- echo "</tr>";
37
- }
38
 
39
  function mrt_opt_mng_pg() {
40
  ?>
41
- <div class=wrap>
42
- <h2><?php _e('WP - Security Scan') ?></h2>
43
- <div >
44
- <div id="message" class="updated fade"><p><?php echo "SECURITY SCAN";?></p></div>
 
 
45
  <?php
46
 
 
47
  echo "WordPress versions = ";
48
  global $wp_version;
49
  if ($wp_version >= 2.3) $g2k5 = "You need at least version 2.3 for security. This is acceptable.";
50
  if ($wp_version < 2.3) $g2k5 = "You need at least version 2.3. Upgrade immediately for security reasons.";
51
  //if ($wp_version == 2.3) $g2k5 = "equals 2.3";
52
- echo $wp_version . "<br />";
53
  echo $g2k5;?>
54
 
55
-
56
- <table width="100%" border="0" cellspacing="0" cellpadding="3" style="text-align:center;">
57
- <tr>
58
- <th style="border:0px;"><b>Name</b></th>
59
- <th style="border:0px;"><b>File/Dir</b></th>
60
- <th style="border:0px;"><b>Needed Chmod</b></th>
61
- <th style="border:0px;"><b>Current Chmod</b></th>
62
- <!-- <th style="border:0px;"><b>Change Permissions</b></th>-->
63
- </tr>
64
- <?php
65
- check_perms("root directory","../","0745");
66
- check_perms("wp-includes/","../wp-includes","0447");
67
- check_perms(".htaccess","../.htaccess","0644");
68
- check_perms("wp-admin/index.php","index.php","0644");
69
- check_perms("wp-admin/js/","js/","0775");
70
- check_perms("wp-content/themes/","../wp-content/themes","0745");
71
- check_perms("wp-content/plugins/","../wp-content/plugins","0745");
72
- check_perms("wp-admin/","../wp-admin","0745");
73
- check_perms("wp-content/","../wp-content","0745");
74
- ?>
75
- </table>
76
- </div>
77
  Plugin by <a href="http://semperfiwebdesign.com/" title="Semper Fi Web Design">Semper Fi Web Design</a>
78
  </div>
 
 
79
  <?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.5
8
  Author URI: http://semperfiwebdesign.com/
9
  */
10
  require_once(ABSPATH."wp-content/plugins/wp-security-scan/menu.php");
16
  function add_men_pg() {
17
  if (function_exists('add_menu_page')){
18
  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 >= 2.3) $g2k5 = "You need at least version 2.3 for security. This is acceptable.";
41
  if ($wp_version < 2.3) $g2k5 = "You need at least version 2.3. Upgrade immediately for security reasons.";
42
  //if ($wp_version == 2.3) $g2k5 = "equals 2.3";
43
+ echo "<b>" . $wp_version . "</b>" . "<br />";
44
  echo $g2k5;?>
45
 
46
+ </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  Plugin by <a href="http://semperfiwebdesign.com/" title="Semper Fi Web Design">Semper Fi Web Design</a>
48
  </div>
49
+
50
+
51
  <?php } ?>