rapid7/metasploit-framework

View on GitHub
modules/payloads/singles/php/download_exec.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method php_exec_file has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def php_exec_file
    exename = Rex::Text.rand_text_alpha(rand(8) + 4)
    dis = '$' + Rex::Text.rand_text_alpha(rand(4) + 4)
    shell = <<-END_OF_PHP_CODE
    #{php_preamble(disabled_varname: dis)}
Severity: Minor
Found in modules/payloads/singles/php/download_exec.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status