Acunetix WP Security - Version 2.2.3.9.2

Version Description

Download this release

Release Info

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

Code changes from version 2.2.3.9.1 to 2.2.3.9.2

Files changed (3) hide show
  1. functions.php +45 -1
  2. readme.txt +1 -1
  3. securityscan.php +13 -5
functions.php CHANGED
@@ -22,7 +22,7 @@ function check_perms($name,$path,$perm)
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>';
@@ -30,5 +30,49 @@ function check_perms($name,$path,$perm)
30
  echo "</tr>";
31
  }
32
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  ?>
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>';
30
  echo "</tr>";
31
  }
32
 
33
+ function mrt_get_serverinfo() {
34
+ global $wpdb;
35
+ $sqlversion = $wpdb->get_var("SELECT VERSION() AS version");
36
+ $mysqlinfo = $wpdb->get_results("SHOW VARIABLES LIKE 'sql_mode'");
37
+ if (is_array($mysqlinfo)) $sql_mode = $mysqlinfo[0]->Value;
38
+ if (empty($sql_mode)) $sql_mode = __('Not set');
39
+ if(ini_get('safe_mode')) $safe_mode = __('On');
40
+ else $safe_mode = __('Off');
41
+ if(ini_get('allow_url_fopen')) $allow_url_fopen = __('On');
42
+ else $allow_url_fopen = __('Off');
43
+ if(ini_get('upload_max_filesize')) $upload_max = ini_get('upload_max_filesize');
44
+ else $upload_max = __('N/A');
45
+ if(ini_get('post_max_size')) $post_max = ini_get('post_max_size');
46
+ else $post_max = __('N/A');
47
+ if(ini_get('max_execution_time')) $max_execute = ini_get('max_execution_time');
48
+ else $max_execute = __('N/A');
49
+ if(ini_get('memory_limit')) $memory_limit = ini_get('memory_limit');
50
+ else $memory_limit = __('N/A');
51
+ if (function_exists('memory_get_usage')) $memory_usage = round(memory_get_usage() / 1024 / 1024, 2) . __(' MByte');
52
+ else $memory_usage = __('N/A');
53
+ if (is_callable('exif_read_data')) $exif = __('Yes'). " ( V" . substr(phpversion('exif'),0,4) . ")" ;
54
+ else $exif = __('No');
55
+ if (is_callable('iptcparse')) $iptc = __('Yes');
56
+ else $iptc = __('No');
57
+ if (is_callable('xml_parser_create')) $xml = __('Yes');
58
+ else $xml = __('No');
59
 
60
+ ?>
61
+ <li><?php _e('Operating System'); ?> : <strong><?php echo PHP_OS; ?></strong></li>
62
+ <li><?php _e('Server'); ?> : <strong><?php echo $_SERVER["SERVER_SOFTWARE"]; ?></strong></li>
63
+ <li><?php _e('Memory usage'); ?> : <strong><?php echo $memory_usage; ?></strong></li>
64
+ <li><?php _e('MYSQL Version'); ?> : <strong><?php echo $sqlversion; ?></strong></li>
65
+ <li><?php _e('SQL Mode'); ?> : <strong><?php echo $sql_mode; ?></strong></li>
66
+ <li><?php _e('PHP Version'); ?> : <strong><?php echo PHP_VERSION; ?></strong></li>
67
+ <li><?php _e('PHP Safe Mode'); ?> : <strong><?php echo $safe_mode; ?></strong></li>
68
+ <li><?php _e('PHP Allow URL fopen'); ?> : <strong><?php echo $allow_url_fopen; ?></strong></li>
69
+ <li><?php _e('PHP Memory Limit'); ?> : <strong><?php echo $memory_limit; ?></strong></li>
70
+ <li><?php _e('PHP Max Upload Size'); ?> : <strong><?php echo $upload_max; ?></strong></li>
71
+ <li><?php _e('PHP Max Post Size'); ?> : <strong><?php echo $post_max; ?></strong></li>
72
+ <li><?php _e('PHP Max Script Execute Time'); ?> : <strong><?php echo $max_execute; ?>s</strong></li>
73
+ <li><?php _e('PHP Exif support'); ?> : <strong><?php echo $exif; ?></strong></li>
74
+ <li><?php _e('PHP IPTC support'); ?> : <strong><?php echo $iptc; ?></strong></li>
75
+ <li><?php _e('PHP XML support'); ?> : <strong><?php echo $xml; ?></strong></li>
76
+ <?php
77
+ }
78
  ?>
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.1
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.2
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.9.1
8
  Author URI: http://semperfiwebdesign.com/
9
  */
10
  require_once(ABSPATH."wp-content/plugins/wp-security-scan/support.php");
@@ -23,22 +23,30 @@ add_submenu_page(__FILE__, 'Support', 'Support', 8, 'support', 'mrt_sub2');
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>
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.2
8
  Author URI: http://semperfiwebdesign.com/
9
  */
10
  require_once(ABSPATH."wp-content/plugins/wp-security-scan/support.php");
23
 
24
  function mrt_opt_mng_pg() {
25
  ?>
26
+ <!--<div id='update-nag'>A new version of WP Security Scan is available!</div>-->
27
+ <?php //$rss = fetch_rss('http://alexrabe.boelinger.com/?tag=nextgen-gallery&feed=rss2');?>
28
+
29
  <div class=wrap>
30
  <h2><?php _e('WP - Security Admin Tools') ?></h2>
31
+ <div>
32
  <!-- <div id="message" class="updated fade"><p></p></div>-->
33
+ <br /><div style="float: left;width: 600px; height: 410px;border: 1px solid #999;margin: 0 15px 15px 0;padding: 5px;">
34
  <?php
35
  echo "WordPress versions = ";
36
  global $wp_version;
37
  if ($wp_version == 2.5) $g2k5 = "You have the latest stable version of WordPress.";
38
  if ($wp_version < 2.5) $g2k5 = "You need version 2.5. Upgrade immediately for security reasons.";
39
  echo "<b>" . $wp_version . "</b>" . "<br />";echo $g2k5;?>
40
+ <br /><br />
41
+ <hr align=center size=2 width=500px>
42
  <br /><br />
43
  <b>Future Releases</b>
44
  <ul><li>one-click change file/folder permissions</li><li>test for XSS vulnerabilities</li></ul>
45
+ </div>
46
+ <div style="float: left; height: 410;border: 1px solid #999;margin: 0 15px 15px 0;padding: 5px;">
47
+ <?php mrt_get_serverinfo(); ?>
48
+ </div>
49
+ <div style="clear:both"></div>
50
  </div>
51
  Plugin by <a href="http://semperfiwebdesign.com/" title="Semper Fi Web Design">Semper Fi Web Design</a>
52
  </div>