hackedteam/vector-exploit

View on GitHub

Showing 170 of 389 total issues

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

if SWF_URL[:4] != 'http' and SWF_URL[:4] != "HTTP":
    SWF_URL = "http://" + SWF_URL
Severity: Major
Found in ht-2013-003-Powerpoint/exploit.py and 3 other locations - About 1 hr to fix
ht-2013-002-Word/exploit.py on lines 52..53
ht-2013-002-Word/exploit.py on lines 54..55
ht-2013-003-Powerpoint/exploit.py on lines 52..53

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

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

if SWF_URL[:4] != 'http' and SWF_URL[:4] != "HTTP":
    SWF_URL = "http://" + SWF_URL
Severity: Major
Found in ht-2013-002-Word/exploit.py and 3 other locations - About 1 hr to fix
ht-2013-002-Word/exploit.py on lines 52..53
ht-2013-003-Powerpoint/exploit.py on lines 52..53
ht-2013-003-Powerpoint/exploit.py on lines 54..55

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

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

if EXE_URL[:4] != 'http' and EXE_URL[:4] != "HTTP":
    EXE_URL = "http://" + EXE_URL
Severity: Major
Found in ht-2013-003-Powerpoint/exploit.py and 3 other locations - About 1 hr to fix
ht-2013-002-Word/exploit.py on lines 52..53
ht-2013-002-Word/exploit.py on lines 54..55
ht-2013-003-Powerpoint/exploit.py on lines 54..55

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

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

if EXE_URL[:4] != 'http' and EXE_URL[:4] != "HTTP":
    EXE_URL = "http://" + EXE_URL
Severity: Major
Found in ht-2013-002-Word/exploit.py and 3 other locations - About 1 hr to fix
ht-2013-002-Word/exploit.py on lines 54..55
ht-2013-003-Powerpoint/exploit.py on lines 52..53
ht-2013-003-Powerpoint/exploit.py on lines 54..55

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

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

for i in range(len(hex_url)):
    swf_bytearray[stage2_offset + URL_OFFT + i] = hex_url[i]
Severity: Major
Found in src/exploit_vps/html/admin/2013-002-Word/exploit.py and 11 other locations - About 1 hr to fix
ht-2013-002-Word/exploit.py on lines 200..201
ht-2013-002-Word/exploit.py on lines 206..207
ht-2013-002-Word/exploit.py on lines 242..243
ht-2013-002-Word/exploit.py on lines 248..249
ht-2013-003-Powerpoint/exploit.py on lines 214..215
ht-2013-003-Powerpoint/exploit.py on lines 220..221
ht-2013-003-Powerpoint/exploit.py on lines 255..256
ht-2013-003-Powerpoint/exploit.py on lines 261..262
src/exploit_vps/html/admin/2013-002-Word/exploit.py on lines 192..193
src/exploit_vps/html/admin/2013-003-PowerPoint/exploit.py on lines 198..199
src/exploit_vps/html/admin/2013-003-PowerPoint/exploit.py on lines 204..205

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

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

for i in range(len(hex_scout)):
    swf_bytearray[stage2_offset + SCOUT_OFFT + i] = hex_scout[i]
Severity: Major
Found in src/exploit_vps/html/admin/2013-003-PowerPoint/exploit.py and 11 other locations - About 1 hr to fix
ht-2013-002-Word/exploit.py on lines 200..201
ht-2013-002-Word/exploit.py on lines 206..207
ht-2013-002-Word/exploit.py on lines 242..243
ht-2013-002-Word/exploit.py on lines 248..249
ht-2013-003-Powerpoint/exploit.py on lines 214..215
ht-2013-003-Powerpoint/exploit.py on lines 220..221
ht-2013-003-Powerpoint/exploit.py on lines 255..256
ht-2013-003-Powerpoint/exploit.py on lines 261..262
src/exploit_vps/html/admin/2013-002-Word/exploit.py on lines 185..186
src/exploit_vps/html/admin/2013-002-Word/exploit.py on lines 192..193
src/exploit_vps/html/admin/2013-003-PowerPoint/exploit.py on lines 198..199

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

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

for i in range(len(hex_url)):
    swf_bytearray[stage2_offset + URL_OFFT + i] = hex_url[i]
Severity: Major
Found in ht-2013-002-Word/exploit.py and 11 other locations - About 1 hr to fix
ht-2013-002-Word/exploit.py on lines 206..207
ht-2013-002-Word/exploit.py on lines 242..243
ht-2013-002-Word/exploit.py on lines 248..249
ht-2013-003-Powerpoint/exploit.py on lines 214..215
ht-2013-003-Powerpoint/exploit.py on lines 220..221
ht-2013-003-Powerpoint/exploit.py on lines 255..256
ht-2013-003-Powerpoint/exploit.py on lines 261..262
src/exploit_vps/html/admin/2013-002-Word/exploit.py on lines 185..186
src/exploit_vps/html/admin/2013-002-Word/exploit.py on lines 192..193
src/exploit_vps/html/admin/2013-003-PowerPoint/exploit.py on lines 198..199
src/exploit_vps/html/admin/2013-003-PowerPoint/exploit.py on lines 204..205

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

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

for i in range(len(hex_scout)):
    swf_bytearray[stage2_offset + SCOUT_OFFT + i] = hex_scout[i]
Severity: Major
Found in ht-2013-002-Word/exploit.py and 11 other locations - About 1 hr to fix
ht-2013-002-Word/exploit.py on lines 200..201
ht-2013-002-Word/exploit.py on lines 242..243
ht-2013-002-Word/exploit.py on lines 248..249
ht-2013-003-Powerpoint/exploit.py on lines 214..215
ht-2013-003-Powerpoint/exploit.py on lines 220..221
ht-2013-003-Powerpoint/exploit.py on lines 255..256
ht-2013-003-Powerpoint/exploit.py on lines 261..262
src/exploit_vps/html/admin/2013-002-Word/exploit.py on lines 185..186
src/exploit_vps/html/admin/2013-002-Word/exploit.py on lines 192..193
src/exploit_vps/html/admin/2013-003-PowerPoint/exploit.py on lines 198..199
src/exploit_vps/html/admin/2013-003-PowerPoint/exploit.py on lines 204..205

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

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

for i in range(len(hex_scout)):
    swf_bytearray[stage264_offset + SCOUT_OFFT64 + i] = hex_scout[i]
Severity: Major
Found in ht-2013-002-Word/exploit.py and 11 other locations - About 1 hr to fix
ht-2013-002-Word/exploit.py on lines 200..201
ht-2013-002-Word/exploit.py on lines 206..207
ht-2013-002-Word/exploit.py on lines 242..243
ht-2013-003-Powerpoint/exploit.py on lines 214..215
ht-2013-003-Powerpoint/exploit.py on lines 220..221
ht-2013-003-Powerpoint/exploit.py on lines 255..256
ht-2013-003-Powerpoint/exploit.py on lines 261..262
src/exploit_vps/html/admin/2013-002-Word/exploit.py on lines 185..186
src/exploit_vps/html/admin/2013-002-Word/exploit.py on lines 192..193
src/exploit_vps/html/admin/2013-003-PowerPoint/exploit.py on lines 198..199
src/exploit_vps/html/admin/2013-003-PowerPoint/exploit.py on lines 204..205

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

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

for i in range(len(hex_scout)):
    swf_bytearray[stage264_offset + SCOUT_OFFT64 + i] = hex_scout[i]
Severity: Major
Found in ht-2013-003-Powerpoint/exploit.py and 11 other locations - About 1 hr to fix
ht-2013-002-Word/exploit.py on lines 200..201
ht-2013-002-Word/exploit.py on lines 206..207
ht-2013-002-Word/exploit.py on lines 242..243
ht-2013-002-Word/exploit.py on lines 248..249
ht-2013-003-Powerpoint/exploit.py on lines 214..215
ht-2013-003-Powerpoint/exploit.py on lines 220..221
ht-2013-003-Powerpoint/exploit.py on lines 255..256
src/exploit_vps/html/admin/2013-002-Word/exploit.py on lines 185..186
src/exploit_vps/html/admin/2013-002-Word/exploit.py on lines 192..193
src/exploit_vps/html/admin/2013-003-PowerPoint/exploit.py on lines 198..199
src/exploit_vps/html/admin/2013-003-PowerPoint/exploit.py on lines 204..205

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

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

for i in range(len(hex_scout)):
    swf_bytearray[stage2_offset + SCOUT_OFFT + i] = hex_scout[i]
Severity: Major
Found in src/exploit_vps/html/admin/2013-002-Word/exploit.py and 11 other locations - About 1 hr to fix
ht-2013-002-Word/exploit.py on lines 200..201
ht-2013-002-Word/exploit.py on lines 206..207
ht-2013-002-Word/exploit.py on lines 242..243
ht-2013-002-Word/exploit.py on lines 248..249
ht-2013-003-Powerpoint/exploit.py on lines 214..215
ht-2013-003-Powerpoint/exploit.py on lines 220..221
ht-2013-003-Powerpoint/exploit.py on lines 255..256
ht-2013-003-Powerpoint/exploit.py on lines 261..262
src/exploit_vps/html/admin/2013-002-Word/exploit.py on lines 185..186
src/exploit_vps/html/admin/2013-003-PowerPoint/exploit.py on lines 198..199
src/exploit_vps/html/admin/2013-003-PowerPoint/exploit.py on lines 204..205

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

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

for i in range(len(hex_url)):
    swf_bytearray[stage2_offset + URL_OFFT + i] = hex_url[i]
Severity: Major
Found in ht-2013-003-Powerpoint/exploit.py and 11 other locations - About 1 hr to fix
ht-2013-002-Word/exploit.py on lines 200..201
ht-2013-002-Word/exploit.py on lines 206..207
ht-2013-002-Word/exploit.py on lines 242..243
ht-2013-002-Word/exploit.py on lines 248..249
ht-2013-003-Powerpoint/exploit.py on lines 220..221
ht-2013-003-Powerpoint/exploit.py on lines 255..256
ht-2013-003-Powerpoint/exploit.py on lines 261..262
src/exploit_vps/html/admin/2013-002-Word/exploit.py on lines 185..186
src/exploit_vps/html/admin/2013-002-Word/exploit.py on lines 192..193
src/exploit_vps/html/admin/2013-003-PowerPoint/exploit.py on lines 198..199
src/exploit_vps/html/admin/2013-003-PowerPoint/exploit.py on lines 204..205

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

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

    if fake_key is None:
        fake_key = ''.join([chr(random.randrange(256)) for i in range(32)])
Severity: Major
Found in src/ht-webkit-Android4-src/src/edn_build.py and 1 other location - About 1 hr to fix
src/ht-webkit-Android4-src/src/edn_build.py on lines 150..151

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

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

for i in range(len(hex_url)):
    swf_bytearray[stage2_offset + URL_OFFT + i] = hex_url[i]
Severity: Major
Found in src/exploit_vps/html/admin/2013-003-PowerPoint/exploit.py and 11 other locations - About 1 hr to fix
ht-2013-002-Word/exploit.py on lines 200..201
ht-2013-002-Word/exploit.py on lines 206..207
ht-2013-002-Word/exploit.py on lines 242..243
ht-2013-002-Word/exploit.py on lines 248..249
ht-2013-003-Powerpoint/exploit.py on lines 214..215
ht-2013-003-Powerpoint/exploit.py on lines 220..221
ht-2013-003-Powerpoint/exploit.py on lines 255..256
ht-2013-003-Powerpoint/exploit.py on lines 261..262
src/exploit_vps/html/admin/2013-002-Word/exploit.py on lines 185..186
src/exploit_vps/html/admin/2013-002-Word/exploit.py on lines 192..193
src/exploit_vps/html/admin/2013-003-PowerPoint/exploit.py on lines 204..205

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

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

for i in range(len(hex_url)):
    swf_bytearray[stage264_offset + URL_OFFT64 + i] = hex_url[i]
Severity: Major
Found in ht-2013-003-Powerpoint/exploit.py and 11 other locations - About 1 hr to fix
ht-2013-002-Word/exploit.py on lines 200..201
ht-2013-002-Word/exploit.py on lines 206..207
ht-2013-002-Word/exploit.py on lines 242..243
ht-2013-002-Word/exploit.py on lines 248..249
ht-2013-003-Powerpoint/exploit.py on lines 214..215
ht-2013-003-Powerpoint/exploit.py on lines 220..221
ht-2013-003-Powerpoint/exploit.py on lines 261..262
src/exploit_vps/html/admin/2013-002-Word/exploit.py on lines 185..186
src/exploit_vps/html/admin/2013-002-Word/exploit.py on lines 192..193
src/exploit_vps/html/admin/2013-003-PowerPoint/exploit.py on lines 198..199
src/exploit_vps/html/admin/2013-003-PowerPoint/exploit.py on lines 204..205

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

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

for i in range(len(hex_url)):
    swf_bytearray[stage264_offset + URL_OFFT64 + i] = hex_url[i]
Severity: Major
Found in ht-2013-002-Word/exploit.py and 11 other locations - About 1 hr to fix
ht-2013-002-Word/exploit.py on lines 200..201
ht-2013-002-Word/exploit.py on lines 206..207
ht-2013-002-Word/exploit.py on lines 248..249
ht-2013-003-Powerpoint/exploit.py on lines 214..215
ht-2013-003-Powerpoint/exploit.py on lines 220..221
ht-2013-003-Powerpoint/exploit.py on lines 255..256
ht-2013-003-Powerpoint/exploit.py on lines 261..262
src/exploit_vps/html/admin/2013-002-Word/exploit.py on lines 185..186
src/exploit_vps/html/admin/2013-002-Word/exploit.py on lines 192..193
src/exploit_vps/html/admin/2013-003-PowerPoint/exploit.py on lines 198..199
src/exploit_vps/html/admin/2013-003-PowerPoint/exploit.py on lines 204..205

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

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

    if key is None:
        key = ''.join([chr(random.randrange(256)) for i in range(32)])
Severity: Major
Found in src/ht-webkit-Android4-src/src/edn_build.py and 1 other location - About 1 hr to fix
src/ht-webkit-Android4-src/src/edn_build.py on lines 153..154

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

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

for i in range(len(hex_scout)):
    swf_bytearray[stage2_offset + SCOUT_OFFT + i] = hex_scout[i]
Severity: Major
Found in ht-2013-003-Powerpoint/exploit.py and 11 other locations - About 1 hr to fix
ht-2013-002-Word/exploit.py on lines 200..201
ht-2013-002-Word/exploit.py on lines 206..207
ht-2013-002-Word/exploit.py on lines 242..243
ht-2013-002-Word/exploit.py on lines 248..249
ht-2013-003-Powerpoint/exploit.py on lines 214..215
ht-2013-003-Powerpoint/exploit.py on lines 255..256
ht-2013-003-Powerpoint/exploit.py on lines 261..262
src/exploit_vps/html/admin/2013-002-Word/exploit.py on lines 185..186
src/exploit_vps/html/admin/2013-002-Word/exploit.py on lines 192..193
src/exploit_vps/html/admin/2013-003-PowerPoint/exploit.py on lines 198..199
src/exploit_vps/html/admin/2013-003-PowerPoint/exploit.py on lines 204..205

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

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

@app.route(PREFIX + '/scriptidm.js')
@app.route(PREFIX + '/scriptidp.js')
def script_wrong():
    return nocache(readfile("redir.js"))
Severity: Major
Found in src/ht-webkit-Android4-src/precompiled/debug/debugserver.py and 1 other location - About 1 hr to fix
src/ht-webkit-Android4-src/src/debugserver.py on lines 78..81

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

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

if len(shellcode64) > (5800*2):
       print "[!!] Shellcode too big: 0x%x" % (len(shellcode64))
       sys.exit(-1)
Severity: Major
Found in ht-2013-003-Powerpoint/exploit.py and 1 other location - About 1 hr to fix
ht-2013-002-Word/exploit.py on lines 232..234

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

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