Skip to content

Commit 3d3799d

Browse files
committed
Ok... even more explicit
1 parent 4ff186c commit 3d3799d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/msf/util/exe.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,8 @@ def self.to_win32pe(framework, code, opts={})
257257

258258
p_length = payload.length + 256
259259
if(text.size < p_length)
260-
msg = "The .text section is too small. "
260+
fname = ::File.basename(opts[:template])
261+
msg = "The .text section for '#{fname}' is too small. "
261262
msg << "Minimum is #{p_length.to_s} bytes, your .text section is #{text.size.to_s} bytes"
262263
raise RuntimeError, msg
263264
end

0 commit comments

Comments
 (0)