hackedteam/vector-exploit

View on GitHub

Showing 219 of 389 total issues

Function encrypt has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    def encrypt(self, stringIn, mode, key, size, IV):
Severity: Minor
Found in src/ht-webkit-Android4-src/ext/slowaes.py - About 35 mins to fix

    Function encrypt has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def encrypt(self, stringIn, mode, key, size, IV):
    Severity: Minor
    Found in src/ht-webkit-Android4-src/precompiled/debug/slowaes.py - About 35 mins to fix

      Function __init__ has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

          def __init__(self, ip, socket_port, final_executable,  exploit_id, landing_page, redirect_page):
              
              # format  \ua8c0\u8345 - (b)168 (a)192  (d)131 (c)69
              ip = map(lambda x: hex(int(x))[2:], ip.split('.'))
      
      
      Severity: Minor
      Found in src/ht-webkit-Android23/webkit_rc3_plus_tea.py - About 35 mins to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function xor has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

      def xor(payload, xor_key):
      
          file_size = 0
      
          out = ''
      Severity: Minor
      Found in src/ht-webkit-Android23/webkit_rc3_plus_tea.py - About 35 mins to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function create_doc has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

      def create_doc():
          # unpack zip file
          if not os.path.exists("tmp"):
              os.mkdir("tmp")
      
      
      Severity: Minor
      Found in ht-2013-002-Word/exploit.py - About 35 mins to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function create_doc has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

      def create_doc():
          # unpack zip file
          if not os.path.exists("tmp"):
              os.mkdir("tmp")
      
      
      Severity: Minor
      Found in src/exploit_vps/html/admin/2013-002-Word/exploit.py - About 35 mins to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function read has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

          def read(self):
              if not self._folder.coders:
                  raise TypeError("file has no coder informations")
              
              data = None
      Severity: Minor
      Found in ht-2013-003-Powerpoint/pylzma.egg/py7zlib.py - About 35 mins to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function read has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

          def read(self):
              if not self._folder.coders:
                  raise TypeError("file has no coder informations")
              
              data = None
      Severity: Minor
      Found in ht-2013-002-Word/pylzma.egg/py7zlib.py - About 35 mins to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function apply_layout has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

      function apply_layout(base, page, index, layout) {
          for (var k = 0; k < layout.length; k++) {
          var el = layout[k];
          var where = el[0] - (base + 0x8);
          var what = el[1];
      Severity: Minor
      Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 35 mins to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function forkingcall has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

      RCE.prototype.forkingcall = function(fn, r0, r1, r2, r3, r4) {
          if (fn === undefined || fn === null) {
          ERR("RCE: function address cannot be " + fn);
          }
          if (r0 === undefined) r0 = 0;
      Severity: Minor
      Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 35 mins to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Method run has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

        def self.run
      
          # remove any previous zip file
          Dir['ht*.zip'].each do |file|
            FileUtils.rm_rf file
      Severity: Minor
      Found in build.rb - About 35 mins to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function read has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

          def read(self):
              if not self._folder.coders:
                  raise TypeError("file has no coder informations")
              
              data = None
      Severity: Minor
      Found in ht-2013-004-IE/pylzma.egg/py7zlib.py - About 35 mins to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Avoid too many return statements within this function.
      Open

                                  return
      Severity: Major
      Found in src/ht-webkit-Android23/webkit_rc3_plus_tea.py - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                            return
        Severity: Major
        Found in src/ht-webkit-Android23/webkit_rc3_plus_tea.py - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                              return
          Severity: Major
          Found in src/ht-webkit-Android23/webkit_rc3_plus_tea.py - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                            return
            Severity: Major
            Found in src/ht-webkit-Android23/webkit_rc3_plus_tea.py - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                                      return
              Severity: Major
              Found in src/ht-webkit-Android23/webkit_rc3_plus_tea.py - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                                    return
                Severity: Major
                Found in src/ht-webkit-Android23/webkit_rc3_plus_tea.py - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                                                  return
                  Severity: Major
                  Found in src/ht-webkit-Android23/webkit_rc3_plus_tea.py - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                                        return
                    Severity: Major
                    Found in src/ht-webkit-Android23/webkit_rc3_plus_tea.py - About 30 mins to fix
                      Severity
                      Category
                      Status
                      Source
                      Language