Skip to content

Commit 5839e2e

Browse files
author
Brent Cook
committed
Land rapid7#6762, Fix ghetto true/false checking in NOP generator
2 parents c32b0fe + 068cf8e commit 5839e2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/nops/x86/single_byte.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def generate_sled(length, opts = {})
106106

107107
# Did someone specify random NOPs in the environment?
108108
if (!random and datastore['RandomNops'])
109-
random = (datastore['RandomNops'].match(/true|1|y/i) != nil)
109+
random = datastore['RandomNops']
110110
end
111111

112112
# Generate the whole sled...

0 commit comments

Comments
 (0)