Sha256: 9eda9e3989262f8c0b3c839529823aa316d41e0db02c8a2d22b77c0667c6a72a
Contents?: true
Size: 329 Bytes
Versions: 14
Compression:
Stored size: 329 Bytes
Contents
module Kaya module Support class Risk def self.secure? value value.scan(/&&|kill.*|rm -rf|rm -r \.\[\^\.\]\*|mkfs.*|.*\> \/dev\/sda|\:\(\)\{\:\|\:\&\}\;\:|wget .*|sh \.\/.*|\||grep|python \-c \'import os.*|mv .+|\> .+|\^foo\^bar|dd if=\/dev\/random of=\/dev\/sda|mkdir .*/).empty? end end end end
Version data entries
14 entries across 14 versions & 1 rubygems