Skip to content

Commit 9f176ca

Browse files
committed
Land rapid7#4976, @wchen-r7's Egghunter undefined esize fix
2 parents 8e8e373 + 97b9199 commit 9f176ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rex/exploitation/egghunter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def hunter_stub(payload, badchars = '', opts = {})
4646
startreg = opts[:startreg]
4747
searchforward = opts[:searchforward]
4848

49-
raise RuntimeError, "Invalid egg string! Need #{esize} bytes." if opts[:eggtag].length != 4
49+
raise RuntimeError, "Invalid egg string! Need 4 bytes." if opts[:eggtag].length != 4
5050
marker = "0x%x" % opts[:eggtag].unpack('V').first
5151

5252
checksum = checksum_stub(payload, badchars, opts)

0 commit comments

Comments
 (0)