diff --git a/lib/rex/exploitation/ropdb.rb b/lib/rex/exploitation/ropdb.rb index 3137869951..80257caa92 100644 --- a/lib/rex/exploitation/ropdb.rb +++ b/lib/rex/exploitation/ropdb.rb @@ -119,7 +119,7 @@ class RopDb # Returns the database in XML # def load_rop(file_path) - f = File.open(file_path) + f = File.open(file_path, 'rb') xml = REXML::Document.new(f.read(f.stat.size)) f.close return xml