This is a fix for issues related to:
'undefined method `[]' for nil:NilClass'
It is possible that a PDF may not have the 'Size' xref, and people
are running into the 'undefined method'[]' for NilClass' exception.
Because the pdf parser always assumes there is a Size field,
so it uses a match() function to find the value for Size, which
can be nil.
See the following bug report for example:
https://dev.metasploit.com/redmine/issues/7014
Watch the trailing commas, that wangs up Ruby 1.8.7 and prior.
Squashed commit of the following:
commit c00363993a726cd0c87fbaee769c44f680feff72
Author: Tod Beardsley <todb@metasploit.com>
Date: Mon Jun 4 09:33:18 2012 -0500
Removing trailing comma
commit 594cae0cab
Author: Steve Tornio <swtornio@gmail.com>
Date: Mon Jun 4 09:10:36 2012 -0500
add osvdb ref
Altered the default password to meet the complexity checks
Note: The complexity checks (even if they fail) don't prevent the payload from running. At this point it only raises an warning and continues on. I can change this if it's more desirable however!
This was tested by creating a resource script to load every changed
module and displaying the options, like so:
````
use auxiliary/admin/2wire/xslt_password_reset
show options
use auxiliary/admin/http/contentkeeper_fileaccess
show options
````
...etc. This was run in both the master branch and FireFart's branch
while spooling out the results of msfconsole, then diffing those
results. All modules loaded successfully, and there were no changes to
the option sets, so it looks like a successful fix.
Thanks FireFart!
Squashed commit of the following:
commit 7c1eea53fe3743f59402e445cf34fab84cf5a4b7
Author: Christian Mehlmauer <FireFart@gmail.com>
Date: Fri May 25 22:09:42 2012 +0200
Cleanup Opt::RPORT(80) since it is already registered by Msf::Exploit::Remote::HttpClient
Have some minor edits below, looks like it all works now though.
Squashed commit of the following:
commit b7befd4889f12105f36794b1caca316d1691b335
Author: Tod Beardsley <todb@metasploit.com>
Date: Fri Jun 1 14:31:32 2012 -0500
Removing ord in favor of unpack.
Also renaming a 'character' variable to 'c' rather than 'i' which is
easy to mistake for an Integer counter variable.
commit e80f6a5622df2136bc3557b2385822ba077e6469
Author: Tod Beardsley <todb@metasploit.com>
Date: Fri Jun 1 14:24:41 2012 -0500
Cleaning up print msgs
commit 5fd65ed54cb47834dc646fdca8f047fca4b74953
Author: Tod Beardsley <todb@metasploit.com>
Date: Fri Jun 1 14:19:10 2012 -0500
Clean up hashcollision_dos description
Caps, mostly. One sentence I still don't get but it's not really a show
stopper.
commit bec0ee43dc9078d34a328eb416970cdc446e6430
Author: Christian Mehlmauer <FireFart@gmail.com>
Date: Thu May 24 19:11:32 2012 +0200
Removed RPORT, ruby 1.8 safe, no case insensitive check, error handling
commit 20793f0dfd9103c4d7067a71e81212b48318d183
Author: Christian Mehlmauer <FireFart@gmail.com>
Date: Tue May 22 23:11:53 2012 +0200
Hashcollision Script (again)
Squashed commit of the following:
commit 60be1b2d1d
Author: Raphael Mudge <rsmudge@gmail.com>
Date: Wed May 30 19:43:07 2012 -0400
Armitage 05.30.12
A small collection of bug fixes.
This is all documentation changes -- adds THIRD-PARTY licenses, updates
readme to be more like a readme, and moves the old readme to a COPYING
file.
Note that while this lands pull #388, it skips the Meterpreter changes
that were brought in almost certainly by accident.
Squashed commit of the following:
commit 7125509e8b
Author: James Lee <egypt@metasploit.com>
Date: Wed May 23 13:12:45 2012 -0600
Add license info for rkelly and anemone
commit 14367041c3
Author: James Lee <egypt@metasploit.com>
Date: Wed May 23 12:49:14 2012 -0600
Add licenses for gemcache stuff to THIRD-PARTY
commit c22138cf24
Author: James Lee <egypt@metasploit.com>
Date: Mon May 14 17:24:14 2012 -0600
Add useful links
commit 47a9df3d54
Author: James Lee <egypt@metasploit.com>
Date: Mon May 14 16:41:21 2012 -0600
Add copyright notices
commit 687567dfe2
Author: James Lee <egypt@metasploit.com>
Date: Mon May 14 16:28:17 2012 -0600
Give THIRD-PARTY an md extension
Should make display on Github nicer
commit e322676413
Author: James Lee <egypt@metasploit.com>
Date: Mon May 14 16:22:55 2012 -0600
Break licenses for bundled stuff into THIRD-PARTY
commit e6463c6e7f
Author: James Lee <egypt@metasploit.com>
Date: Mon May 14 14:06:01 2012 -0600
Move README to COPYING
commit 8a6a6bb63f
Author: James Lee <egypt@metasploit.com>
Date: Mon May 14 12:53:31 2012 -0600
Better wording.
commit 5ac46d4f68
Author: James Lee <egypt@metasploit.com>
Date: Mon May 14 12:51:58 2012 -0600
Add a little more explanitory text to Contributing.
commit 54dab50d98
Author: James Lee <egypt@metasploit.com>
Date: Mon May 14 12:37:09 2012 -0600
Missed one
commit e23c80f01e
Author: James Lee <egypt@metasploit.com>
Date: Mon May 14 12:36:33 2012 -0600
Better links
commit 47b944ec65
Author: James Lee <egypt@metasploit.com>
Date: Mon May 14 12:26:12 2012 -0600
Meh, GFM doesn't like my headings
commit 12a7651e91
Author: James Lee <egypt@metasploit.com>
Date: Mon May 14 12:24:42 2012 -0600
Initial stab at a better README
commit e3a0d4731b
Author: James Lee <egypt@metasploit.com>
Date: Mon May 14 11:59:41 2012 -0600
LLC -> Inc.
commit 5b32b4245c
Author: James Lee <egypt@metasploit.com>
Date: Sun May 13 17:50:04 2012 -0600
Whitespace at EOL
commit e6719f18ab
Author: James Lee <egypt@metasploit.com>
Date: Sun May 13 17:48:50 2012 -0600
Only open /dev/null if we need it