Skip to content

Commit 2a88aab

Browse files
committed
set mode
1 parent 6d815bc commit 2a88aab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rex/exploitation/ropdb.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def has_target?(rop, target)
119119
# Returns the database in XML
120120
#
121121
def load_rop(file_path)
122-
f = File.open(file_path)
122+
f = File.open(file_path, 'rb')
123123
xml = REXML::Document.new(f.read(f.stat.size))
124124
f.close
125125
return xml

0 commit comments

Comments
 (0)