rapid7/metasploit-framework

View on GitHub

Showing 7,361 of 22,177 total issues

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

    if res && res.code == 200 && res.body.include?('webNasIPS successful')
      # Parse the JSON response and get the data such as admin password hash and MAC address
      res_json = res.get_json_document
      unless res_json.blank?
        @data['password'] = res_json['data'].split('PWD:')[1].split("\n")[0].strip
modules/exploits/linux/http/terramaster_unauth_rce_cve_2022_24990.rb on lines 103..114

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 78.

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 2 locations. Consider refactoring.
Open

        try:
            result = out_q.get()
        except queue.Empty as e:
            msg = "report: out_q empty"
            if MSF:
Severity: Major
Found in modules/auxiliary/gather/office365userenum.py and 1 other location - About 2 hrs to fix
modules/auxiliary/gather/office365userenum.py on lines 193..201

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 50.

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 2 locations. Consider refactoring.
Open

        try:
            user = in_q.get()
        except queue.Empty as e:
            msg = "check_users: in_q empty"
            if MSF:
Severity: Major
Found in modules/auxiliary/gather/office365userenum.py and 1 other location - About 2 hrs to fix
modules/auxiliary/gather/office365userenum.py on lines 265..273

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 50.

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 28 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name' => 'Coolnovo credential gatherer',
Severity: Major
Found in modules/post/windows/gather/credentials/coolnovo.rb and 27 other locations - About 2 hrs to fix
modules/post/windows/gather/credentials/aim.rb on lines 73..112
modules/post/windows/gather/credentials/chrome.rb on lines 86..125
modules/post/windows/gather/credentials/comodo.rb on lines 121..160
modules/post/windows/gather/credentials/digsby.rb on lines 46..85
modules/post/windows/gather/credentials/flock.rb on lines 68..107
modules/post/windows/gather/credentials/gadugadu.rb on lines 48..87
modules/post/windows/gather/credentials/icq.rb on lines 73..112
modules/post/windows/gather/credentials/ie.rb on lines 29..68
modules/post/windows/gather/credentials/incredimail.rb on lines 47..86
modules/post/windows/gather/credentials/kakaotalk.rb on lines 44..79
modules/post/windows/gather/credentials/kmeleon.rb on lines 104..139
modules/post/windows/gather/credentials/line.rb on lines 77..112
modules/post/windows/gather/credentials/maxthon.rb on lines 47..82
modules/post/windows/gather/credentials/miranda.rb on lines 47..82
modules/post/windows/gather/credentials/opera.rb on lines 97..132
modules/post/windows/gather/credentials/operamail.rb on lines 72..107
modules/post/windows/gather/credentials/postbox.rb on lines 306..341
modules/post/windows/gather/credentials/qq.rb on lines 29..64
modules/post/windows/gather/credentials/safari.rb on lines 62..97
modules/post/windows/gather/credentials/seamonkey.rb on lines 112..147
modules/post/windows/gather/credentials/srware.rb on lines 81..116
modules/post/windows/gather/credentials/tango.rb on lines 75..110
modules/post/windows/gather/credentials/thunderbird.rb on lines 186..221
modules/post/windows/gather/credentials/tlen.rb on lines 54..89
modules/post/windows/gather/credentials/viber.rb on lines 45..80
modules/post/windows/gather/credentials/windowslivemail.rb on lines 47..82
modules/post/windows/gather/credentials/xchat.rb on lines 47..82

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 77.

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 28 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name' => 'Tlen credential gatherer',
Severity: Major
Found in modules/post/windows/gather/credentials/tlen.rb and 27 other locations - About 2 hrs to fix
modules/post/windows/gather/credentials/aim.rb on lines 73..112
modules/post/windows/gather/credentials/chrome.rb on lines 86..125
modules/post/windows/gather/credentials/comodo.rb on lines 121..160
modules/post/windows/gather/credentials/coolnovo.rb on lines 51..90
modules/post/windows/gather/credentials/digsby.rb on lines 46..85
modules/post/windows/gather/credentials/flock.rb on lines 68..107
modules/post/windows/gather/credentials/gadugadu.rb on lines 48..87
modules/post/windows/gather/credentials/icq.rb on lines 73..112
modules/post/windows/gather/credentials/ie.rb on lines 29..68
modules/post/windows/gather/credentials/incredimail.rb on lines 47..86
modules/post/windows/gather/credentials/kakaotalk.rb on lines 44..79
modules/post/windows/gather/credentials/kmeleon.rb on lines 104..139
modules/post/windows/gather/credentials/line.rb on lines 77..112
modules/post/windows/gather/credentials/maxthon.rb on lines 47..82
modules/post/windows/gather/credentials/miranda.rb on lines 47..82
modules/post/windows/gather/credentials/opera.rb on lines 97..132
modules/post/windows/gather/credentials/operamail.rb on lines 72..107
modules/post/windows/gather/credentials/postbox.rb on lines 306..341
modules/post/windows/gather/credentials/qq.rb on lines 29..64
modules/post/windows/gather/credentials/safari.rb on lines 62..97
modules/post/windows/gather/credentials/seamonkey.rb on lines 112..147
modules/post/windows/gather/credentials/srware.rb on lines 81..116
modules/post/windows/gather/credentials/tango.rb on lines 75..110
modules/post/windows/gather/credentials/thunderbird.rb on lines 186..221
modules/post/windows/gather/credentials/viber.rb on lines 45..80
modules/post/windows/gather/credentials/windowslivemail.rb on lines 47..82
modules/post/windows/gather/credentials/xchat.rb on lines 47..82

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 77.

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 28 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name' => 'Tango credential gatherer',
Severity: Major
Found in modules/post/windows/gather/credentials/tango.rb and 27 other locations - About 2 hrs to fix
modules/post/windows/gather/credentials/aim.rb on lines 73..112
modules/post/windows/gather/credentials/chrome.rb on lines 86..125
modules/post/windows/gather/credentials/comodo.rb on lines 121..160
modules/post/windows/gather/credentials/coolnovo.rb on lines 51..90
modules/post/windows/gather/credentials/digsby.rb on lines 46..85
modules/post/windows/gather/credentials/flock.rb on lines 68..107
modules/post/windows/gather/credentials/gadugadu.rb on lines 48..87
modules/post/windows/gather/credentials/icq.rb on lines 73..112
modules/post/windows/gather/credentials/ie.rb on lines 29..68
modules/post/windows/gather/credentials/incredimail.rb on lines 47..86
modules/post/windows/gather/credentials/kakaotalk.rb on lines 44..79
modules/post/windows/gather/credentials/kmeleon.rb on lines 104..139
modules/post/windows/gather/credentials/line.rb on lines 77..112
modules/post/windows/gather/credentials/maxthon.rb on lines 47..82
modules/post/windows/gather/credentials/miranda.rb on lines 47..82
modules/post/windows/gather/credentials/opera.rb on lines 97..132
modules/post/windows/gather/credentials/operamail.rb on lines 72..107
modules/post/windows/gather/credentials/postbox.rb on lines 306..341
modules/post/windows/gather/credentials/qq.rb on lines 29..64
modules/post/windows/gather/credentials/safari.rb on lines 62..97
modules/post/windows/gather/credentials/seamonkey.rb on lines 112..147
modules/post/windows/gather/credentials/srware.rb on lines 81..116
modules/post/windows/gather/credentials/thunderbird.rb on lines 186..221
modules/post/windows/gather/credentials/tlen.rb on lines 54..89
modules/post/windows/gather/credentials/viber.rb on lines 45..80
modules/post/windows/gather/credentials/windowslivemail.rb on lines 47..82
modules/post/windows/gather/credentials/xchat.rb on lines 47..82

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 77.

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 28 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name' => 'LINE credential gatherer',
Severity: Major
Found in modules/post/windows/gather/credentials/line.rb and 27 other locations - About 2 hrs to fix
modules/post/windows/gather/credentials/aim.rb on lines 73..112
modules/post/windows/gather/credentials/chrome.rb on lines 86..125
modules/post/windows/gather/credentials/comodo.rb on lines 121..160
modules/post/windows/gather/credentials/coolnovo.rb on lines 51..90
modules/post/windows/gather/credentials/digsby.rb on lines 46..85
modules/post/windows/gather/credentials/flock.rb on lines 68..107
modules/post/windows/gather/credentials/gadugadu.rb on lines 48..87
modules/post/windows/gather/credentials/icq.rb on lines 73..112
modules/post/windows/gather/credentials/ie.rb on lines 29..68
modules/post/windows/gather/credentials/incredimail.rb on lines 47..86
modules/post/windows/gather/credentials/kakaotalk.rb on lines 44..79
modules/post/windows/gather/credentials/kmeleon.rb on lines 104..139
modules/post/windows/gather/credentials/maxthon.rb on lines 47..82
modules/post/windows/gather/credentials/miranda.rb on lines 47..82
modules/post/windows/gather/credentials/opera.rb on lines 97..132
modules/post/windows/gather/credentials/operamail.rb on lines 72..107
modules/post/windows/gather/credentials/postbox.rb on lines 306..341
modules/post/windows/gather/credentials/qq.rb on lines 29..64
modules/post/windows/gather/credentials/safari.rb on lines 62..97
modules/post/windows/gather/credentials/seamonkey.rb on lines 112..147
modules/post/windows/gather/credentials/srware.rb on lines 81..116
modules/post/windows/gather/credentials/tango.rb on lines 75..110
modules/post/windows/gather/credentials/thunderbird.rb on lines 186..221
modules/post/windows/gather/credentials/tlen.rb on lines 54..89
modules/post/windows/gather/credentials/viber.rb on lines 45..80
modules/post/windows/gather/credentials/windowslivemail.rb on lines 47..82
modules/post/windows/gather/credentials/xchat.rb on lines 47..82

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 77.

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 28 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name' => 'QQ credential gatherer',
Severity: Major
Found in modules/post/windows/gather/credentials/qq.rb and 27 other locations - About 2 hrs to fix
modules/post/windows/gather/credentials/aim.rb on lines 73..112
modules/post/windows/gather/credentials/chrome.rb on lines 86..125
modules/post/windows/gather/credentials/comodo.rb on lines 121..160
modules/post/windows/gather/credentials/coolnovo.rb on lines 51..90
modules/post/windows/gather/credentials/digsby.rb on lines 46..85
modules/post/windows/gather/credentials/flock.rb on lines 68..107
modules/post/windows/gather/credentials/gadugadu.rb on lines 48..87
modules/post/windows/gather/credentials/icq.rb on lines 73..112
modules/post/windows/gather/credentials/ie.rb on lines 29..68
modules/post/windows/gather/credentials/incredimail.rb on lines 47..86
modules/post/windows/gather/credentials/kakaotalk.rb on lines 44..79
modules/post/windows/gather/credentials/kmeleon.rb on lines 104..139
modules/post/windows/gather/credentials/line.rb on lines 77..112
modules/post/windows/gather/credentials/maxthon.rb on lines 47..82
modules/post/windows/gather/credentials/miranda.rb on lines 47..82
modules/post/windows/gather/credentials/opera.rb on lines 97..132
modules/post/windows/gather/credentials/operamail.rb on lines 72..107
modules/post/windows/gather/credentials/postbox.rb on lines 306..341
modules/post/windows/gather/credentials/safari.rb on lines 62..97
modules/post/windows/gather/credentials/seamonkey.rb on lines 112..147
modules/post/windows/gather/credentials/srware.rb on lines 81..116
modules/post/windows/gather/credentials/tango.rb on lines 75..110
modules/post/windows/gather/credentials/thunderbird.rb on lines 186..221
modules/post/windows/gather/credentials/tlen.rb on lines 54..89
modules/post/windows/gather/credentials/viber.rb on lines 45..80
modules/post/windows/gather/credentials/windowslivemail.rb on lines 47..82
modules/post/windows/gather/credentials/xchat.rb on lines 47..82

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 77.

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 28 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name' => 'Chrome credential gatherer',
Severity: Major
Found in modules/post/windows/gather/credentials/chrome.rb and 27 other locations - About 2 hrs to fix
modules/post/windows/gather/credentials/aim.rb on lines 73..112
modules/post/windows/gather/credentials/comodo.rb on lines 121..160
modules/post/windows/gather/credentials/coolnovo.rb on lines 51..90
modules/post/windows/gather/credentials/digsby.rb on lines 46..85
modules/post/windows/gather/credentials/flock.rb on lines 68..107
modules/post/windows/gather/credentials/gadugadu.rb on lines 48..87
modules/post/windows/gather/credentials/icq.rb on lines 73..112
modules/post/windows/gather/credentials/ie.rb on lines 29..68
modules/post/windows/gather/credentials/incredimail.rb on lines 47..86
modules/post/windows/gather/credentials/kakaotalk.rb on lines 44..79
modules/post/windows/gather/credentials/kmeleon.rb on lines 104..139
modules/post/windows/gather/credentials/line.rb on lines 77..112
modules/post/windows/gather/credentials/maxthon.rb on lines 47..82
modules/post/windows/gather/credentials/miranda.rb on lines 47..82
modules/post/windows/gather/credentials/opera.rb on lines 97..132
modules/post/windows/gather/credentials/operamail.rb on lines 72..107
modules/post/windows/gather/credentials/postbox.rb on lines 306..341
modules/post/windows/gather/credentials/qq.rb on lines 29..64
modules/post/windows/gather/credentials/safari.rb on lines 62..97
modules/post/windows/gather/credentials/seamonkey.rb on lines 112..147
modules/post/windows/gather/credentials/srware.rb on lines 81..116
modules/post/windows/gather/credentials/tango.rb on lines 75..110
modules/post/windows/gather/credentials/thunderbird.rb on lines 186..221
modules/post/windows/gather/credentials/tlen.rb on lines 54..89
modules/post/windows/gather/credentials/viber.rb on lines 45..80
modules/post/windows/gather/credentials/windowslivemail.rb on lines 47..82
modules/post/windows/gather/credentials/xchat.rb on lines 47..82

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 77.

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 28 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name' => 'Flock credential gatherer',
Severity: Major
Found in modules/post/windows/gather/credentials/flock.rb and 27 other locations - About 2 hrs to fix
modules/post/windows/gather/credentials/aim.rb on lines 73..112
modules/post/windows/gather/credentials/chrome.rb on lines 86..125
modules/post/windows/gather/credentials/comodo.rb on lines 121..160
modules/post/windows/gather/credentials/coolnovo.rb on lines 51..90
modules/post/windows/gather/credentials/digsby.rb on lines 46..85
modules/post/windows/gather/credentials/gadugadu.rb on lines 48..87
modules/post/windows/gather/credentials/icq.rb on lines 73..112
modules/post/windows/gather/credentials/ie.rb on lines 29..68
modules/post/windows/gather/credentials/incredimail.rb on lines 47..86
modules/post/windows/gather/credentials/kakaotalk.rb on lines 44..79
modules/post/windows/gather/credentials/kmeleon.rb on lines 104..139
modules/post/windows/gather/credentials/line.rb on lines 77..112
modules/post/windows/gather/credentials/maxthon.rb on lines 47..82
modules/post/windows/gather/credentials/miranda.rb on lines 47..82
modules/post/windows/gather/credentials/opera.rb on lines 97..132
modules/post/windows/gather/credentials/operamail.rb on lines 72..107
modules/post/windows/gather/credentials/postbox.rb on lines 306..341
modules/post/windows/gather/credentials/qq.rb on lines 29..64
modules/post/windows/gather/credentials/safari.rb on lines 62..97
modules/post/windows/gather/credentials/seamonkey.rb on lines 112..147
modules/post/windows/gather/credentials/srware.rb on lines 81..116
modules/post/windows/gather/credentials/tango.rb on lines 75..110
modules/post/windows/gather/credentials/thunderbird.rb on lines 186..221
modules/post/windows/gather/credentials/tlen.rb on lines 54..89
modules/post/windows/gather/credentials/viber.rb on lines 45..80
modules/post/windows/gather/credentials/windowslivemail.rb on lines 47..82
modules/post/windows/gather/credentials/xchat.rb on lines 47..82

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 77.

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 28 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name' => 'Comodo credential gatherer',
Severity: Major
Found in modules/post/windows/gather/credentials/comodo.rb and 27 other locations - About 2 hrs to fix
modules/post/windows/gather/credentials/aim.rb on lines 73..112
modules/post/windows/gather/credentials/chrome.rb on lines 86..125
modules/post/windows/gather/credentials/coolnovo.rb on lines 51..90
modules/post/windows/gather/credentials/digsby.rb on lines 46..85
modules/post/windows/gather/credentials/flock.rb on lines 68..107
modules/post/windows/gather/credentials/gadugadu.rb on lines 48..87
modules/post/windows/gather/credentials/icq.rb on lines 73..112
modules/post/windows/gather/credentials/ie.rb on lines 29..68
modules/post/windows/gather/credentials/incredimail.rb on lines 47..86
modules/post/windows/gather/credentials/kakaotalk.rb on lines 44..79
modules/post/windows/gather/credentials/kmeleon.rb on lines 104..139
modules/post/windows/gather/credentials/line.rb on lines 77..112
modules/post/windows/gather/credentials/maxthon.rb on lines 47..82
modules/post/windows/gather/credentials/miranda.rb on lines 47..82
modules/post/windows/gather/credentials/opera.rb on lines 97..132
modules/post/windows/gather/credentials/operamail.rb on lines 72..107
modules/post/windows/gather/credentials/postbox.rb on lines 306..341
modules/post/windows/gather/credentials/qq.rb on lines 29..64
modules/post/windows/gather/credentials/safari.rb on lines 62..97
modules/post/windows/gather/credentials/seamonkey.rb on lines 112..147
modules/post/windows/gather/credentials/srware.rb on lines 81..116
modules/post/windows/gather/credentials/tango.rb on lines 75..110
modules/post/windows/gather/credentials/thunderbird.rb on lines 186..221
modules/post/windows/gather/credentials/tlen.rb on lines 54..89
modules/post/windows/gather/credentials/viber.rb on lines 45..80
modules/post/windows/gather/credentials/windowslivemail.rb on lines 47..82
modules/post/windows/gather/credentials/xchat.rb on lines 47..82

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 77.

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 28 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name' => 'Safari credential gatherer',
Severity: Major
Found in modules/post/windows/gather/credentials/safari.rb and 27 other locations - About 2 hrs to fix
modules/post/windows/gather/credentials/aim.rb on lines 73..112
modules/post/windows/gather/credentials/chrome.rb on lines 86..125
modules/post/windows/gather/credentials/comodo.rb on lines 121..160
modules/post/windows/gather/credentials/coolnovo.rb on lines 51..90
modules/post/windows/gather/credentials/digsby.rb on lines 46..85
modules/post/windows/gather/credentials/flock.rb on lines 68..107
modules/post/windows/gather/credentials/gadugadu.rb on lines 48..87
modules/post/windows/gather/credentials/icq.rb on lines 73..112
modules/post/windows/gather/credentials/ie.rb on lines 29..68
modules/post/windows/gather/credentials/incredimail.rb on lines 47..86
modules/post/windows/gather/credentials/kakaotalk.rb on lines 44..79
modules/post/windows/gather/credentials/kmeleon.rb on lines 104..139
modules/post/windows/gather/credentials/line.rb on lines 77..112
modules/post/windows/gather/credentials/maxthon.rb on lines 47..82
modules/post/windows/gather/credentials/miranda.rb on lines 47..82
modules/post/windows/gather/credentials/opera.rb on lines 97..132
modules/post/windows/gather/credentials/operamail.rb on lines 72..107
modules/post/windows/gather/credentials/postbox.rb on lines 306..341
modules/post/windows/gather/credentials/qq.rb on lines 29..64
modules/post/windows/gather/credentials/seamonkey.rb on lines 112..147
modules/post/windows/gather/credentials/srware.rb on lines 81..116
modules/post/windows/gather/credentials/tango.rb on lines 75..110
modules/post/windows/gather/credentials/thunderbird.rb on lines 186..221
modules/post/windows/gather/credentials/tlen.rb on lines 54..89
modules/post/windows/gather/credentials/viber.rb on lines 45..80
modules/post/windows/gather/credentials/windowslivemail.rb on lines 47..82
modules/post/windows/gather/credentials/xchat.rb on lines 47..82

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 77.

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 28 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name' => 'ICQ credential gatherer',
Severity: Major
Found in modules/post/windows/gather/credentials/icq.rb and 27 other locations - About 2 hrs to fix
modules/post/windows/gather/credentials/aim.rb on lines 73..112
modules/post/windows/gather/credentials/chrome.rb on lines 86..125
modules/post/windows/gather/credentials/comodo.rb on lines 121..160
modules/post/windows/gather/credentials/coolnovo.rb on lines 51..90
modules/post/windows/gather/credentials/digsby.rb on lines 46..85
modules/post/windows/gather/credentials/flock.rb on lines 68..107
modules/post/windows/gather/credentials/gadugadu.rb on lines 48..87
modules/post/windows/gather/credentials/ie.rb on lines 29..68
modules/post/windows/gather/credentials/incredimail.rb on lines 47..86
modules/post/windows/gather/credentials/kakaotalk.rb on lines 44..79
modules/post/windows/gather/credentials/kmeleon.rb on lines 104..139
modules/post/windows/gather/credentials/line.rb on lines 77..112
modules/post/windows/gather/credentials/maxthon.rb on lines 47..82
modules/post/windows/gather/credentials/miranda.rb on lines 47..82
modules/post/windows/gather/credentials/opera.rb on lines 97..132
modules/post/windows/gather/credentials/operamail.rb on lines 72..107
modules/post/windows/gather/credentials/postbox.rb on lines 306..341
modules/post/windows/gather/credentials/qq.rb on lines 29..64
modules/post/windows/gather/credentials/safari.rb on lines 62..97
modules/post/windows/gather/credentials/seamonkey.rb on lines 112..147
modules/post/windows/gather/credentials/srware.rb on lines 81..116
modules/post/windows/gather/credentials/tango.rb on lines 75..110
modules/post/windows/gather/credentials/thunderbird.rb on lines 186..221
modules/post/windows/gather/credentials/tlen.rb on lines 54..89
modules/post/windows/gather/credentials/viber.rb on lines 45..80
modules/post/windows/gather/credentials/windowslivemail.rb on lines 47..82
modules/post/windows/gather/credentials/xchat.rb on lines 47..82

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 77.

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 28 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name' => 'Aim credential gatherer',
Severity: Major
Found in modules/post/windows/gather/credentials/aim.rb and 27 other locations - About 2 hrs to fix
modules/post/windows/gather/credentials/chrome.rb on lines 86..125
modules/post/windows/gather/credentials/comodo.rb on lines 121..160
modules/post/windows/gather/credentials/coolnovo.rb on lines 51..90
modules/post/windows/gather/credentials/digsby.rb on lines 46..85
modules/post/windows/gather/credentials/flock.rb on lines 68..107
modules/post/windows/gather/credentials/gadugadu.rb on lines 48..87
modules/post/windows/gather/credentials/icq.rb on lines 73..112
modules/post/windows/gather/credentials/ie.rb on lines 29..68
modules/post/windows/gather/credentials/incredimail.rb on lines 47..86
modules/post/windows/gather/credentials/kakaotalk.rb on lines 44..79
modules/post/windows/gather/credentials/kmeleon.rb on lines 104..139
modules/post/windows/gather/credentials/line.rb on lines 77..112
modules/post/windows/gather/credentials/maxthon.rb on lines 47..82
modules/post/windows/gather/credentials/miranda.rb on lines 47..82
modules/post/windows/gather/credentials/opera.rb on lines 97..132
modules/post/windows/gather/credentials/operamail.rb on lines 72..107
modules/post/windows/gather/credentials/postbox.rb on lines 306..341
modules/post/windows/gather/credentials/qq.rb on lines 29..64
modules/post/windows/gather/credentials/safari.rb on lines 62..97
modules/post/windows/gather/credentials/seamonkey.rb on lines 112..147
modules/post/windows/gather/credentials/srware.rb on lines 81..116
modules/post/windows/gather/credentials/tango.rb on lines 75..110
modules/post/windows/gather/credentials/thunderbird.rb on lines 186..221
modules/post/windows/gather/credentials/tlen.rb on lines 54..89
modules/post/windows/gather/credentials/viber.rb on lines 45..80
modules/post/windows/gather/credentials/windowslivemail.rb on lines 47..82
modules/post/windows/gather/credentials/xchat.rb on lines 47..82

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 77.

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 28 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name' => 'Ie credential gatherer',
Severity: Major
Found in modules/post/windows/gather/credentials/ie.rb and 27 other locations - About 2 hrs to fix
modules/post/windows/gather/credentials/aim.rb on lines 73..112
modules/post/windows/gather/credentials/chrome.rb on lines 86..125
modules/post/windows/gather/credentials/comodo.rb on lines 121..160
modules/post/windows/gather/credentials/coolnovo.rb on lines 51..90
modules/post/windows/gather/credentials/digsby.rb on lines 46..85
modules/post/windows/gather/credentials/flock.rb on lines 68..107
modules/post/windows/gather/credentials/gadugadu.rb on lines 48..87
modules/post/windows/gather/credentials/icq.rb on lines 73..112
modules/post/windows/gather/credentials/incredimail.rb on lines 47..86
modules/post/windows/gather/credentials/kakaotalk.rb on lines 44..79
modules/post/windows/gather/credentials/kmeleon.rb on lines 104..139
modules/post/windows/gather/credentials/line.rb on lines 77..112
modules/post/windows/gather/credentials/maxthon.rb on lines 47..82
modules/post/windows/gather/credentials/miranda.rb on lines 47..82
modules/post/windows/gather/credentials/opera.rb on lines 97..132
modules/post/windows/gather/credentials/operamail.rb on lines 72..107
modules/post/windows/gather/credentials/postbox.rb on lines 306..341
modules/post/windows/gather/credentials/qq.rb on lines 29..64
modules/post/windows/gather/credentials/safari.rb on lines 62..97
modules/post/windows/gather/credentials/seamonkey.rb on lines 112..147
modules/post/windows/gather/credentials/srware.rb on lines 81..116
modules/post/windows/gather/credentials/tango.rb on lines 75..110
modules/post/windows/gather/credentials/thunderbird.rb on lines 186..221
modules/post/windows/gather/credentials/tlen.rb on lines 54..89
modules/post/windows/gather/credentials/viber.rb on lines 45..80
modules/post/windows/gather/credentials/windowslivemail.rb on lines 47..82
modules/post/windows/gather/credentials/xchat.rb on lines 47..82

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 77.

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 28 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name' => 'Miranda credential gatherer',
Severity: Major
Found in modules/post/windows/gather/credentials/miranda.rb and 27 other locations - About 2 hrs to fix
modules/post/windows/gather/credentials/aim.rb on lines 73..112
modules/post/windows/gather/credentials/chrome.rb on lines 86..125
modules/post/windows/gather/credentials/comodo.rb on lines 121..160
modules/post/windows/gather/credentials/coolnovo.rb on lines 51..90
modules/post/windows/gather/credentials/digsby.rb on lines 46..85
modules/post/windows/gather/credentials/flock.rb on lines 68..107
modules/post/windows/gather/credentials/gadugadu.rb on lines 48..87
modules/post/windows/gather/credentials/icq.rb on lines 73..112
modules/post/windows/gather/credentials/ie.rb on lines 29..68
modules/post/windows/gather/credentials/incredimail.rb on lines 47..86
modules/post/windows/gather/credentials/kakaotalk.rb on lines 44..79
modules/post/windows/gather/credentials/kmeleon.rb on lines 104..139
modules/post/windows/gather/credentials/line.rb on lines 77..112
modules/post/windows/gather/credentials/maxthon.rb on lines 47..82
modules/post/windows/gather/credentials/opera.rb on lines 97..132
modules/post/windows/gather/credentials/operamail.rb on lines 72..107
modules/post/windows/gather/credentials/postbox.rb on lines 306..341
modules/post/windows/gather/credentials/qq.rb on lines 29..64
modules/post/windows/gather/credentials/safari.rb on lines 62..97
modules/post/windows/gather/credentials/seamonkey.rb on lines 112..147
modules/post/windows/gather/credentials/srware.rb on lines 81..116
modules/post/windows/gather/credentials/tango.rb on lines 75..110
modules/post/windows/gather/credentials/thunderbird.rb on lines 186..221
modules/post/windows/gather/credentials/tlen.rb on lines 54..89
modules/post/windows/gather/credentials/viber.rb on lines 45..80
modules/post/windows/gather/credentials/windowslivemail.rb on lines 47..82
modules/post/windows/gather/credentials/xchat.rb on lines 47..82

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 77.

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 28 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name' => 'Thunderbird credential gatherer',
Severity: Major
Found in modules/post/windows/gather/credentials/thunderbird.rb and 27 other locations - About 2 hrs to fix
modules/post/windows/gather/credentials/aim.rb on lines 73..112
modules/post/windows/gather/credentials/chrome.rb on lines 86..125
modules/post/windows/gather/credentials/comodo.rb on lines 121..160
modules/post/windows/gather/credentials/coolnovo.rb on lines 51..90
modules/post/windows/gather/credentials/digsby.rb on lines 46..85
modules/post/windows/gather/credentials/flock.rb on lines 68..107
modules/post/windows/gather/credentials/gadugadu.rb on lines 48..87
modules/post/windows/gather/credentials/icq.rb on lines 73..112
modules/post/windows/gather/credentials/ie.rb on lines 29..68
modules/post/windows/gather/credentials/incredimail.rb on lines 47..86
modules/post/windows/gather/credentials/kakaotalk.rb on lines 44..79
modules/post/windows/gather/credentials/kmeleon.rb on lines 104..139
modules/post/windows/gather/credentials/line.rb on lines 77..112
modules/post/windows/gather/credentials/maxthon.rb on lines 47..82
modules/post/windows/gather/credentials/miranda.rb on lines 47..82
modules/post/windows/gather/credentials/opera.rb on lines 97..132
modules/post/windows/gather/credentials/operamail.rb on lines 72..107
modules/post/windows/gather/credentials/postbox.rb on lines 306..341
modules/post/windows/gather/credentials/qq.rb on lines 29..64
modules/post/windows/gather/credentials/safari.rb on lines 62..97
modules/post/windows/gather/credentials/seamonkey.rb on lines 112..147
modules/post/windows/gather/credentials/srware.rb on lines 81..116
modules/post/windows/gather/credentials/tango.rb on lines 75..110
modules/post/windows/gather/credentials/tlen.rb on lines 54..89
modules/post/windows/gather/credentials/viber.rb on lines 45..80
modules/post/windows/gather/credentials/windowslivemail.rb on lines 47..82
modules/post/windows/gather/credentials/xchat.rb on lines 47..82

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 77.

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 28 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name' => 'Windows Live Mail credential gatherer',
Severity: Major
Found in modules/post/windows/gather/credentials/windowslivemail.rb and 27 other locations - About 2 hrs to fix
modules/post/windows/gather/credentials/aim.rb on lines 73..112
modules/post/windows/gather/credentials/chrome.rb on lines 86..125
modules/post/windows/gather/credentials/comodo.rb on lines 121..160
modules/post/windows/gather/credentials/coolnovo.rb on lines 51..90
modules/post/windows/gather/credentials/digsby.rb on lines 46..85
modules/post/windows/gather/credentials/flock.rb on lines 68..107
modules/post/windows/gather/credentials/gadugadu.rb on lines 48..87
modules/post/windows/gather/credentials/icq.rb on lines 73..112
modules/post/windows/gather/credentials/ie.rb on lines 29..68
modules/post/windows/gather/credentials/incredimail.rb on lines 47..86
modules/post/windows/gather/credentials/kakaotalk.rb on lines 44..79
modules/post/windows/gather/credentials/kmeleon.rb on lines 104..139
modules/post/windows/gather/credentials/line.rb on lines 77..112
modules/post/windows/gather/credentials/maxthon.rb on lines 47..82
modules/post/windows/gather/credentials/miranda.rb on lines 47..82
modules/post/windows/gather/credentials/opera.rb on lines 97..132
modules/post/windows/gather/credentials/operamail.rb on lines 72..107
modules/post/windows/gather/credentials/postbox.rb on lines 306..341
modules/post/windows/gather/credentials/qq.rb on lines 29..64
modules/post/windows/gather/credentials/safari.rb on lines 62..97
modules/post/windows/gather/credentials/seamonkey.rb on lines 112..147
modules/post/windows/gather/credentials/srware.rb on lines 81..116
modules/post/windows/gather/credentials/tango.rb on lines 75..110
modules/post/windows/gather/credentials/thunderbird.rb on lines 186..221
modules/post/windows/gather/credentials/tlen.rb on lines 54..89
modules/post/windows/gather/credentials/viber.rb on lines 45..80
modules/post/windows/gather/credentials/xchat.rb on lines 47..82

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 77.

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 28 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name' => 'Operamail credential gatherer',
Severity: Major
Found in modules/post/windows/gather/credentials/operamail.rb and 27 other locations - About 2 hrs to fix
modules/post/windows/gather/credentials/aim.rb on lines 73..112
modules/post/windows/gather/credentials/chrome.rb on lines 86..125
modules/post/windows/gather/credentials/comodo.rb on lines 121..160
modules/post/windows/gather/credentials/coolnovo.rb on lines 51..90
modules/post/windows/gather/credentials/digsby.rb on lines 46..85
modules/post/windows/gather/credentials/flock.rb on lines 68..107
modules/post/windows/gather/credentials/gadugadu.rb on lines 48..87
modules/post/windows/gather/credentials/icq.rb on lines 73..112
modules/post/windows/gather/credentials/ie.rb on lines 29..68
modules/post/windows/gather/credentials/incredimail.rb on lines 47..86
modules/post/windows/gather/credentials/kakaotalk.rb on lines 44..79
modules/post/windows/gather/credentials/kmeleon.rb on lines 104..139
modules/post/windows/gather/credentials/line.rb on lines 77..112
modules/post/windows/gather/credentials/maxthon.rb on lines 47..82
modules/post/windows/gather/credentials/miranda.rb on lines 47..82
modules/post/windows/gather/credentials/opera.rb on lines 97..132
modules/post/windows/gather/credentials/postbox.rb on lines 306..341
modules/post/windows/gather/credentials/qq.rb on lines 29..64
modules/post/windows/gather/credentials/safari.rb on lines 62..97
modules/post/windows/gather/credentials/seamonkey.rb on lines 112..147
modules/post/windows/gather/credentials/srware.rb on lines 81..116
modules/post/windows/gather/credentials/tango.rb on lines 75..110
modules/post/windows/gather/credentials/thunderbird.rb on lines 186..221
modules/post/windows/gather/credentials/tlen.rb on lines 54..89
modules/post/windows/gather/credentials/viber.rb on lines 45..80
modules/post/windows/gather/credentials/windowslivemail.rb on lines 47..82
modules/post/windows/gather/credentials/xchat.rb on lines 47..82

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 77.

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 28 locations. Consider refactoring.
Open

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name' => 'Gadugadu credential gatherer',
Severity: Major
Found in modules/post/windows/gather/credentials/gadugadu.rb and 27 other locations - About 2 hrs to fix
modules/post/windows/gather/credentials/aim.rb on lines 73..112
modules/post/windows/gather/credentials/chrome.rb on lines 86..125
modules/post/windows/gather/credentials/comodo.rb on lines 121..160
modules/post/windows/gather/credentials/coolnovo.rb on lines 51..90
modules/post/windows/gather/credentials/digsby.rb on lines 46..85
modules/post/windows/gather/credentials/flock.rb on lines 68..107
modules/post/windows/gather/credentials/icq.rb on lines 73..112
modules/post/windows/gather/credentials/ie.rb on lines 29..68
modules/post/windows/gather/credentials/incredimail.rb on lines 47..86
modules/post/windows/gather/credentials/kakaotalk.rb on lines 44..79
modules/post/windows/gather/credentials/kmeleon.rb on lines 104..139
modules/post/windows/gather/credentials/line.rb on lines 77..112
modules/post/windows/gather/credentials/maxthon.rb on lines 47..82
modules/post/windows/gather/credentials/miranda.rb on lines 47..82
modules/post/windows/gather/credentials/opera.rb on lines 97..132
modules/post/windows/gather/credentials/operamail.rb on lines 72..107
modules/post/windows/gather/credentials/postbox.rb on lines 306..341
modules/post/windows/gather/credentials/qq.rb on lines 29..64
modules/post/windows/gather/credentials/safari.rb on lines 62..97
modules/post/windows/gather/credentials/seamonkey.rb on lines 112..147
modules/post/windows/gather/credentials/srware.rb on lines 81..116
modules/post/windows/gather/credentials/tango.rb on lines 75..110
modules/post/windows/gather/credentials/thunderbird.rb on lines 186..221
modules/post/windows/gather/credentials/tlen.rb on lines 54..89
modules/post/windows/gather/credentials/viber.rb on lines 45..80
modules/post/windows/gather/credentials/windowslivemail.rb on lines 47..82
modules/post/windows/gather/credentials/xchat.rb on lines 47..82

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 77.

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