metasploit-framework/lib/rex
RageLtMan 537dc6e218 Update Payload Cached Sizes fails in PSH Script
When attempting to update cached payload sizes which utilize the
Rex::Powershell functionality, the BRE block which appropriates
initial code is called with the 'code' variable being a nil which
results in:

```
lib/rex/powershell/script.rb:40:in `initialize': no implicit
conversion of nil into String (TypeError)
```

This throws a conditional into the File.open call which presents an
empty string instead of a nil. This still results in the rescue
block having to catch the exception, but manages to keep the
payload size updating script happy an retains consistent
behavior.
2015-06-07 11:42:24 -04:00
..
arch Land #3770, resolve random stager bugs 2014-11-03 14:15:14 -06:00
assembly removed shebangs from files within rex 2013-11-07 18:51:59 -05:00
constants Remove duplicate defines 2014-05-25 09:40:33 +01:00
elfparsey Fix #4382, Make errors more meaningful 2015-02-20 20:09:58 -06:00
elfscan Fix #4382, Make errors more meaningful 2015-02-20 20:09:58 -06:00
encoder Land #3767, @jvazquez-r7's specs for Rex::Encoder::XDR 2014-10-22 09:22:53 -07:00
encoders removed shebangs from files within rex 2013-11-07 18:51:59 -05:00
encoding No need for that kind of language 2014-03-04 14:34:50 -06:00
exploitation Do code cleanup 2015-05-29 14:45:47 -05:00
image_source Add specs for #read_asciiz and fix bugs there 2014-09-22 12:14:21 -05:00
io Delete print_debug/vprint_debug 2015-04-21 11:14:03 -05:00
java Add Rex::Java::Serialization exceptions 2015-04-05 18:43:03 -05:00
logging
machparsey Fix #4382, Make errors more meaningful 2015-02-20 20:09:58 -06:00
machscan Fix #4382, Make errors more meaningful 2015-02-20 20:09:58 -06:00
mime touch up lib/rex/mime/message.rb 2014-11-06 22:48:34 -06:00
nop
ole Fix recursive call to find_by_sid 2014-11-03 14:25:29 -06:00
parser Fix Nmap XML parser for tunnel attribute 2015-04-20 17:04:19 -05:00
payloads Land #5328: reworked x64 http/https stagers 2015-05-21 23:26:34 -05:00
peparsey Fix #4382, Make errors more meaningful 2015-02-20 20:09:58 -06:00
pescan Fix #4382, Make errors more meaningful 2015-02-20 20:09:58 -06:00
platforms
poly Add 'coding: binary' to all msf/rex library files 2014-08-17 17:31:53 -05:00
post fix some alignment, add usage 2015-06-04 16:14:31 -05:00
powershell Update Payload Cached Sizes fails in PSH Script 2015-06-07 11:42:24 -04:00
proto Land #5169, stop reading when the HTTP socket is closed 2015-05-01 11:40:49 -05:00
registry Fix improper use of host-endian or signed pack/unpack 2014-06-30 02:50:10 -05:00
ropbuilder
script
services
socket add missing sslhash attribute 2015-04-14 10:45:44 -05:00
sslscan include a list of deprecated ciphers in the sslscan result 2015-05-08 18:05:00 -05:00
struct2 removed shebangs from files within rex 2013-11-07 18:51:59 -05:00
sync
ui only use regex matches if they are specified 2015-05-20 12:22:36 -05:00
zip Add support for spoofed zip Central Dir names at Entry level 2014-04-07 09:21:26 -05:00
LICENSE Rapid7 Comma Inc 2014-03-13 09:46:20 -05:00
arch.rb Get a shell from a loose gdbserver session. 2014-08-24 01:10:30 -05:00
codepage.map
compat.rb That's funny I changed the wrong method 2014-02-13 16:41:18 -06:00
constants.rb Refactors 2014-05-21 20:15:32 +01:00
elfparsey.rb removed shebangs from files within rex 2013-11-07 18:51:59 -05:00
elfscan.rb removed shebangs from files within rex 2013-11-07 18:51:59 -05:00
exceptions.rb Differentiate failed binds from connects, closes #4169 2014-11-11 14:59:41 -06:00
file.rb
image_source.rb removed shebangs from files within rex 2013-11-07 18:51:59 -05:00
java.rb Prefix coding 2014-12-10 09:52:23 -06:00
job_container.rb
json_hash_file.rb Ensure that the base directory exists before creating the file 2015-05-21 00:40:49 -05:00
logging.rb removed shebangs from files within rex 2013-11-07 18:51:59 -05:00
mac_oui.rb Add 'coding: binary' to all msf/rex library files 2014-08-17 17:31:53 -05:00
machparsey.rb removed shebangs from files within rex 2013-11-07 18:51:59 -05:00
machscan.rb removed shebangs from files within rex 2013-11-07 18:51:59 -05:00
mime.rb
ole.rb
payloads.rb Merge branch 'upstream/master' into multi-transport-support 2015-05-05 07:53:54 +10:00
peparsey.rb removed shebangs from files within rex 2013-11-07 18:51:59 -05:00
pescan.rb removed shebangs from files within rex 2013-11-07 18:51:59 -05:00
platforms.rb
poly.rb
post.rb removed shebangs from files within rex 2013-11-07 18:51:59 -05:00
powershell.rb Refactor Msf::Exploit::Powershell to Rex::Powershell to allow for 2015-02-10 20:53:46 +00:00
proto.rb Add initial model and support to OutputStream 2015-01-05 18:52:13 -06:00
random_identifier_generator.rb Refactor Msf::Exploit::Powershell to Rex::Powershell to allow for 2015-02-10 20:53:46 +00:00
registry.rb
ropbuilder.rb
script.rb removed shebangs from files within rex 2013-11-07 18:51:59 -05:00
service.rb
service_manager.rb
socket.rb ::Errno::EINVAL, disable obfuscation, revoke ms14-064 2015-02-12 11:54:01 -06:00
struct2.rb removed shebangs from files within rex 2013-11-07 18:51:59 -05:00
sync.rb removed shebangs from files within rex 2013-11-07 18:51:59 -05:00
text.rb Refactoring, exitfunk fix, block_api_hash func 2015-05-11 17:24:32 +10:00
thread_factory.rb
time.rb
transformer.rb
ui.rb
zip.rb removed shebangs from files within rex 2013-11-07 18:51:59 -05:00