Acunetix WP Security - Version 2.2.3

Version Description

Download this release

Release Info

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

Code changes from version 2.2.2 to 2.2.3

Files changed (4) hide show
  1. menu.php +178 -0
  2. readme.txt +1 -1
  3. screenshot-1.jpg +0 -0
  4. securityscan.php +3 -3
menu.php ADDED
@@ -0,0 +1,178 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function mrt_sub1(){
3
+ ?>
4
+ <div class=wrap>
5
+ <h2><?php _e('WP - Security Scan') ?></h2>
6
+ <div style="height:299px">
7
+ <?php
8
+ echo "Password Strength Tool";
9
+ ?>
10
+
11
+ <script language="JavaScript1.1">
12
+ function testPassword(passwd){
13
+ var description = new Array();
14
+ description[0] = "<table><tr><td><table cellpadding=0 cellspacing=2><tr><td height=4 width=30 bgcolor=#ff0000></td><td height=4 width=120 bgcolor=tan></td></tr></table></td><td> <b>Weakest</b></td></tr></table>";
15
+ description[1] = "<table><tr><td><table cellpadding=0 cellspacing=2><tr><td height=4 width=60 bgcolor=#990000></td><td height=4 width=90 bgcolor=tan></td></tr></table></td><td> <b>Weak</b></td></tr></table>";
16
+ description[2] = "<table><tr><td><table cellpadding=0 cellspacing=2><tr><td height=4 width=90 bgcolor=#990099></td><td height=4 width=60 bgcolor=tan></td></tr></table></td><td> <b>Improving</b></td></tr></table>";
17
+ description[3] = "<table><tr><td><table cellpadding=0 cellspacing=2><tr><td height=4 width=120 bgcolor=#000099></td><td height=4 width=30 bgcolor=tan></td></tr></table></td><td> <b>Strong</b></td></tr></table>";
18
+ description[4] = "<table><tr><td><table><tr><td height=4 width=150 bgcolor=#0000ff></td></tr></table></td><td> <b>Strongest</b></td></tr></table>";
19
+ description[5] = "<table><tr><td><table><tr><td height=4 width=150 bgcolor=tan></td></tr></table></td><td> <b>Begin Typing</b></td></tr></table>";
20
+
21
+ var base = 0
22
+ var combos = 0
23
+ if (passwd.match(/[a-z]/)){
24
+ base = (base+26);
25
+ }
26
+
27
+ if (passwd.match(/[A-Z]/)){
28
+ base = (base+26);
29
+ }
30
+ if (passwd.match(/\d+/)){
31
+
32
+ base = (base+10);
33
+
34
+ }
35
+
36
+
37
+
38
+ if (passwd.match(/[>!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~]/))
39
+
40
+ {
41
+
42
+ base = (base+33);
43
+
44
+ }
45
+
46
+
47
+
48
+ combos=Math.pow(base,passwd.length);
49
+
50
+
51
+
52
+ if(combos == 1)
53
+
54
+ {
55
+
56
+ strVerdict = description[5];
57
+
58
+ }
59
+
60
+ else if(combos > 1 && combos < 1000000)
61
+
62
+ {
63
+
64
+ strVerdict = description[0];
65
+
66
+ }
67
+
68
+ else if (combos >= 1000000 && combos < 1000000000000)
69
+
70
+ {
71
+
72
+ strVerdict = description[1];
73
+
74
+ }
75
+
76
+ else if (combos >= 1000000000000 && combos < 1000000000000000000)
77
+
78
+ {
79
+
80
+ strVerdict = description[2];
81
+
82
+ }
83
+
84
+ else if (combos >= 1000000000000000000 && combos < 1000000000000000000000000)
85
+
86
+ {
87
+
88
+ strVerdict = description[3];
89
+
90
+ }
91
+
92
+ else
93
+ {
94
+ strVerdict = description[4];
95
+ }
96
+ document.getElementById("Words").innerHTML= (strVerdict);
97
+ }
98
+ </script>
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+ <table><tr valign=top><td><form name="commandForm">
107
+
108
+ Type password: <input type=password size=30 maxlength=50 name=password onkeyup="testPassword(document.forms.commandForm.password.value);" value="">
109
+
110
+ <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>
111
+
112
+ </td></tr></table>
113
+
114
+
115
+
116
+ </form>
117
+
118
+
119
+
120
+ <?php
121
+
122
+ //Check_Password('heythere');
123
+ /*function Check_Password($password)
124
+ {
125
+ //Makes it easy to implement grammar rules.
126
+ $password_flaws = array();
127
+
128
+ $strlen = strlen($password);
129
+
130
+ if($strlen <= 5)
131
+ $password_flaws[sizeof($password_flaws)] = "too short";
132
+
133
+ $count_chars = count_chars($password, 3);
134
+
135
+ if(strlen($count_chars) < $strlen / 2)
136
+ $password_flaws[sizeof($password_flaws)] = "too simple";
137
+
138
+ //The function returns an empty string if the password is "good".
139
+ $return_string = "";
140
+ $sizeof = sizeof($password_flaws);
141
+
142
+ for($index = 0; $index < $sizeof; $index++)
143
+ {
144
+ if($index == 0)
145
+ $return_string .= "the password is ";
146
+
147
+ if($index == $sizeof - 1 && $sizeof != 1)
148
+ $return_string .= " and ";
149
+
150
+ //this is in case i have more than 3 sources of error.
151
+ if($index != 0 && $index != $sizeof - 1)
152
+ $return_string .= ", ";
153
+
154
+ $return_string .= $password_flaws[$index];
155
+ }
156
+
157
+ return($return_string);
158
+ }
159
+ */?>
160
+ </div>
161
+ Plugin by <a href="http://semperfiwebdesign.com/" title="Semper Fi Web Design">Semper Fi Web Design</a>
162
+ </div>
163
+ <? }
164
+
165
+ function mrt_sub2(){
166
+ ?>
167
+ <div class=wrap>
168
+ <h2><?php _e('WP - Security Scan') ?></h2>
169
+ <div style="height:299px">
170
+ coming soon...
171
+ </div>
172
+ Plugin by <a href="http://semperfiwebdesign.com/" title="Semper Fi Web Design">Semper Fi Web Design</a>
173
+ </div>
174
+ <? }
175
+
176
+
177
+
178
+ ?>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://semperfiwebdesign.com
4
  Tags: security, securityscan, chmod, permissions
5
  Requires at least: 2.3
6
  Tested up to: 2.5
7
- Stable tag: .3.4
8
 
9
  Scans your WordPress installation for security vulnerabilities.
10
 
4
  Tags: security, securityscan, chmod, permissions
5
  Requires at least: 2.3
6
  Tested up to: 2.5
7
+ Stable tag: 2.2.3
8
 
9
  Scans your WordPress installation for security vulnerabilities.
10
 
screenshot-1.jpg ADDED
Binary file
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: .3.4
8
  Author URI: http://semperfiwebdesign.com/
9
  */
10
  require_once('../wp-content/plugins/securityscan/menu.php');
@@ -12,7 +12,7 @@ add_action('admin_menu', 'add_men_pg');
12
 
13
  function add_men_pg() {
14
  if (function_exists('add_menu_page')){
15
- add_menu_page('Security Scan', 'Security Scan', 8, __FILE__, 'mrt_opt_mng_pg');
16
  add_submenu_page(__FILE__, 'Password Tool', 'Password Tool', 8, '1dfg23f', 'mrt_sub1');
17
  add_submenu_page(__FILE__, 'Help', 'Help', 8, '23d2f331', 'mrt_sub2');
18
 
@@ -54,7 +54,7 @@ function mrt_opt_mng_pg() {
54
  check_perms("wp-content/themes/","../wp-content/themes","0745");
55
  check_perms("wp-content/plugins/","../wp-content/plugins","0745");
56
  check_perms("wp-admin/","../wp-admin","0745");
57
- check_perms("wp/content/","../wp-content","0745");
58
  ?>
59
  </table>
60
  </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
8
  Author URI: http://semperfiwebdesign.com/
9
  */
10
  require_once('../wp-content/plugins/securityscan/menu.php');
12
 
13
  function add_men_pg() {
14
  if (function_exists('add_menu_page')){
15
+ add_menu_page('Security', 'Security', 8, __FILE__, 'mrt_opt_mng_pg');
16
  add_submenu_page(__FILE__, 'Password Tool', 'Password Tool', 8, '1dfg23f', 'mrt_sub1');
17
  add_submenu_page(__FILE__, 'Help', 'Help', 8, '23d2f331', 'mrt_sub2');
18
 
54
  check_perms("wp-content/themes/","../wp-content/themes","0745");
55
  check_perms("wp-content/plugins/","../wp-content/plugins","0745");
56
  check_perms("wp-admin/","../wp-admin","0745");
57
+ check_perms("wp-content/","../wp-content","0745");
58
  ?>
59
  </table>
60
  </div>