Acunetix WP Security - Version 2.2.3.3

Version Description

Download this release

Release Info

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

Code changes from version 2.2.3.2 to 2.2.3.3

Files changed (5) hide show
  1. functions.php +20 -0
  2. menu.php +11 -101
  3. readme.txt +1 -1
  4. scripts.js +30 -0
  5. securityscan.php +5 -1
functions.php ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ function make_seed() {
4
+ list($usec, $sec) = explode(' ', microtime());
5
+ return (float) $sec + ((float) $usec * 100000);
6
+ }
7
+
8
+ function make_password($password_length){
9
+ srand(make_seed());
10
+ $alfa = "!@123!@4567!@890qwer!@tyuiopa@!sdfghjkl@!zxcvbn@!mQWERTYUIO@!PASDFGH@!JKLZXCVBNM!@";
11
+ $token = "";
12
+ for($i = 0; $i < $password_length; $i ++) {
13
+ $token .= $alfa[rand(0, strlen($alfa))];
14
+ }
15
+ return $token;
16
+ }
17
+
18
+
19
+
20
+ ?>
menu.php CHANGED
@@ -1,108 +1,17 @@
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="">
@@ -114,8 +23,10 @@ Type password: <input type=password size=30 maxlength=50 name=password onkeyup="
114
 
115
 
116
  </form>
117
-
118
-
 
 
119
 
120
  <?php
121
 
@@ -168,7 +79,6 @@ function mrt_sub2(){
168
  <h2><?php _e('WP - Security Scan') ?></h2>
169
  <div style="height:299px">
170
  coming soon...
171
-
172
  </div>
173
  Plugin by <a href="http://semperfiwebdesign.com/" title="Semper Fi Web Design">Semper Fi Web Design</a>
174
  </div>
1
  <?php
2
+
3
+ require_once(ABSPATH."wp-content/plugins/securityscan/functions.php");
4
+ require_once(ABSPATH."wp-content/plugins/securityscan/scripts.js");
5
+
6
+
7
  function mrt_sub1(){
8
  ?>
9
  <div class=wrap>
10
+ <h2><?php _e('WP - Password Tools') ?></h2>
11
  <div style="height:299px">
12
  <?php
13
+ echo "<br /><strong>Password Strength Tool</strong>";
14
  ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  <table><tr valign=top><td><form name="commandForm">
16
 
17
  Type password: <input type=password size=30 maxlength=50 name=password onkeyup="testPassword(document.forms.commandForm.password.value);" value="">
23
 
24
 
25
  </form>
26
+ <?php
27
+ echo "<br /><br /><strong>Strong Password Generator</strong><br />";
28
+ echo "Strong Password: " . '<font color="red">' . make_password(15) . "</font>";
29
+ ?>
30
 
31
  <?php
32
 
79
  <h2><?php _e('WP - Security Scan') ?></h2>
80
  <div style="height:299px">
81
  coming soon...
 
82
  </div>
83
  Plugin by <a href="http://semperfiwebdesign.com/" title="Semper Fi Web Design">Semper Fi Web Design</a>
84
  </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.2
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.3
8
 
9
  Scans your WordPress installation for security vulnerabilities.
10
 
scripts.js ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <script language="JavaScript1.1">
2
+ function testPassword(passwd){
3
+ var description = new Array();
4
+ 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>";
5
+ 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>";
6
+ 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>";
7
+ 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>";
8
+ 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>";
9
+ 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>";
10
+
11
+ var base = 0
12
+ var combos = 0
13
+ if (passwd.match(/[a-z]/))base = (base+26);
14
+ if (passwd.match(/[A-Z]/))base = (base+26);
15
+ if (passwd.match(/\d+/))base = (base+10);
16
+ if (passwd.match(/[>!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~]/))base = (base+33);
17
+
18
+ combos=Math.pow(base,passwd.length);
19
+
20
+ if(combos == 1)strVerdict = description[5];
21
+ else if(combos > 1 && combos < 1000000)strVerdict = description[0];
22
+ else if (combos >= 1000000 && combos < 1000000000000)strVerdict = description[1];
23
+ else if (combos >= 1000000000000 && combos < 1000000000000000000)strVerdict = description[2];
24
+ else if (combos >= 1000000000000000000 && combos < 1000000000000000000000000)strVerdict = description[3];
25
+ else strVerdict = description[4];
26
+
27
+ document.getElementById("Words").innerHTML= (strVerdict);
28
+ }
29
+ </script>
30
+
securityscan.php CHANGED
@@ -4,10 +4,14 @@ 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.2
8
  Author URI: http://semperfiwebdesign.com/
9
  */
10
  require_once(ABSPATH."wp-content/plugins/securityscan/menu.php");
 
 
 
 
11
  add_action('admin_menu', 'add_men_pg');
12
  function add_men_pg() {
13
  if (function_exists('add_menu_page')){
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.3
8
  Author URI: http://semperfiwebdesign.com/
9
  */
10
  require_once(ABSPATH."wp-content/plugins/securityscan/menu.php");
11
+ //require_once(ABSPATH."wp-content/plugins/securityscan/functions.php");
12
+ //require_once(ABSPATH."wp-content/plugins/securityscan/scripts.js");
13
+
14
+
15
  add_action('admin_menu', 'add_men_pg');
16
  function add_men_pg() {
17
  if (function_exists('add_menu_page')){