From a5bed0198a2b3017fe1bd3cfc3d1a87069d64d70 Mon Sep 17 00:00:00 2001 From: jvazquez-r7 Date: Mon, 17 Aug 2015 11:08:40 -0500 Subject: [PATCH] Use each_char --- modules/nops/x64/simple.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/nops/x64/simple.rb b/modules/nops/x64/simple.rb index 7f4f84e2c5..765a636309 100644 --- a/modules/nops/x64/simple.rb +++ b/modules/nops/x64/simple.rb @@ -218,7 +218,7 @@ class Metasploit3 < Msf::Nop INSTRUCTIONS.each do | instruction | good = true; # If the instruction contains some bad chars we wont use it... - badchars.each do | bc | + badchars.each_char do | bc | if instruction[I_OP].include?( bc ) good = false break