Skip to content
This repository was archived by the owner on Oct 22, 2020. It is now read-only.

Commit 264a46d

Browse files
committed
Add more specific error output if a different gem set seems to be in use
1 parent 5dc2011 commit 264a46d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

payloads/msfvenom_helper.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,14 @@ def generate_msfvenom_payload(mod, payload_name, *args)
3838

3939
if stdout.empty?
4040
mod.emit_error 'Failed to generate the payload'
41-
mod.emit_error stderr
41+
42+
if stderr.to_s.match?(/Bundler::GemNotFound/)
43+
mod.emit_error 'WPXF and Metasploit are using different Ruby gemsets'
44+
mod.emit_error 'If both packages are up to date, please report this via GitHub'
45+
else
46+
mod.emit_error stderr
47+
end
48+
4249
return false
4350
end
4451

0 commit comments

Comments
 (0)