modules/exploits/multi/fileformat/ghostscript_failed_restore.rb
Method initialize
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(update_info(info,
'Name' => 'Ghostscript Failed Restore Command Execution',
'Description' => %q{
This module exploits a -dSAFER bypass in Ghostscript to execute
Method exploit
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def exploit
sploit = template
# Replace our placeholder string with a random one
sploit.sub!(PLACEHOLDER_STRING, Rex::Text.rand_text_alphanumeric(8..42))