Changeset 7517
- Timestamp:
- 03/13/09 12:45:32 (4 years ago)
- Files:
-
- modules/branches/2.5/weakpasswords/functions.inc.php (modified) (1 diff)
- modules/branches/2.5/weakpasswords/module.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.5/weakpasswords/functions.inc.php
r7481 r7517 26 26 $weak = weakpasswords_get_users(); 27 27 if(sizeof($weak) > 0) { 28 $extended_text = _("Warning: The use of SIP/IAX passwords that are weak can allow hackers to make brute force registrations and possibly make calls through your PBX. It is strongly recommended, you choose strong secrets.")."<br>"; 29 $count = 0; 28 30 foreach($weak as $details) { 29 $extended_text = sprintf(_("Warning: The use of SIP/IAX passwords that are weak can allow hackers to make brute force registrations and possibly make calls through your PBX. It is strongly recommended, you choose strong secrets. %s %s has a weak secret of %s: %s"), $details['deviceortrunk'], $details['name'], $details['secret'], $details['message']);30 $ nt->add_security("weakpasswords", $details['name'], $details['deviceortrunk']." ".$details['name'].": ".$details['message'],$extended_text);31 $extended_text .= sprintf(_("%s %s has a weak secret of %s: %s<br>"), $details['deviceortrunk'], $details['name'], $details['secret'], $details['message']); 32 $count++; 31 33 } 34 $nt->add_security("weakpasswords", "all", $count." "._("extensions/trunks has weak secrets"),$extended_text); 35 32 36 33 37 } modules/branches/2.5/weakpasswords/module.xml
r7473 r7517 2 2 <rawname>weakpasswords</rawname> 3 3 <name>Weak Password Detection</name> 4 <version>2.5.0. 0</version>4 <version>2.5.0.1</version> 5 5 <type>setup</type> 6 6 <category>Internal Options & Configuration</category> 7 7 <changelog> 8 *2.5.0.1* Consolidated individual security notices to a single notice with all details in extended text 8 9 *2.5.0.0* Initial release 9 10 </changelog>
