rapid7/metasploit-framework

View on GitHub
modules/payloads/singles/osx/x64/shell_reverse_tcp.rb

Summary

Maintainability
A
2 hrs
Test Coverage

Method generate has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def generate(_opts = {})
    lhost = datastore['LHOST'] || '127.0.0.1'
    # OptAddress allows either an IP or hostname, we only want IPv4
    unless Rex::Socket.is_ipv4?(lhost)
      raise ArgumentError, 'LHOST must be in IPv4 format.'
Severity: Minor
Found in modules/payloads/singles/osx/x64/shell_reverse_tcp.rb - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status