From 859a8978e7f2bdecdc53dc7bd3ce6989dfcc1a17 Mon Sep 17 00:00:00 2001 From: jvazquez-r7 Date: Fri, 16 Jan 2015 19:33:19 -0600 Subject: [PATCH] Allow searchforward to be an string --- 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 f842ca6941..582365ef88 100644 --- a/lib/rex/exploitation/egghunter.rb +++ b/lib/rex/exploitation/egghunter.rb @@ -70,7 +70,7 @@ class Egghunter flippage = "\n\tor dx,0xfff" edxdirection = "\n\tinc edx" - if searchforward == false + if searchforward.to_s.downcase == 'false' # go backwards flippage = "\n\txor dl,dl" edxdirection = "\n\tdec edx"