rapid7/metasploit-framework

View on GitHub

Showing 22,177 of 22,177 total issues

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

      service_name: service_name,
      protocol: 'tcp',
      workspace_id: myworkspace_id
    }

Severity: Minor
Found in modules/auxiliary/gather/xerox_pwd_extract.rb and 1 other location - About 35 mins to fix
modules/auxiliary/gather/xerox_pwd_extract.rb on lines 103..109

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

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

      update_info(
        info,
        'Name' => 'UNIX Gather Cached AD Hashes',
        'Description' => %q{ Post Module to obtain all cached AD hashes on the targeted UNIX machine. These can be cracked with John the Ripper (JtR). },
        'License' => MSF_LICENSE,
Severity: Minor
Found in modules/post/multi/gather/unix_cached_ad_hashes.rb and 1 other location - About 35 mins to fix
modules/post/multi/gather/unix_kerberos_tickets.rb on lines 38..51

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

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

  def run
    print_status('Filtering based on these selections:  ')
    print_status("ARTIFACTS: #{datastore['ARTIFACTS'].capitalize}")
    print_status("STORE_LOOT: #{datastore['STORE_LOOT']}")
    print_status("EXTRACT_DATA: #{datastore['EXTRACT_DATA']}\n")
Severity: Major
Found in modules/post/windows/gather/credentials/halloy_irc.rb and 32 other locations - About 30 mins to fix
modules/post/windows/gather/credentials/adi_irc.rb on lines 86..97
modules/post/windows/gather/credentials/aim.rb on lines 116..127
modules/post/windows/gather/credentials/carotdav_ftp.rb on lines 78..89
modules/post/windows/gather/credentials/chrome.rb on lines 129..140
modules/post/windows/gather/credentials/comodo.rb on lines 164..175
modules/post/windows/gather/credentials/coolnovo.rb on lines 94..105
modules/post/windows/gather/credentials/digsby.rb on lines 89..100
modules/post/windows/gather/credentials/flock.rb on lines 111..122
modules/post/windows/gather/credentials/gadugadu.rb on lines 91..102
modules/post/windows/gather/credentials/icq.rb on lines 116..127
modules/post/windows/gather/credentials/ie.rb on lines 72..83
modules/post/windows/gather/credentials/incredimail.rb on lines 90..101
modules/post/windows/gather/credentials/kakaotalk.rb on lines 83..94
modules/post/windows/gather/credentials/kmeleon.rb on lines 143..154
modules/post/windows/gather/credentials/line.rb on lines 116..127
modules/post/windows/gather/credentials/maxthon.rb on lines 86..97
modules/post/windows/gather/credentials/opera.rb on lines 136..147
modules/post/windows/gather/credentials/operamail.rb on lines 111..122
modules/post/windows/gather/credentials/postbox.rb on lines 345..356
modules/post/windows/gather/credentials/qq.rb on lines 68..79
modules/post/windows/gather/credentials/quassel_irc.rb on lines 82..93
modules/post/windows/gather/credentials/redis_desktop_manager.rb on lines 80..91
modules/post/windows/gather/credentials/safari.rb on lines 101..112
modules/post/windows/gather/credentials/seamonkey.rb on lines 151..162
modules/post/windows/gather/credentials/srware.rb on lines 120..131
modules/post/windows/gather/credentials/sylpheed.rb on lines 78..89
modules/post/windows/gather/credentials/tango.rb on lines 114..125
modules/post/windows/gather/credentials/thunderbird.rb on lines 225..236
modules/post/windows/gather/credentials/tlen.rb on lines 93..104
modules/post/windows/gather/credentials/viber.rb on lines 84..95
modules/post/windows/gather/credentials/windowslivemail.rb on lines 86..97
modules/post/windows/gather/credentials/xchat.rb on lines 86..97

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

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

  def run
    print_status('Filtering based on these selections:  ')
    print_status("ARTIFACTS: #{datastore['ARTIFACTS'].capitalize}")
    print_status("STORE_LOOT: #{datastore['STORE_LOOT']}")
    print_status("EXTRACT_DATA: #{datastore['EXTRACT_DATA']}\n")
Severity: Major
Found in modules/post/windows/gather/credentials/chrome.rb and 32 other locations - About 30 mins to fix
modules/post/windows/gather/credentials/adi_irc.rb on lines 86..97
modules/post/windows/gather/credentials/aim.rb on lines 116..127
modules/post/windows/gather/credentials/carotdav_ftp.rb on lines 78..89
modules/post/windows/gather/credentials/comodo.rb on lines 164..175
modules/post/windows/gather/credentials/coolnovo.rb on lines 94..105
modules/post/windows/gather/credentials/digsby.rb on lines 89..100
modules/post/windows/gather/credentials/flock.rb on lines 111..122
modules/post/windows/gather/credentials/gadugadu.rb on lines 91..102
modules/post/windows/gather/credentials/halloy_irc.rb on lines 77..88
modules/post/windows/gather/credentials/icq.rb on lines 116..127
modules/post/windows/gather/credentials/ie.rb on lines 72..83
modules/post/windows/gather/credentials/incredimail.rb on lines 90..101
modules/post/windows/gather/credentials/kakaotalk.rb on lines 83..94
modules/post/windows/gather/credentials/kmeleon.rb on lines 143..154
modules/post/windows/gather/credentials/line.rb on lines 116..127
modules/post/windows/gather/credentials/maxthon.rb on lines 86..97
modules/post/windows/gather/credentials/opera.rb on lines 136..147
modules/post/windows/gather/credentials/operamail.rb on lines 111..122
modules/post/windows/gather/credentials/postbox.rb on lines 345..356
modules/post/windows/gather/credentials/qq.rb on lines 68..79
modules/post/windows/gather/credentials/quassel_irc.rb on lines 82..93
modules/post/windows/gather/credentials/redis_desktop_manager.rb on lines 80..91
modules/post/windows/gather/credentials/safari.rb on lines 101..112
modules/post/windows/gather/credentials/seamonkey.rb on lines 151..162
modules/post/windows/gather/credentials/srware.rb on lines 120..131
modules/post/windows/gather/credentials/sylpheed.rb on lines 78..89
modules/post/windows/gather/credentials/tango.rb on lines 114..125
modules/post/windows/gather/credentials/thunderbird.rb on lines 225..236
modules/post/windows/gather/credentials/tlen.rb on lines 93..104
modules/post/windows/gather/credentials/viber.rb on lines 84..95
modules/post/windows/gather/credentials/windowslivemail.rb on lines 86..97
modules/post/windows/gather/credentials/xchat.rb on lines 86..97

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

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

Identical blocks of code found in 5 locations. Consider refactoring.
Open

  def live_compile?
    return false unless datastore['COMPILE'].eql?('Auto') || datastore['COMPILE'].eql?('True')

    if has_gcc?
      vprint_good 'gcc is installed'
Severity: Major
Found in modules/exploits/linux/local/ufo_privilege_escalation.rb and 4 other locations - About 30 mins to fix
modules/exploits/linux/local/af_packet_packet_set_ring_priv_esc.rb on lines 122..131
modules/exploits/linux/local/glibc_realpath_priv_esc.rb on lines 120..129
modules/exploits/linux/local/nested_namespace_idmap_limit_priv_esc.rb on lines 138..147
modules/exploits/linux/local/recvmmsg_priv_esc.rb on lines 100..109

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

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

Identical blocks of code found in 5 locations. Consider refactoring.
Open

  def live_compile?
    return false unless datastore['COMPILE'].eql?('Auto') || datastore['COMPILE'].eql?('True')

    if has_gcc?
      vprint_good 'gcc is installed'
modules/exploits/linux/local/glibc_realpath_priv_esc.rb on lines 120..129
modules/exploits/linux/local/nested_namespace_idmap_limit_priv_esc.rb on lines 138..147
modules/exploits/linux/local/recvmmsg_priv_esc.rb on lines 100..109
modules/exploits/linux/local/ufo_privilege_escalation.rb on lines 124..133

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

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

  def run
    print_status('Filtering based on these selections:  ')
    print_status("ARTIFACTS: #{datastore['ARTIFACTS'].capitalize}")
    print_status("STORE_LOOT: #{datastore['STORE_LOOT']}")
    print_status("EXTRACT_DATA: #{datastore['EXTRACT_DATA']}\n")
Severity: Major
Found in modules/post/windows/gather/credentials/ie.rb and 32 other locations - About 30 mins to fix
modules/post/windows/gather/credentials/adi_irc.rb on lines 86..97
modules/post/windows/gather/credentials/aim.rb on lines 116..127
modules/post/windows/gather/credentials/carotdav_ftp.rb on lines 78..89
modules/post/windows/gather/credentials/chrome.rb on lines 129..140
modules/post/windows/gather/credentials/comodo.rb on lines 164..175
modules/post/windows/gather/credentials/coolnovo.rb on lines 94..105
modules/post/windows/gather/credentials/digsby.rb on lines 89..100
modules/post/windows/gather/credentials/flock.rb on lines 111..122
modules/post/windows/gather/credentials/gadugadu.rb on lines 91..102
modules/post/windows/gather/credentials/halloy_irc.rb on lines 77..88
modules/post/windows/gather/credentials/icq.rb on lines 116..127
modules/post/windows/gather/credentials/incredimail.rb on lines 90..101
modules/post/windows/gather/credentials/kakaotalk.rb on lines 83..94
modules/post/windows/gather/credentials/kmeleon.rb on lines 143..154
modules/post/windows/gather/credentials/line.rb on lines 116..127
modules/post/windows/gather/credentials/maxthon.rb on lines 86..97
modules/post/windows/gather/credentials/opera.rb on lines 136..147
modules/post/windows/gather/credentials/operamail.rb on lines 111..122
modules/post/windows/gather/credentials/postbox.rb on lines 345..356
modules/post/windows/gather/credentials/qq.rb on lines 68..79
modules/post/windows/gather/credentials/quassel_irc.rb on lines 82..93
modules/post/windows/gather/credentials/redis_desktop_manager.rb on lines 80..91
modules/post/windows/gather/credentials/safari.rb on lines 101..112
modules/post/windows/gather/credentials/seamonkey.rb on lines 151..162
modules/post/windows/gather/credentials/srware.rb on lines 120..131
modules/post/windows/gather/credentials/sylpheed.rb on lines 78..89
modules/post/windows/gather/credentials/tango.rb on lines 114..125
modules/post/windows/gather/credentials/thunderbird.rb on lines 225..236
modules/post/windows/gather/credentials/tlen.rb on lines 93..104
modules/post/windows/gather/credentials/viber.rb on lines 84..95
modules/post/windows/gather/credentials/windowslivemail.rb on lines 86..97
modules/post/windows/gather/credentials/xchat.rb on lines 86..97

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

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

  def run
    print_status('Filtering based on these selections:  ')
    print_status("ARTIFACTS: #{datastore['ARTIFACTS'].capitalize}")
    print_status("STORE_LOOT: #{datastore['STORE_LOOT']}")
    print_status("EXTRACT_DATA: #{datastore['EXTRACT_DATA']}\n")
Severity: Major
Found in modules/post/windows/gather/credentials/coolnovo.rb and 32 other locations - About 30 mins to fix
modules/post/windows/gather/credentials/adi_irc.rb on lines 86..97
modules/post/windows/gather/credentials/aim.rb on lines 116..127
modules/post/windows/gather/credentials/carotdav_ftp.rb on lines 78..89
modules/post/windows/gather/credentials/chrome.rb on lines 129..140
modules/post/windows/gather/credentials/comodo.rb on lines 164..175
modules/post/windows/gather/credentials/digsby.rb on lines 89..100
modules/post/windows/gather/credentials/flock.rb on lines 111..122
modules/post/windows/gather/credentials/gadugadu.rb on lines 91..102
modules/post/windows/gather/credentials/halloy_irc.rb on lines 77..88
modules/post/windows/gather/credentials/icq.rb on lines 116..127
modules/post/windows/gather/credentials/ie.rb on lines 72..83
modules/post/windows/gather/credentials/incredimail.rb on lines 90..101
modules/post/windows/gather/credentials/kakaotalk.rb on lines 83..94
modules/post/windows/gather/credentials/kmeleon.rb on lines 143..154
modules/post/windows/gather/credentials/line.rb on lines 116..127
modules/post/windows/gather/credentials/maxthon.rb on lines 86..97
modules/post/windows/gather/credentials/opera.rb on lines 136..147
modules/post/windows/gather/credentials/operamail.rb on lines 111..122
modules/post/windows/gather/credentials/postbox.rb on lines 345..356
modules/post/windows/gather/credentials/qq.rb on lines 68..79
modules/post/windows/gather/credentials/quassel_irc.rb on lines 82..93
modules/post/windows/gather/credentials/redis_desktop_manager.rb on lines 80..91
modules/post/windows/gather/credentials/safari.rb on lines 101..112
modules/post/windows/gather/credentials/seamonkey.rb on lines 151..162
modules/post/windows/gather/credentials/srware.rb on lines 120..131
modules/post/windows/gather/credentials/sylpheed.rb on lines 78..89
modules/post/windows/gather/credentials/tango.rb on lines 114..125
modules/post/windows/gather/credentials/thunderbird.rb on lines 225..236
modules/post/windows/gather/credentials/tlen.rb on lines 93..104
modules/post/windows/gather/credentials/viber.rb on lines 84..95
modules/post/windows/gather/credentials/windowslivemail.rb on lines 86..97
modules/post/windows/gather/credentials/xchat.rb on lines 86..97

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

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

  def run
    print_status('Filtering based on these selections:  ')
    print_status("ARTIFACTS: #{datastore['ARTIFACTS'].capitalize}")
    print_status("STORE_LOOT: #{datastore['STORE_LOOT']}")
    print_status("EXTRACT_DATA: #{datastore['EXTRACT_DATA']}\n")
Severity: Major
Found in modules/post/windows/gather/credentials/maxthon.rb and 32 other locations - About 30 mins to fix
modules/post/windows/gather/credentials/adi_irc.rb on lines 86..97
modules/post/windows/gather/credentials/aim.rb on lines 116..127
modules/post/windows/gather/credentials/carotdav_ftp.rb on lines 78..89
modules/post/windows/gather/credentials/chrome.rb on lines 129..140
modules/post/windows/gather/credentials/comodo.rb on lines 164..175
modules/post/windows/gather/credentials/coolnovo.rb on lines 94..105
modules/post/windows/gather/credentials/digsby.rb on lines 89..100
modules/post/windows/gather/credentials/flock.rb on lines 111..122
modules/post/windows/gather/credentials/gadugadu.rb on lines 91..102
modules/post/windows/gather/credentials/halloy_irc.rb on lines 77..88
modules/post/windows/gather/credentials/icq.rb on lines 116..127
modules/post/windows/gather/credentials/ie.rb on lines 72..83
modules/post/windows/gather/credentials/incredimail.rb on lines 90..101
modules/post/windows/gather/credentials/kakaotalk.rb on lines 83..94
modules/post/windows/gather/credentials/kmeleon.rb on lines 143..154
modules/post/windows/gather/credentials/line.rb on lines 116..127
modules/post/windows/gather/credentials/opera.rb on lines 136..147
modules/post/windows/gather/credentials/operamail.rb on lines 111..122
modules/post/windows/gather/credentials/postbox.rb on lines 345..356
modules/post/windows/gather/credentials/qq.rb on lines 68..79
modules/post/windows/gather/credentials/quassel_irc.rb on lines 82..93
modules/post/windows/gather/credentials/redis_desktop_manager.rb on lines 80..91
modules/post/windows/gather/credentials/safari.rb on lines 101..112
modules/post/windows/gather/credentials/seamonkey.rb on lines 151..162
modules/post/windows/gather/credentials/srware.rb on lines 120..131
modules/post/windows/gather/credentials/sylpheed.rb on lines 78..89
modules/post/windows/gather/credentials/tango.rb on lines 114..125
modules/post/windows/gather/credentials/thunderbird.rb on lines 225..236
modules/post/windows/gather/credentials/tlen.rb on lines 93..104
modules/post/windows/gather/credentials/viber.rb on lines 84..95
modules/post/windows/gather/credentials/windowslivemail.rb on lines 86..97
modules/post/windows/gather/credentials/xchat.rb on lines 86..97

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

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

  def run
    print_status('Filtering based on these selections:  ')
    print_status("ARTIFACTS: #{datastore['ARTIFACTS'].capitalize}")
    print_status("STORE_LOOT: #{datastore['STORE_LOOT']}")
    print_status("EXTRACT_DATA: #{datastore['EXTRACT_DATA']}\n")
Severity: Major
Found in modules/post/windows/gather/credentials/seamonkey.rb and 32 other locations - About 30 mins to fix
modules/post/windows/gather/credentials/adi_irc.rb on lines 86..97
modules/post/windows/gather/credentials/aim.rb on lines 116..127
modules/post/windows/gather/credentials/carotdav_ftp.rb on lines 78..89
modules/post/windows/gather/credentials/chrome.rb on lines 129..140
modules/post/windows/gather/credentials/comodo.rb on lines 164..175
modules/post/windows/gather/credentials/coolnovo.rb on lines 94..105
modules/post/windows/gather/credentials/digsby.rb on lines 89..100
modules/post/windows/gather/credentials/flock.rb on lines 111..122
modules/post/windows/gather/credentials/gadugadu.rb on lines 91..102
modules/post/windows/gather/credentials/halloy_irc.rb on lines 77..88
modules/post/windows/gather/credentials/icq.rb on lines 116..127
modules/post/windows/gather/credentials/ie.rb on lines 72..83
modules/post/windows/gather/credentials/incredimail.rb on lines 90..101
modules/post/windows/gather/credentials/kakaotalk.rb on lines 83..94
modules/post/windows/gather/credentials/kmeleon.rb on lines 143..154
modules/post/windows/gather/credentials/line.rb on lines 116..127
modules/post/windows/gather/credentials/maxthon.rb on lines 86..97
modules/post/windows/gather/credentials/opera.rb on lines 136..147
modules/post/windows/gather/credentials/operamail.rb on lines 111..122
modules/post/windows/gather/credentials/postbox.rb on lines 345..356
modules/post/windows/gather/credentials/qq.rb on lines 68..79
modules/post/windows/gather/credentials/quassel_irc.rb on lines 82..93
modules/post/windows/gather/credentials/redis_desktop_manager.rb on lines 80..91
modules/post/windows/gather/credentials/safari.rb on lines 101..112
modules/post/windows/gather/credentials/srware.rb on lines 120..131
modules/post/windows/gather/credentials/sylpheed.rb on lines 78..89
modules/post/windows/gather/credentials/tango.rb on lines 114..125
modules/post/windows/gather/credentials/thunderbird.rb on lines 225..236
modules/post/windows/gather/credentials/tlen.rb on lines 93..104
modules/post/windows/gather/credentials/viber.rb on lines 84..95
modules/post/windows/gather/credentials/windowslivemail.rb on lines 86..97
modules/post/windows/gather/credentials/xchat.rb on lines 86..97

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

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

  def run
    print_status('Filtering based on these selections:  ')
    print_status("ARTIFACTS: #{datastore['ARTIFACTS'].capitalize}")
    print_status("STORE_LOOT: #{datastore['STORE_LOOT']}")
    print_status("EXTRACT_DATA: #{datastore['EXTRACT_DATA']}\n")
Severity: Major
Found in modules/post/windows/gather/credentials/operamail.rb and 32 other locations - About 30 mins to fix
modules/post/windows/gather/credentials/adi_irc.rb on lines 86..97
modules/post/windows/gather/credentials/aim.rb on lines 116..127
modules/post/windows/gather/credentials/carotdav_ftp.rb on lines 78..89
modules/post/windows/gather/credentials/chrome.rb on lines 129..140
modules/post/windows/gather/credentials/comodo.rb on lines 164..175
modules/post/windows/gather/credentials/coolnovo.rb on lines 94..105
modules/post/windows/gather/credentials/digsby.rb on lines 89..100
modules/post/windows/gather/credentials/flock.rb on lines 111..122
modules/post/windows/gather/credentials/gadugadu.rb on lines 91..102
modules/post/windows/gather/credentials/halloy_irc.rb on lines 77..88
modules/post/windows/gather/credentials/icq.rb on lines 116..127
modules/post/windows/gather/credentials/ie.rb on lines 72..83
modules/post/windows/gather/credentials/incredimail.rb on lines 90..101
modules/post/windows/gather/credentials/kakaotalk.rb on lines 83..94
modules/post/windows/gather/credentials/kmeleon.rb on lines 143..154
modules/post/windows/gather/credentials/line.rb on lines 116..127
modules/post/windows/gather/credentials/maxthon.rb on lines 86..97
modules/post/windows/gather/credentials/opera.rb on lines 136..147
modules/post/windows/gather/credentials/postbox.rb on lines 345..356
modules/post/windows/gather/credentials/qq.rb on lines 68..79
modules/post/windows/gather/credentials/quassel_irc.rb on lines 82..93
modules/post/windows/gather/credentials/redis_desktop_manager.rb on lines 80..91
modules/post/windows/gather/credentials/safari.rb on lines 101..112
modules/post/windows/gather/credentials/seamonkey.rb on lines 151..162
modules/post/windows/gather/credentials/srware.rb on lines 120..131
modules/post/windows/gather/credentials/sylpheed.rb on lines 78..89
modules/post/windows/gather/credentials/tango.rb on lines 114..125
modules/post/windows/gather/credentials/thunderbird.rb on lines 225..236
modules/post/windows/gather/credentials/tlen.rb on lines 93..104
modules/post/windows/gather/credentials/viber.rb on lines 84..95
modules/post/windows/gather/credentials/windowslivemail.rb on lines 86..97
modules/post/windows/gather/credentials/xchat.rb on lines 86..97

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

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

  def run
    print_status('Filtering based on these selections:  ')
    print_status("ARTIFACTS: #{datastore['ARTIFACTS'].capitalize}")
    print_status("STORE_LOOT: #{datastore['STORE_LOOT']}")
    print_status("EXTRACT_DATA: #{datastore['EXTRACT_DATA']}\n")
Severity: Major
Found in modules/post/windows/gather/credentials/flock.rb and 32 other locations - About 30 mins to fix
modules/post/windows/gather/credentials/adi_irc.rb on lines 86..97
modules/post/windows/gather/credentials/aim.rb on lines 116..127
modules/post/windows/gather/credentials/carotdav_ftp.rb on lines 78..89
modules/post/windows/gather/credentials/chrome.rb on lines 129..140
modules/post/windows/gather/credentials/comodo.rb on lines 164..175
modules/post/windows/gather/credentials/coolnovo.rb on lines 94..105
modules/post/windows/gather/credentials/digsby.rb on lines 89..100
modules/post/windows/gather/credentials/gadugadu.rb on lines 91..102
modules/post/windows/gather/credentials/halloy_irc.rb on lines 77..88
modules/post/windows/gather/credentials/icq.rb on lines 116..127
modules/post/windows/gather/credentials/ie.rb on lines 72..83
modules/post/windows/gather/credentials/incredimail.rb on lines 90..101
modules/post/windows/gather/credentials/kakaotalk.rb on lines 83..94
modules/post/windows/gather/credentials/kmeleon.rb on lines 143..154
modules/post/windows/gather/credentials/line.rb on lines 116..127
modules/post/windows/gather/credentials/maxthon.rb on lines 86..97
modules/post/windows/gather/credentials/opera.rb on lines 136..147
modules/post/windows/gather/credentials/operamail.rb on lines 111..122
modules/post/windows/gather/credentials/postbox.rb on lines 345..356
modules/post/windows/gather/credentials/qq.rb on lines 68..79
modules/post/windows/gather/credentials/quassel_irc.rb on lines 82..93
modules/post/windows/gather/credentials/redis_desktop_manager.rb on lines 80..91
modules/post/windows/gather/credentials/safari.rb on lines 101..112
modules/post/windows/gather/credentials/seamonkey.rb on lines 151..162
modules/post/windows/gather/credentials/srware.rb on lines 120..131
modules/post/windows/gather/credentials/sylpheed.rb on lines 78..89
modules/post/windows/gather/credentials/tango.rb on lines 114..125
modules/post/windows/gather/credentials/thunderbird.rb on lines 225..236
modules/post/windows/gather/credentials/tlen.rb on lines 93..104
modules/post/windows/gather/credentials/viber.rb on lines 84..95
modules/post/windows/gather/credentials/windowslivemail.rb on lines 86..97
modules/post/windows/gather/credentials/xchat.rb on lines 86..97

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

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

  def run
    print_status('Filtering based on these selections:  ')
    print_status("ARTIFACTS: #{datastore['ARTIFACTS'].capitalize}")
    print_status("STORE_LOOT: #{datastore['STORE_LOOT']}")
    print_status("EXTRACT_DATA: #{datastore['EXTRACT_DATA']}\n")
Severity: Major
Found in modules/post/windows/gather/credentials/thunderbird.rb and 32 other locations - About 30 mins to fix
modules/post/windows/gather/credentials/adi_irc.rb on lines 86..97
modules/post/windows/gather/credentials/aim.rb on lines 116..127
modules/post/windows/gather/credentials/carotdav_ftp.rb on lines 78..89
modules/post/windows/gather/credentials/chrome.rb on lines 129..140
modules/post/windows/gather/credentials/comodo.rb on lines 164..175
modules/post/windows/gather/credentials/coolnovo.rb on lines 94..105
modules/post/windows/gather/credentials/digsby.rb on lines 89..100
modules/post/windows/gather/credentials/flock.rb on lines 111..122
modules/post/windows/gather/credentials/gadugadu.rb on lines 91..102
modules/post/windows/gather/credentials/halloy_irc.rb on lines 77..88
modules/post/windows/gather/credentials/icq.rb on lines 116..127
modules/post/windows/gather/credentials/ie.rb on lines 72..83
modules/post/windows/gather/credentials/incredimail.rb on lines 90..101
modules/post/windows/gather/credentials/kakaotalk.rb on lines 83..94
modules/post/windows/gather/credentials/kmeleon.rb on lines 143..154
modules/post/windows/gather/credentials/line.rb on lines 116..127
modules/post/windows/gather/credentials/maxthon.rb on lines 86..97
modules/post/windows/gather/credentials/opera.rb on lines 136..147
modules/post/windows/gather/credentials/operamail.rb on lines 111..122
modules/post/windows/gather/credentials/postbox.rb on lines 345..356
modules/post/windows/gather/credentials/qq.rb on lines 68..79
modules/post/windows/gather/credentials/quassel_irc.rb on lines 82..93
modules/post/windows/gather/credentials/redis_desktop_manager.rb on lines 80..91
modules/post/windows/gather/credentials/safari.rb on lines 101..112
modules/post/windows/gather/credentials/seamonkey.rb on lines 151..162
modules/post/windows/gather/credentials/srware.rb on lines 120..131
modules/post/windows/gather/credentials/sylpheed.rb on lines 78..89
modules/post/windows/gather/credentials/tango.rb on lines 114..125
modules/post/windows/gather/credentials/tlen.rb on lines 93..104
modules/post/windows/gather/credentials/viber.rb on lines 84..95
modules/post/windows/gather/credentials/windowslivemail.rb on lines 86..97
modules/post/windows/gather/credentials/xchat.rb on lines 86..97

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

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

  def run
    print_status('Filtering based on these selections:  ')
    print_status("ARTIFACTS: #{datastore['ARTIFACTS'].capitalize}")
    print_status("STORE_LOOT: #{datastore['STORE_LOOT']}")
    print_status("EXTRACT_DATA: #{datastore['EXTRACT_DATA']}\n")
Severity: Major
Found in modules/post/windows/gather/credentials/tlen.rb and 32 other locations - About 30 mins to fix
modules/post/windows/gather/credentials/adi_irc.rb on lines 86..97
modules/post/windows/gather/credentials/aim.rb on lines 116..127
modules/post/windows/gather/credentials/carotdav_ftp.rb on lines 78..89
modules/post/windows/gather/credentials/chrome.rb on lines 129..140
modules/post/windows/gather/credentials/comodo.rb on lines 164..175
modules/post/windows/gather/credentials/coolnovo.rb on lines 94..105
modules/post/windows/gather/credentials/digsby.rb on lines 89..100
modules/post/windows/gather/credentials/flock.rb on lines 111..122
modules/post/windows/gather/credentials/gadugadu.rb on lines 91..102
modules/post/windows/gather/credentials/halloy_irc.rb on lines 77..88
modules/post/windows/gather/credentials/icq.rb on lines 116..127
modules/post/windows/gather/credentials/ie.rb on lines 72..83
modules/post/windows/gather/credentials/incredimail.rb on lines 90..101
modules/post/windows/gather/credentials/kakaotalk.rb on lines 83..94
modules/post/windows/gather/credentials/kmeleon.rb on lines 143..154
modules/post/windows/gather/credentials/line.rb on lines 116..127
modules/post/windows/gather/credentials/maxthon.rb on lines 86..97
modules/post/windows/gather/credentials/opera.rb on lines 136..147
modules/post/windows/gather/credentials/operamail.rb on lines 111..122
modules/post/windows/gather/credentials/postbox.rb on lines 345..356
modules/post/windows/gather/credentials/qq.rb on lines 68..79
modules/post/windows/gather/credentials/quassel_irc.rb on lines 82..93
modules/post/windows/gather/credentials/redis_desktop_manager.rb on lines 80..91
modules/post/windows/gather/credentials/safari.rb on lines 101..112
modules/post/windows/gather/credentials/seamonkey.rb on lines 151..162
modules/post/windows/gather/credentials/srware.rb on lines 120..131
modules/post/windows/gather/credentials/sylpheed.rb on lines 78..89
modules/post/windows/gather/credentials/tango.rb on lines 114..125
modules/post/windows/gather/credentials/thunderbird.rb on lines 225..236
modules/post/windows/gather/credentials/viber.rb on lines 84..95
modules/post/windows/gather/credentials/windowslivemail.rb on lines 86..97
modules/post/windows/gather/credentials/xchat.rb on lines 86..97

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

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

  def run
    print_status('Filtering based on these selections:  ')
    print_status("ARTIFACTS: #{datastore['ARTIFACTS'].capitalize}")
    print_status("STORE_LOOT: #{datastore['STORE_LOOT']}")
    print_status("EXTRACT_DATA: #{datastore['EXTRACT_DATA']}\n")
Severity: Major
Found in modules/post/windows/gather/credentials/tango.rb and 32 other locations - About 30 mins to fix
modules/post/windows/gather/credentials/adi_irc.rb on lines 86..97
modules/post/windows/gather/credentials/aim.rb on lines 116..127
modules/post/windows/gather/credentials/carotdav_ftp.rb on lines 78..89
modules/post/windows/gather/credentials/chrome.rb on lines 129..140
modules/post/windows/gather/credentials/comodo.rb on lines 164..175
modules/post/windows/gather/credentials/coolnovo.rb on lines 94..105
modules/post/windows/gather/credentials/digsby.rb on lines 89..100
modules/post/windows/gather/credentials/flock.rb on lines 111..122
modules/post/windows/gather/credentials/gadugadu.rb on lines 91..102
modules/post/windows/gather/credentials/halloy_irc.rb on lines 77..88
modules/post/windows/gather/credentials/icq.rb on lines 116..127
modules/post/windows/gather/credentials/ie.rb on lines 72..83
modules/post/windows/gather/credentials/incredimail.rb on lines 90..101
modules/post/windows/gather/credentials/kakaotalk.rb on lines 83..94
modules/post/windows/gather/credentials/kmeleon.rb on lines 143..154
modules/post/windows/gather/credentials/line.rb on lines 116..127
modules/post/windows/gather/credentials/maxthon.rb on lines 86..97
modules/post/windows/gather/credentials/opera.rb on lines 136..147
modules/post/windows/gather/credentials/operamail.rb on lines 111..122
modules/post/windows/gather/credentials/postbox.rb on lines 345..356
modules/post/windows/gather/credentials/qq.rb on lines 68..79
modules/post/windows/gather/credentials/quassel_irc.rb on lines 82..93
modules/post/windows/gather/credentials/redis_desktop_manager.rb on lines 80..91
modules/post/windows/gather/credentials/safari.rb on lines 101..112
modules/post/windows/gather/credentials/seamonkey.rb on lines 151..162
modules/post/windows/gather/credentials/srware.rb on lines 120..131
modules/post/windows/gather/credentials/sylpheed.rb on lines 78..89
modules/post/windows/gather/credentials/thunderbird.rb on lines 225..236
modules/post/windows/gather/credentials/tlen.rb on lines 93..104
modules/post/windows/gather/credentials/viber.rb on lines 84..95
modules/post/windows/gather/credentials/windowslivemail.rb on lines 86..97
modules/post/windows/gather/credentials/xchat.rb on lines 86..97

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

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

  def run
    print_status('Filtering based on these selections:  ')
    print_status("ARTIFACTS: #{datastore['ARTIFACTS'].capitalize}")
    print_status("STORE_LOOT: #{datastore['STORE_LOOT']}")
    print_status("EXTRACT_DATA: #{datastore['EXTRACT_DATA']}\n")
Severity: Major
Found in modules/post/windows/gather/credentials/postbox.rb and 32 other locations - About 30 mins to fix
modules/post/windows/gather/credentials/adi_irc.rb on lines 86..97
modules/post/windows/gather/credentials/aim.rb on lines 116..127
modules/post/windows/gather/credentials/carotdav_ftp.rb on lines 78..89
modules/post/windows/gather/credentials/chrome.rb on lines 129..140
modules/post/windows/gather/credentials/comodo.rb on lines 164..175
modules/post/windows/gather/credentials/coolnovo.rb on lines 94..105
modules/post/windows/gather/credentials/digsby.rb on lines 89..100
modules/post/windows/gather/credentials/flock.rb on lines 111..122
modules/post/windows/gather/credentials/gadugadu.rb on lines 91..102
modules/post/windows/gather/credentials/halloy_irc.rb on lines 77..88
modules/post/windows/gather/credentials/icq.rb on lines 116..127
modules/post/windows/gather/credentials/ie.rb on lines 72..83
modules/post/windows/gather/credentials/incredimail.rb on lines 90..101
modules/post/windows/gather/credentials/kakaotalk.rb on lines 83..94
modules/post/windows/gather/credentials/kmeleon.rb on lines 143..154
modules/post/windows/gather/credentials/line.rb on lines 116..127
modules/post/windows/gather/credentials/maxthon.rb on lines 86..97
modules/post/windows/gather/credentials/opera.rb on lines 136..147
modules/post/windows/gather/credentials/operamail.rb on lines 111..122
modules/post/windows/gather/credentials/qq.rb on lines 68..79
modules/post/windows/gather/credentials/quassel_irc.rb on lines 82..93
modules/post/windows/gather/credentials/redis_desktop_manager.rb on lines 80..91
modules/post/windows/gather/credentials/safari.rb on lines 101..112
modules/post/windows/gather/credentials/seamonkey.rb on lines 151..162
modules/post/windows/gather/credentials/srware.rb on lines 120..131
modules/post/windows/gather/credentials/sylpheed.rb on lines 78..89
modules/post/windows/gather/credentials/tango.rb on lines 114..125
modules/post/windows/gather/credentials/thunderbird.rb on lines 225..236
modules/post/windows/gather/credentials/tlen.rb on lines 93..104
modules/post/windows/gather/credentials/viber.rb on lines 84..95
modules/post/windows/gather/credentials/windowslivemail.rb on lines 86..97
modules/post/windows/gather/credentials/xchat.rb on lines 86..97

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

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

  def run
    print_status('Filtering based on these selections:  ')
    print_status("ARTIFACTS: #{datastore['ARTIFACTS'].capitalize}")
    print_status("STORE_LOOT: #{datastore['STORE_LOOT']}")
    print_status("EXTRACT_DATA: #{datastore['EXTRACT_DATA']}\n")
modules/post/windows/gather/credentials/adi_irc.rb on lines 86..97
modules/post/windows/gather/credentials/aim.rb on lines 116..127
modules/post/windows/gather/credentials/carotdav_ftp.rb on lines 78..89
modules/post/windows/gather/credentials/chrome.rb on lines 129..140
modules/post/windows/gather/credentials/comodo.rb on lines 164..175
modules/post/windows/gather/credentials/coolnovo.rb on lines 94..105
modules/post/windows/gather/credentials/digsby.rb on lines 89..100
modules/post/windows/gather/credentials/flock.rb on lines 111..122
modules/post/windows/gather/credentials/gadugadu.rb on lines 91..102
modules/post/windows/gather/credentials/halloy_irc.rb on lines 77..88
modules/post/windows/gather/credentials/icq.rb on lines 116..127
modules/post/windows/gather/credentials/ie.rb on lines 72..83
modules/post/windows/gather/credentials/incredimail.rb on lines 90..101
modules/post/windows/gather/credentials/kakaotalk.rb on lines 83..94
modules/post/windows/gather/credentials/kmeleon.rb on lines 143..154
modules/post/windows/gather/credentials/line.rb on lines 116..127
modules/post/windows/gather/credentials/maxthon.rb on lines 86..97
modules/post/windows/gather/credentials/opera.rb on lines 136..147
modules/post/windows/gather/credentials/operamail.rb on lines 111..122
modules/post/windows/gather/credentials/postbox.rb on lines 345..356
modules/post/windows/gather/credentials/qq.rb on lines 68..79
modules/post/windows/gather/credentials/quassel_irc.rb on lines 82..93
modules/post/windows/gather/credentials/safari.rb on lines 101..112
modules/post/windows/gather/credentials/seamonkey.rb on lines 151..162
modules/post/windows/gather/credentials/srware.rb on lines 120..131
modules/post/windows/gather/credentials/sylpheed.rb on lines 78..89
modules/post/windows/gather/credentials/tango.rb on lines 114..125
modules/post/windows/gather/credentials/thunderbird.rb on lines 225..236
modules/post/windows/gather/credentials/tlen.rb on lines 93..104
modules/post/windows/gather/credentials/viber.rb on lines 84..95
modules/post/windows/gather/credentials/windowslivemail.rb on lines 86..97
modules/post/windows/gather/credentials/xchat.rb on lines 86..97

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

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

  def run
    print_status('Filtering based on these selections:  ')
    print_status("ARTIFACTS: #{datastore['ARTIFACTS'].capitalize}")
    print_status("STORE_LOOT: #{datastore['STORE_LOOT']}")
    print_status("EXTRACT_DATA: #{datastore['EXTRACT_DATA']}\n")
Severity: Major
Found in modules/post/windows/gather/credentials/viber.rb and 32 other locations - About 30 mins to fix
modules/post/windows/gather/credentials/adi_irc.rb on lines 86..97
modules/post/windows/gather/credentials/aim.rb on lines 116..127
modules/post/windows/gather/credentials/carotdav_ftp.rb on lines 78..89
modules/post/windows/gather/credentials/chrome.rb on lines 129..140
modules/post/windows/gather/credentials/comodo.rb on lines 164..175
modules/post/windows/gather/credentials/coolnovo.rb on lines 94..105
modules/post/windows/gather/credentials/digsby.rb on lines 89..100
modules/post/windows/gather/credentials/flock.rb on lines 111..122
modules/post/windows/gather/credentials/gadugadu.rb on lines 91..102
modules/post/windows/gather/credentials/halloy_irc.rb on lines 77..88
modules/post/windows/gather/credentials/icq.rb on lines 116..127
modules/post/windows/gather/credentials/ie.rb on lines 72..83
modules/post/windows/gather/credentials/incredimail.rb on lines 90..101
modules/post/windows/gather/credentials/kakaotalk.rb on lines 83..94
modules/post/windows/gather/credentials/kmeleon.rb on lines 143..154
modules/post/windows/gather/credentials/line.rb on lines 116..127
modules/post/windows/gather/credentials/maxthon.rb on lines 86..97
modules/post/windows/gather/credentials/opera.rb on lines 136..147
modules/post/windows/gather/credentials/operamail.rb on lines 111..122
modules/post/windows/gather/credentials/postbox.rb on lines 345..356
modules/post/windows/gather/credentials/qq.rb on lines 68..79
modules/post/windows/gather/credentials/quassel_irc.rb on lines 82..93
modules/post/windows/gather/credentials/redis_desktop_manager.rb on lines 80..91
modules/post/windows/gather/credentials/safari.rb on lines 101..112
modules/post/windows/gather/credentials/seamonkey.rb on lines 151..162
modules/post/windows/gather/credentials/srware.rb on lines 120..131
modules/post/windows/gather/credentials/sylpheed.rb on lines 78..89
modules/post/windows/gather/credentials/tango.rb on lines 114..125
modules/post/windows/gather/credentials/thunderbird.rb on lines 225..236
modules/post/windows/gather/credentials/tlen.rb on lines 93..104
modules/post/windows/gather/credentials/windowslivemail.rb on lines 86..97
modules/post/windows/gather/credentials/xchat.rb on lines 86..97

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

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

  def run
    print_status('Filtering based on these selections:  ')
    print_status("ARTIFACTS: #{datastore['ARTIFACTS'].capitalize}")
    print_status("STORE_LOOT: #{datastore['STORE_LOOT']}")
    print_status("EXTRACT_DATA: #{datastore['EXTRACT_DATA']}\n")
Severity: Major
Found in modules/post/windows/gather/credentials/windowslivemail.rb and 32 other locations - About 30 mins to fix
modules/post/windows/gather/credentials/adi_irc.rb on lines 86..97
modules/post/windows/gather/credentials/aim.rb on lines 116..127
modules/post/windows/gather/credentials/carotdav_ftp.rb on lines 78..89
modules/post/windows/gather/credentials/chrome.rb on lines 129..140
modules/post/windows/gather/credentials/comodo.rb on lines 164..175
modules/post/windows/gather/credentials/coolnovo.rb on lines 94..105
modules/post/windows/gather/credentials/digsby.rb on lines 89..100
modules/post/windows/gather/credentials/flock.rb on lines 111..122
modules/post/windows/gather/credentials/gadugadu.rb on lines 91..102
modules/post/windows/gather/credentials/halloy_irc.rb on lines 77..88
modules/post/windows/gather/credentials/icq.rb on lines 116..127
modules/post/windows/gather/credentials/ie.rb on lines 72..83
modules/post/windows/gather/credentials/incredimail.rb on lines 90..101
modules/post/windows/gather/credentials/kakaotalk.rb on lines 83..94
modules/post/windows/gather/credentials/kmeleon.rb on lines 143..154
modules/post/windows/gather/credentials/line.rb on lines 116..127
modules/post/windows/gather/credentials/maxthon.rb on lines 86..97
modules/post/windows/gather/credentials/opera.rb on lines 136..147
modules/post/windows/gather/credentials/operamail.rb on lines 111..122
modules/post/windows/gather/credentials/postbox.rb on lines 345..356
modules/post/windows/gather/credentials/qq.rb on lines 68..79
modules/post/windows/gather/credentials/quassel_irc.rb on lines 82..93
modules/post/windows/gather/credentials/redis_desktop_manager.rb on lines 80..91
modules/post/windows/gather/credentials/safari.rb on lines 101..112
modules/post/windows/gather/credentials/seamonkey.rb on lines 151..162
modules/post/windows/gather/credentials/srware.rb on lines 120..131
modules/post/windows/gather/credentials/sylpheed.rb on lines 78..89
modules/post/windows/gather/credentials/tango.rb on lines 114..125
modules/post/windows/gather/credentials/thunderbird.rb on lines 225..236
modules/post/windows/gather/credentials/tlen.rb on lines 93..104
modules/post/windows/gather/credentials/viber.rb on lines 84..95
modules/post/windows/gather/credentials/xchat.rb on lines 86..97

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

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

  def run
    print_status('Filtering based on these selections:  ')
    print_status("ARTIFACTS: #{datastore['ARTIFACTS'].capitalize}")
    print_status("STORE_LOOT: #{datastore['STORE_LOOT']}")
    print_status("EXTRACT_DATA: #{datastore['EXTRACT_DATA']}\n")
Severity: Major
Found in modules/post/windows/gather/credentials/qq.rb and 32 other locations - About 30 mins to fix
modules/post/windows/gather/credentials/adi_irc.rb on lines 86..97
modules/post/windows/gather/credentials/aim.rb on lines 116..127
modules/post/windows/gather/credentials/carotdav_ftp.rb on lines 78..89
modules/post/windows/gather/credentials/chrome.rb on lines 129..140
modules/post/windows/gather/credentials/comodo.rb on lines 164..175
modules/post/windows/gather/credentials/coolnovo.rb on lines 94..105
modules/post/windows/gather/credentials/digsby.rb on lines 89..100
modules/post/windows/gather/credentials/flock.rb on lines 111..122
modules/post/windows/gather/credentials/gadugadu.rb on lines 91..102
modules/post/windows/gather/credentials/halloy_irc.rb on lines 77..88
modules/post/windows/gather/credentials/icq.rb on lines 116..127
modules/post/windows/gather/credentials/ie.rb on lines 72..83
modules/post/windows/gather/credentials/incredimail.rb on lines 90..101
modules/post/windows/gather/credentials/kakaotalk.rb on lines 83..94
modules/post/windows/gather/credentials/kmeleon.rb on lines 143..154
modules/post/windows/gather/credentials/line.rb on lines 116..127
modules/post/windows/gather/credentials/maxthon.rb on lines 86..97
modules/post/windows/gather/credentials/opera.rb on lines 136..147
modules/post/windows/gather/credentials/operamail.rb on lines 111..122
modules/post/windows/gather/credentials/postbox.rb on lines 345..356
modules/post/windows/gather/credentials/quassel_irc.rb on lines 82..93
modules/post/windows/gather/credentials/redis_desktop_manager.rb on lines 80..91
modules/post/windows/gather/credentials/safari.rb on lines 101..112
modules/post/windows/gather/credentials/seamonkey.rb on lines 151..162
modules/post/windows/gather/credentials/srware.rb on lines 120..131
modules/post/windows/gather/credentials/sylpheed.rb on lines 78..89
modules/post/windows/gather/credentials/tango.rb on lines 114..125
modules/post/windows/gather/credentials/thunderbird.rb on lines 225..236
modules/post/windows/gather/credentials/tlen.rb on lines 93..104
modules/post/windows/gather/credentials/viber.rb on lines 84..95
modules/post/windows/gather/credentials/windowslivemail.rb on lines 86..97
modules/post/windows/gather/credentials/xchat.rb on lines 86..97

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

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