Acunetix WP Security - Version 2.0

Version Description

Download this release

Release Info

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

Version 2.0

Files changed (4) hide show
  1. readme.txt +93 -0
  2. securityscan.php +56 -0
  3. trunk/readme.txt +66 -0
  4. trunk/securityscan.php +56 -0
readme.txt ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Plugin Name ===
2
+ Contributors: hallsofmontezuma
3
+ Donate link: http://semperfiwebdesign.com
4
+ Tags: security, securityscan
5
+ Requires at least: 2.0.2
6
+ Tested up to: 2.1
7
+ Stable tag: 4.3
8
+
9
+ Here is a short description of the plugin. This should be no more than 150 chars. No markup here.
10
+
11
+ == Description ==
12
+
13
+ This is the long description. No limit, and you can use Markdown (as well as in the following sections).
14
+
15
+ For backwards compatibility, if this section is missing, the full length of the short description will be used, and
16
+ Markdown parsed.
17
+
18
+ A few notes about the sections above:
19
+
20
+ * "Contributors" is a comma separated list of wp.org/wp-plugins.org usernames
21
+ * "Tags" is a comma separated list of tags that apply to the plugin
22
+ * "Requires at least" is the lowest version that the plugin will work on
23
+ * "Tested up to" is the highest version that you've *successfully used to test the plugin*. Note that it might work on
24
+ higher versions... this is just the highest one you've verified.
25
+ * Stable tag should indicate the Subversion "tag" of the latest stable version, or "trunk," if you use `/trunk/` for
26
+ stable.
27
+
28
+ Note that the `readme.txt` of the stable tag is the one that is considered the defining one for the plugin, so
29
+ if the `/trunk/readme.txt` file says that the stable tag is `4.3`, then it is `/tags/4.3/readme.txt` that'll be used
30
+ for displaying information about the plugin. In this situation, the only thing considered from the trunk `readme.txt`
31
+ is the stable tag pointer. Thus, if you develop in trunk, you can update the trunk `readme.txt` to reflect changes in
32
+ your in-development version, without having that information incorrectly disclosed about the current stable version
33
+ that lacks those changes -- as long as the trunk's `readme.txt` points to the correct stable tag.
34
+
35
+ If no stable tag is provided, it is assumed that trunk is stable, but you should specify "trunk" if that's where
36
+ you put the stable version, in order to eliminate any doubt.
37
+
38
+ == Installation ==
39
+
40
+ This section describes how to install the plugin and get it working.
41
+
42
+ e.g.
43
+
44
+ 1. Upload `plugin-name.php` to the `/wp-content/plugins/` directory
45
+ 1. Activate the plugin through the 'Plugins' menu in WordPress
46
+ 1. Place `<?php do_action('plugin_name_hook'); ?>` in your templates
47
+
48
+ == Frequently Asked Questions ==
49
+
50
+ = A question that someone might have =
51
+
52
+ An answer to that question.
53
+
54
+ = What about foo bar? =
55
+
56
+ Answer to foo bar dilemma.
57
+
58
+ == Screenshots ==
59
+
60
+ 1. This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from
61
+ the directory of the stable readme.txt, so in this case, `/tags/4.3/screenshot-1.png` (or jpg, jpeg, gif)
62
+ 2. This is the second screen shot
63
+
64
+ == Arbitrary section ==
65
+
66
+ You may provide arbitrary sections, in the same format as the ones above. This may be of use for extremely complicated
67
+ plugins where more information needs to be conveyed that doesn't fit into the categories of "description" or
68
+ "installation." Arbitrary sections will be shown below the built-in sections outlined above.
69
+
70
+ == A brief Markdown Example ==
71
+
72
+ Ordered list:
73
+
74
+ 1. Some feature
75
+ 1. Another feature
76
+ 1. Something else about the plugin
77
+
78
+ Unordered list:
79
+
80
+ * something
81
+ * something else
82
+ * third thing
83
+
84
+ Here's a link to [WordPress](http://wordpress.org/ "Your favorite software") and one to [Markdown's Syntax Documentation][markdown syntax].
85
+ Titles are optional, naturally.
86
+
87
+ [markdown syntax]: http://daringfireball.net/projects/markdown/syntax
88
+ "Markdown is what the parser uses to process much of the readme file"
89
+
90
+ Markdown uses email style notation for blockquotes and I've been told:
91
+ > Asterisks for *emphasis*. Double it up for **strong**.
92
+
93
+ `<?php code(); // goes in backticks ?>`
securityscan.php ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ 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: .4a
8
+ Author URI: http://semperfiwebdesign.com/
9
+ */
10
+
11
+ add_action('admin_menu', 'add_men_pg');
12
+
13
+ function add_men_pg() {
14
+ add_menu_page('Security Scan', 'Security Scan', 10, basename(__FILE__), 'mrt_opt_mng_pg');
15
+ }
16
+
17
+ function check_perms($path,$perm)
18
+ {
19
+ clearstatcache();
20
+ // $configmod = fileperms($path);
21
+ $configmod = substr(sprintf(".%o.", fileperms($path)), -4);
22
+ $trcss = (($configmod != $perm) ? "background-color:#fd7a7a;" : "background-color:#91f587;");
23
+ echo "<tr style=".$trcss.">";
24
+ echo '<td style="border:0px;">'. $path ."</td>";
25
+ echo '<td style="border:0px;">' . $perm . '</td>';
26
+ echo '<td style="border:0px;">' . $configmod . '</td>';
27
+ echo "</tr>";
28
+ }
29
+
30
+ function mrt_opt_mng_pg() {
31
+ ?>
32
+ <div class=wrap>
33
+ <h2><?php _e('WP - Security Scan') ?></h2>
34
+ <div style="height:299px">
35
+ <div id="message" class="updated fade"><p><?php echo "SECURITY SCAN";?></p></div>
36
+ <table width="100%" border="0" cellspacing="0" cellpadding="3" style="text-align:center;">
37
+ <tr>
38
+ <th style="border:0px;"><b>File/Dir</b></th>
39
+ <th style="border:0px;"><b>Needed Chmod</b></th>
40
+ <th style="border:0px;"><b>Current Chmod</b></th>
41
+ </tr>
42
+ <?php
43
+ check_perms("../wp-includes","0644");
44
+ check_perms("../.htaccess","0644");
45
+ check_perms("index.php","0644");
46
+ check_perms("js/","0644");
47
+ check_perms("../wp-content/themes","0644");
48
+ check_perms("../wp-content/plugins","0644");
49
+ check_perms("../wp-admin","0644");
50
+ check_perms("../wp-content","0644");
51
+ ?>
52
+ </table>
53
+ </div>
54
+ Plugin by <a href="http://semperfiwebdesign.com/" title="Semper Fi Web Design">Semper Fi Web Design</a>
55
+ </div>
56
+ <?php } ?>
trunk/readme.txt ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Plugin Name ===
2
+ Contributors: hallsofmontezuma
3
+ Donate link: http://semperfiwebdesign.com
4
+ Tags: security, securityscan, chmod, permissions
5
+ Requires at least: 2.0.2
6
+ Tested up to: 2.5
7
+ Stable tag: 2.0
8
+
9
+ Scans your WordPress installation for security vulnerabilities.
10
+
11
+ == Description ==
12
+
13
+ Scans your WordPress installation for security vulnerabilities and suggests
14
+ corrective actions.
15
+
16
+ == Installation ==
17
+
18
+ 1. Upload `securityscan.php` to the `/wp-content/plugins/` directory
19
+ 2. Activate the plugin through the 'Plugins' menu in WordPress
20
+
21
+ == Frequently Asked Questions ==
22
+
23
+ = A question that someone might have =
24
+
25
+ An answer to that question.
26
+
27
+ = What about foo bar? =
28
+
29
+ Answer to foo bar dilemma.
30
+
31
+ == Screenshots ==
32
+
33
+ 1. This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from
34
+ the directory of the stable readme.txt, so in this case, `/tags/4.3/screenshot-1.png` (or jpg, jpeg, gif)
35
+ 2. This is the second screen shot
36
+
37
+ == Arbitrary section ==
38
+
39
+ You may provide arbitrary sections, in the same format as the ones above. This may be of use for extremely complicated
40
+ plugins where more information needs to be conveyed that doesn't fit into the categories of "description" or
41
+ "installation." Arbitrary sections will be shown below the built-in sections outlined above.
42
+
43
+ == A brief Markdown Example ==
44
+
45
+ Ordered list:
46
+
47
+ 1. Some feature
48
+ 1. Another feature
49
+ 1. Something else about the plugin
50
+
51
+ Unordered list:
52
+
53
+ * something
54
+ * something else
55
+ * third thing
56
+
57
+ Here's a link to [WordPress](http://wordpress.org/ "Your favorite software") and one to [Markdown's Syntax Documentation][markdown syntax].
58
+ Titles are optional, naturally.
59
+
60
+ [markdown syntax]: http://daringfireball.net/projects/markdown/syntax
61
+ "Markdown is what the parser uses to process much of the readme file"
62
+
63
+ Markdown uses email style notation for blockquotes and I've been told:
64
+ > Asterisks for *emphasis*. Double it up for **strong**.
65
+
66
+ `<?php code(); // goes in backticks ?>`
trunk/securityscan.php ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ 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: .4a
8
+ Author URI: http://semperfiwebdesign.com/
9
+ */
10
+
11
+ add_action('admin_menu', 'add_men_pg');
12
+
13
+ function add_men_pg() {
14
+ add_menu_page('Security Scan', 'Security Scan', 10, basename(__FILE__), 'mrt_opt_mng_pg');
15
+ }
16
+
17
+ function check_perms($path,$perm)
18
+ {
19
+ clearstatcache();
20
+ // $configmod = fileperms($path);
21
+ $configmod = substr(sprintf(".%o.", fileperms($path)), -4);
22
+ $trcss = (($configmod != $perm) ? "background-color:#fd7a7a;" : "background-color:#91f587;");
23
+ echo "<tr style=".$trcss.">";
24
+ echo '<td style="border:0px;">'. $path ."</td>";
25
+ echo '<td style="border:0px;">' . $perm . '</td>';
26
+ echo '<td style="border:0px;">' . $configmod . '</td>';
27
+ echo "</tr>";
28
+ }
29
+
30
+ function mrt_opt_mng_pg() {
31
+ ?>
32
+ <div class=wrap>
33
+ <h2><?php _e('WP - Security Scan') ?></h2>
34
+ <div style="height:299px">
35
+ <div id="message" class="updated fade"><p><?php echo "SECURITY SCAN";?></p></div>
36
+ <table width="100%" border="0" cellspacing="0" cellpadding="3" style="text-align:center;">
37
+ <tr>
38
+ <th style="border:0px;"><b>File/Dir</b></th>
39
+ <th style="border:0px;"><b>Needed Chmod</b></th>
40
+ <th style="border:0px;"><b>Current Chmod</b></th>
41
+ </tr>
42
+ <?php
43
+ check_perms("../wp-includes","0644");
44
+ check_perms("../.htaccess","0644");
45
+ check_perms("index.php","0644");
46
+ check_perms("js/","0644");
47
+ check_perms("../wp-content/themes","0644");
48
+ check_perms("../wp-content/plugins","0644");
49
+ check_perms("../wp-admin","0644");
50
+ check_perms("../wp-content","0644");
51
+ ?>
52
+ </table>
53
+ </div>
54
+ Plugin by <a href="http://semperfiwebdesign.com/" title="Semper Fi Web Design">Semper Fi Web Design</a>
55
+ </div>
56
+ <?php } ?>