Method: Rex::Exploitation::Powershell::Obfu#strip_comments
- Defined in:
- lib/rex/exploitation/powershell/obfu.rb
#strip_comments ⇒ String
Remove comments
20 21 22 23 24 25 26 27 |
# File 'lib/rex/exploitation/powershell/obfu.rb', line 20 def strip_comments # Multi line code.gsub!(MULTI_LINE_COMMENTS_REGEX, '') # Single line code.gsub!(SINGLE_LINE_COMMENTS_REGEX, '') code end |