From 97b919923e64f375f10a483723167b48f63ab2d1 Mon Sep 17 00:00:00 2001 From: sinn3r Date: Fri, 20 Mar 2015 21:32:46 -0500 Subject: [PATCH] Fix undefined esize in Rex::Exploitation::Egghunter esize is not a valid variable, and we don't need it either. --- lib/rex/exploitation/egghunter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rex/exploitation/egghunter.rb b/lib/rex/exploitation/egghunter.rb index 079250b6bd..beae3ab192 100644 --- a/lib/rex/exploitation/egghunter.rb +++ b/lib/rex/exploitation/egghunter.rb @@ -46,7 +46,7 @@ class Egghunter startreg = opts[:startreg] searchforward = opts[:searchforward] - raise RuntimeError, "Invalid egg string! Need #{esize} bytes." if opts[:eggtag].length != 4 + raise RuntimeError, "Invalid egg string! Need 4 bytes." if opts[:eggtag].length != 4 marker = "0x%x" % opts[:eggtag].unpack('V').first checksum = checksum_stub(payload, badchars, opts)