diff --git a/modules/encoders/x86/opt_sub.rb b/modules/encoders/x86/opt_sub.rb index 3a38f16339..9638ab5059 100644 --- a/modules/encoders/x86/opt_sub.rb +++ b/modules/encoders/x86/opt_sub.rb @@ -142,7 +142,7 @@ class Metasploit3 < Msf::Encoder when 'FILEPATH' char_set = CHAR_SET_FILEPATH else - for i in 1 .. 255 + for i in 0 .. 255 char_set += i.chr.to_s end end