rapid7/metasploit-framework

View on GitHub

Showing 7,361 of 22,177 total issues

Similar blocks of code found in 9 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(merge_info(info,
      'Name'          => 'Command Shell, Reverse TCP (via nodejs)',
      'Description'   => 'Creates an interactive shell via nodejs',
      'Author'        => ['RageLtMan', 'joev'],
Severity: Major
Found in modules/payloads/singles/nodejs/shell_reverse_tcp.rb and 8 other locations - About 40 mins to fix
modules/payloads/singles/nodejs/shell_reverse_tcp_ssl.rb on lines 15..27
modules/payloads/singles/php/bind_perl.rb on lines 15..31
modules/payloads/singles/php/bind_perl_ipv6.rb on lines 15..31
modules/payloads/singles/php/bind_php.rb on lines 15..31
modules/payloads/singles/php/bind_php_ipv6.rb on lines 15..31
modules/payloads/singles/ruby/shell_bind_tcp.rb on lines 15..27
modules/payloads/singles/ruby/shell_bind_tcp_ipv6.rb on lines 15..27
modules/payloads/singles/ruby/shell_reverse_tcp.rb on lines 15..27

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 38.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 9 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(merge_info(info,
      'Name'          => 'PHP Command Shell, Bind TCP (via PHP)',
      'Description'   => 'Listen for a connection and spawn a command shell via php',
      'Author'        => ['egypt', 'diaul <diaul[at]devilopers.org>',],
Severity: Major
Found in modules/payloads/singles/php/bind_php.rb and 8 other locations - About 40 mins to fix
modules/payloads/singles/nodejs/shell_reverse_tcp.rb on lines 19..31
modules/payloads/singles/nodejs/shell_reverse_tcp_ssl.rb on lines 15..27
modules/payloads/singles/php/bind_perl.rb on lines 15..31
modules/payloads/singles/php/bind_perl_ipv6.rb on lines 15..31
modules/payloads/singles/php/bind_php_ipv6.rb on lines 15..31
modules/payloads/singles/ruby/shell_bind_tcp.rb on lines 15..27
modules/payloads/singles/ruby/shell_bind_tcp_ipv6.rb on lines 15..27
modules/payloads/singles/ruby/shell_reverse_tcp.rb on lines 15..27

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 38.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

  def import_acunetix_noko_stream(args={},&block)
    if block
      doc = Rex::Parser::AcunetixDocument.new(args,framework.db) {|type, data| yield type,data }
    else
      doc = Rex::Parser::AcunetixFoundstoneDocument.new(args,self)
Severity: Major
Found in lib/msf/core/db_manager/import/acunetix.rb and 7 other locations - About 40 mins to fix
lib/msf/core/db_manager/import/appscan.rb on lines 3..10
lib/msf/core/db_manager/import/burp_session.rb on lines 3..10
lib/msf/core/db_manager/import/foundstone.rb on lines 3..10
lib/msf/core/db_manager/import/mbsa.rb on lines 3..10
lib/msf/core/db_manager/import/open_vas.rb on lines 3..10
lib/msf/core/db_manager/import/outpost24.rb on lines 3..10
lib/msf/core/db_manager/import/wapiti.rb on lines 3..10

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 38.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 9 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(merge_info(info,
      'Name'          => 'PHP Command Shell, Bind TCP (via php) IPv6',
      'Description'   => 'Listen for a connection and spawn a command shell via php (IPv6)',
      'Author'        => ['egypt', 'diaul <diaul[at]devilopers.org>',],
Severity: Major
Found in modules/payloads/singles/php/bind_php_ipv6.rb and 8 other locations - About 40 mins to fix
modules/payloads/singles/nodejs/shell_reverse_tcp.rb on lines 19..31
modules/payloads/singles/nodejs/shell_reverse_tcp_ssl.rb on lines 15..27
modules/payloads/singles/php/bind_perl.rb on lines 15..31
modules/payloads/singles/php/bind_perl_ipv6.rb on lines 15..31
modules/payloads/singles/php/bind_php.rb on lines 15..31
modules/payloads/singles/ruby/shell_bind_tcp.rb on lines 15..27
modules/payloads/singles/ruby/shell_bind_tcp_ipv6.rb on lines 15..27
modules/payloads/singles/ruby/shell_reverse_tcp.rb on lines 15..27

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 38.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

  def import_foundstone_noko_stream(args={},&block)
    if block
      doc = Rex::Parser::FoundstoneDocument.new(args,framework.db) {|type, data| yield type,data }
    else
      doc = Rex::Parser::FoundstoneDocument.new(args,self)
Severity: Major
Found in lib/msf/core/db_manager/import/foundstone.rb and 7 other locations - About 40 mins to fix
lib/msf/core/db_manager/import/acunetix.rb on lines 3..10
lib/msf/core/db_manager/import/appscan.rb on lines 3..10
lib/msf/core/db_manager/import/burp_session.rb on lines 3..10
lib/msf/core/db_manager/import/mbsa.rb on lines 3..10
lib/msf/core/db_manager/import/open_vas.rb on lines 3..10
lib/msf/core/db_manager/import/outpost24.rb on lines 3..10
lib/msf/core/db_manager/import/wapiti.rb on lines 3..10

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 38.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

  def import_wapiti_xml(args={}, &block)
    if block
      doc = Rex::Parser::WapitiDocument.new(args,framework.db) {|type, data| yield type,data }
    else
      doc = Rex::Parser::WapitiDocument.new(args,self)
Severity: Major
Found in lib/msf/core/db_manager/import/wapiti.rb and 7 other locations - About 40 mins to fix
lib/msf/core/db_manager/import/acunetix.rb on lines 3..10
lib/msf/core/db_manager/import/appscan.rb on lines 3..10
lib/msf/core/db_manager/import/burp_session.rb on lines 3..10
lib/msf/core/db_manager/import/foundstone.rb on lines 3..10
lib/msf/core/db_manager/import/mbsa.rb on lines 3..10
lib/msf/core/db_manager/import/open_vas.rb on lines 3..10
lib/msf/core/db_manager/import/outpost24.rb on lines 3..10

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 38.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 9 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(merge_info(info,
      'Name'          => 'PHP Command Shell, Bind TCP (via Perl)',
      'Description'   => 'Listen for a connection and spawn a command shell via perl (persistent)',
      'Author'        => ['Samy <samy[at]samy.pl>', 'cazz'],
Severity: Major
Found in modules/payloads/singles/php/bind_perl.rb and 8 other locations - About 40 mins to fix
modules/payloads/singles/nodejs/shell_reverse_tcp.rb on lines 19..31
modules/payloads/singles/nodejs/shell_reverse_tcp_ssl.rb on lines 15..27
modules/payloads/singles/php/bind_perl_ipv6.rb on lines 15..31
modules/payloads/singles/php/bind_php.rb on lines 15..31
modules/payloads/singles/php/bind_php_ipv6.rb on lines 15..31
modules/payloads/singles/ruby/shell_bind_tcp.rb on lines 15..27
modules/payloads/singles/ruby/shell_bind_tcp_ipv6.rb on lines 15..27
modules/payloads/singles/ruby/shell_reverse_tcp.rb on lines 15..27

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 38.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

  def import_burp_session_noko_stream(args={},&block)
    if block
      doc = Rex::Parser::BurpSessionDocument.new(args,framework.db) {|type, data| yield type,data }
    else
      doc = Rex::Parser::BurpSessionDocument.new(args,self)
Severity: Major
Found in lib/msf/core/db_manager/import/burp_session.rb and 7 other locations - About 40 mins to fix
lib/msf/core/db_manager/import/acunetix.rb on lines 3..10
lib/msf/core/db_manager/import/appscan.rb on lines 3..10
lib/msf/core/db_manager/import/foundstone.rb on lines 3..10
lib/msf/core/db_manager/import/mbsa.rb on lines 3..10
lib/msf/core/db_manager/import/open_vas.rb on lines 3..10
lib/msf/core/db_manager/import/outpost24.rb on lines 3..10
lib/msf/core/db_manager/import/wapiti.rb on lines 3..10

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 38.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

  def import_appscan_noko_stream(args={},&block)
    if block
      doc = Rex::Parser::AppscanDocument.new(args,framework.db) {|type, data| yield type,data }
    else
      doc = Rex::Parser::AppscanDocument.new(args,self)
Severity: Major
Found in lib/msf/core/db_manager/import/appscan.rb and 7 other locations - About 40 mins to fix
lib/msf/core/db_manager/import/acunetix.rb on lines 3..10
lib/msf/core/db_manager/import/burp_session.rb on lines 3..10
lib/msf/core/db_manager/import/foundstone.rb on lines 3..10
lib/msf/core/db_manager/import/mbsa.rb on lines 3..10
lib/msf/core/db_manager/import/open_vas.rb on lines 3..10
lib/msf/core/db_manager/import/outpost24.rb on lines 3..10
lib/msf/core/db_manager/import/wapiti.rb on lines 3..10

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 38.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 9 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(merge_info(info,
      'Name'          => 'PHP Command Shell, Bind TCP (via perl) IPv6',
      'Description'   => 'Listen for a connection and spawn a command shell via perl (persistent) over IPv6',
      'Author'        => ['Samy <samy[at]samy.pl>', 'cazz'],
Severity: Major
Found in modules/payloads/singles/php/bind_perl_ipv6.rb and 8 other locations - About 40 mins to fix
modules/payloads/singles/nodejs/shell_reverse_tcp.rb on lines 19..31
modules/payloads/singles/nodejs/shell_reverse_tcp_ssl.rb on lines 15..27
modules/payloads/singles/php/bind_perl.rb on lines 15..31
modules/payloads/singles/php/bind_php.rb on lines 15..31
modules/payloads/singles/php/bind_php_ipv6.rb on lines 15..31
modules/payloads/singles/ruby/shell_bind_tcp.rb on lines 15..27
modules/payloads/singles/ruby/shell_bind_tcp_ipv6.rb on lines 15..27
modules/payloads/singles/ruby/shell_reverse_tcp.rb on lines 15..27

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 38.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

  def import_openvas_noko_stream(args={}, &block)
    if block
      doc = Rex::Parser::OpenVASDocument.new(args,framework.db) {|type, data| yield type,data }
    else
      doc = Rex::Parser::OpenVASDocument.new(args,self)
Severity: Major
Found in lib/msf/core/db_manager/import/open_vas.rb and 7 other locations - About 40 mins to fix
lib/msf/core/db_manager/import/acunetix.rb on lines 3..10
lib/msf/core/db_manager/import/appscan.rb on lines 3..10
lib/msf/core/db_manager/import/burp_session.rb on lines 3..10
lib/msf/core/db_manager/import/foundstone.rb on lines 3..10
lib/msf/core/db_manager/import/mbsa.rb on lines 3..10
lib/msf/core/db_manager/import/outpost24.rb on lines 3..10
lib/msf/core/db_manager/import/wapiti.rb on lines 3..10

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 38.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 9 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(merge_info(info,
      'Name'        => 'Ruby Command Shell, Bind TCP IPv6',
      'Description' => 'Continually listen for a connection and spawn a command shell via Ruby',
      'Author'      => [ 'kris katterjohn', 'hdm' ],
Severity: Major
Found in modules/payloads/singles/ruby/shell_bind_tcp_ipv6.rb and 8 other locations - About 40 mins to fix
modules/payloads/singles/nodejs/shell_reverse_tcp.rb on lines 19..31
modules/payloads/singles/nodejs/shell_reverse_tcp_ssl.rb on lines 15..27
modules/payloads/singles/php/bind_perl.rb on lines 15..31
modules/payloads/singles/php/bind_perl_ipv6.rb on lines 15..31
modules/payloads/singles/php/bind_php.rb on lines 15..31
modules/payloads/singles/php/bind_php_ipv6.rb on lines 15..31
modules/payloads/singles/ruby/shell_bind_tcp.rb on lines 15..27
modules/payloads/singles/ruby/shell_reverse_tcp.rb on lines 15..27

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 38.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

  def import_mbsa_noko_stream(args={},&block)
    if block
      doc = Rex::Parser::MbsaDocument.new(args,framework.db) {|type, data| yield type,data }
    else
      doc = Rex::Parser::MbsaDocument.new(args,self)
Severity: Major
Found in lib/msf/core/db_manager/import/mbsa.rb and 7 other locations - About 40 mins to fix
lib/msf/core/db_manager/import/acunetix.rb on lines 3..10
lib/msf/core/db_manager/import/appscan.rb on lines 3..10
lib/msf/core/db_manager/import/burp_session.rb on lines 3..10
lib/msf/core/db_manager/import/foundstone.rb on lines 3..10
lib/msf/core/db_manager/import/open_vas.rb on lines 3..10
lib/msf/core/db_manager/import/outpost24.rb on lines 3..10
lib/msf/core/db_manager/import/wapiti.rb on lines 3..10

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 38.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

  def import_outpost24_noko_stream(args={},&block)
    if block
      doc = Rex::Parser::Outpost24Document.new(args,framework.db) {|type, data| yield type,data }
    else
      doc = Rex::Parser::Outpost24Document.new(args,self)
Severity: Major
Found in lib/msf/core/db_manager/import/outpost24.rb and 7 other locations - About 40 mins to fix
lib/msf/core/db_manager/import/acunetix.rb on lines 3..10
lib/msf/core/db_manager/import/appscan.rb on lines 3..10
lib/msf/core/db_manager/import/burp_session.rb on lines 3..10
lib/msf/core/db_manager/import/foundstone.rb on lines 3..10
lib/msf/core/db_manager/import/mbsa.rb on lines 3..10
lib/msf/core/db_manager/import/open_vas.rb on lines 3..10
lib/msf/core/db_manager/import/wapiti.rb on lines 3..10

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 38.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 7 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(
      merge_info(
        info,
        'Name' => 'Unix Command Shell, Reverse TCP (via socat)',
Severity: Major
Found in modules/payloads/singles/cmd/unix/reverse_socat_tcp.rb and 6 other locations - About 40 mins to fix
modules/payloads/singles/cmd/unix/bind_nodejs.rb on lines 15..28
modules/payloads/singles/cmd/unix/bind_socat_sctp.rb on lines 12..31
modules/payloads/singles/cmd/unix/bind_stub.rb on lines 14..31
modules/payloads/singles/cmd/unix/interact.rb on lines 14..31
modules/payloads/singles/cmd/unix/reverse_nodejs.rb on lines 15..28
modules/payloads/singles/cmd/unix/reverse_socat_sctp.rb on lines 12..31

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 38.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 7 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(merge_info(info,
      'Name'        => 'Unix Command Shell, Reverse TCP (via nodejs)',
      'Description' => 'Continually listen for a connection and spawn a command shell via nodejs',
      'Author'      => 'joev',
Severity: Major
Found in modules/payloads/singles/cmd/unix/reverse_nodejs.rb and 6 other locations - About 40 mins to fix
modules/payloads/singles/cmd/unix/bind_nodejs.rb on lines 15..28
modules/payloads/singles/cmd/unix/bind_socat_sctp.rb on lines 12..31
modules/payloads/singles/cmd/unix/bind_stub.rb on lines 14..31
modules/payloads/singles/cmd/unix/interact.rb on lines 14..31
modules/payloads/singles/cmd/unix/reverse_socat_sctp.rb on lines 12..31
modules/payloads/singles/cmd/unix/reverse_socat_tcp.rb on lines 12..31

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 38.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 7 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(
      merge_info(
        info,
        'Name' => 'Unix Command Shell, Reverse SCTP (via socat)',
Severity: Major
Found in modules/payloads/singles/cmd/unix/reverse_socat_sctp.rb and 6 other locations - About 40 mins to fix
modules/payloads/singles/cmd/unix/bind_nodejs.rb on lines 15..28
modules/payloads/singles/cmd/unix/bind_socat_sctp.rb on lines 12..31
modules/payloads/singles/cmd/unix/bind_stub.rb on lines 14..31
modules/payloads/singles/cmd/unix/interact.rb on lines 14..31
modules/payloads/singles/cmd/unix/reverse_nodejs.rb on lines 15..28
modules/payloads/singles/cmd/unix/reverse_socat_tcp.rb on lines 12..31

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 38.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 7 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(merge_info(info,
      'Name'          => 'Unix Command Shell, Bind TCP (stub)',
      'Description'   => 'Listen for a connection and spawn a command shell (stub only, no payload)',
      'Author'        => 'hdm',
Severity: Major
Found in modules/payloads/singles/cmd/unix/bind_stub.rb and 6 other locations - About 40 mins to fix
modules/payloads/singles/cmd/unix/bind_nodejs.rb on lines 15..28
modules/payloads/singles/cmd/unix/bind_socat_sctp.rb on lines 12..31
modules/payloads/singles/cmd/unix/interact.rb on lines 14..31
modules/payloads/singles/cmd/unix/reverse_nodejs.rb on lines 15..28
modules/payloads/singles/cmd/unix/reverse_socat_sctp.rb on lines 12..31
modules/payloads/singles/cmd/unix/reverse_socat_tcp.rb on lines 12..31

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 38.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 7 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(merge_info(info,
      'Name'        => 'Unix Command Shell, Bind TCP (via nodejs)',
      'Description' => 'Continually listen for a connection and spawn a command shell via nodejs',
      'Author'      => 'joev',
Severity: Major
Found in modules/payloads/singles/cmd/unix/bind_nodejs.rb and 6 other locations - About 40 mins to fix
modules/payloads/singles/cmd/unix/bind_socat_sctp.rb on lines 12..31
modules/payloads/singles/cmd/unix/bind_stub.rb on lines 14..31
modules/payloads/singles/cmd/unix/interact.rb on lines 14..31
modules/payloads/singles/cmd/unix/reverse_nodejs.rb on lines 15..28
modules/payloads/singles/cmd/unix/reverse_socat_sctp.rb on lines 12..31
modules/payloads/singles/cmd/unix/reverse_socat_tcp.rb on lines 12..31

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 38.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 7 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(merge_info(info,
      'Name'          => 'Unix Command, Interact with Established Connection',
      'Description'   => 'Interacts with a shell on an established socket connection',
      'Author'        => 'hdm',
Severity: Major
Found in modules/payloads/singles/cmd/unix/interact.rb and 6 other locations - About 40 mins to fix
modules/payloads/singles/cmd/unix/bind_nodejs.rb on lines 15..28
modules/payloads/singles/cmd/unix/bind_socat_sctp.rb on lines 12..31
modules/payloads/singles/cmd/unix/bind_stub.rb on lines 14..31
modules/payloads/singles/cmd/unix/reverse_nodejs.rb on lines 15..28
modules/payloads/singles/cmd/unix/reverse_socat_sctp.rb on lines 12..31
modules/payloads/singles/cmd/unix/reverse_socat_tcp.rb on lines 12..31

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 38.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Severity
Category
Status
Source
Language