rapid7/metasploit-framework

View on GitHub
modules/post/linux/manage/iptables_removal.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method run has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def run
    if command_exists?('iptables')
      print_good('Deleting IPTABLES rules...')
      cmd_exec('iptables -P INPUT ACCEPT')
      cmd_exec('iptables -P FORWARD ACCEPT')
Severity: Minor
Found in modules/post/linux/manage/iptables_removal.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status