hackedteam/vector-exploit

View on GitHub

Showing 219 of 389 total issues

Function create_ppt has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

def create_ppt():
    # unpack zip file
    if not os.path.exists("tmp"):
        os.mkdir("tmp")

Severity: Minor
Found in src/exploit_vps/html/admin/2013-003-PowerPoint/exploit.py - About 1 hr to fix

    Function call has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    RCE.prototype.call = function(fn, r0, r1, r2, r3, r4, forking) {
        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 1 hr to fix

      Function create_ppt has 32 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      def create_ppt():
          # unpack zip file
          if not os.path.exists("tmp"):
              os.mkdir("tmp")
      
      
      Severity: Minor
      Found in ht-2013-003-Powerpoint/exploit.py - About 1 hr to fix

        Function readbytes has 31 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        XSLTObject.prototype.readbytes = function (addr, nbytes) {
            if (addr === undefined) {
            ERR("XSLTObject.readbytes: an address is required");
            }
        
        
        Severity: Minor
        Found in src/ht-webkit-Android4-src/precompiled/debug/script.js - About 1 hr to fix

          Function __init__ has 31 lines of code (exceeds 25 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 1 hr to fix

            Function writefile has 29 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function writefile(filename, view) {
                    memobj.writestring(cmd, filename);
                    memobj.writestring(mode, "wb");
                    fp = rce.call(fopen, cmd, mode);
                    if (fp === 0) {
            Severity: Minor
            Found in src/ht-webkit-Android4-src/src/stage4.js - About 1 hr to fix

              Function create_doc has 29 lines of code (exceeds 25 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 1 hr to fix

                Function writefile has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function writefile(filename, view) {
                        memobj.writestring(cmd, filename);
                        memobj.writestring(mode, "wb");
                        fp = rce.call(fopen, cmd, mode);
                        if (fp === 0) {
                Severity: Minor
                Found in src/ht-webkit-Android4-src/precompiled/debug/stage4.js - About 1 hr to fix

                  Function create_doc has 29 lines of code (exceeds 25 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 1 hr to fix

                    Method run has 28 lines of code (exceeds 25 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 1 hr to fix

                      Function decrypt has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                      Open

                          def decrypt(self, iput, key, size):
                              output = [0] * 16
                              # the number of rounds
                              nbrRounds = 0
                              # the 128 bit block to decode
                      Severity: Minor
                      Found in src/edn2/2014-004-AndroidBrowser/slowaes.py - About 1 hr 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 encrypt has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                      Open

                          def encrypt(self, iput, key, size):
                              output = [0] * 16
                              # the number of rounds
                              nbrRounds = 0
                              # the 128 bit block to encode
                      Severity: Minor
                      Found in src/edn2/2014-004-AndroidBrowser/slowaes.py - About 1 hr 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_ppt has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                      Open

                      def create_ppt():
                          # unpack zip file
                          if not os.path.exists("tmp"):
                              os.mkdir("tmp")
                      
                      
                      Severity: Minor
                      Found in src/exploit_vps/html/admin/2013-003-PowerPoint/exploit.py - About 1 hr 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 __init__ has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                      Open

                          def __init__(self, file):
                              id = file.read(1)
                              if id != PROPERTY_FOLDER:
                                  raise FormatError, 'folder id expected but %s found' % repr(id)
                              self.numfolders = self._read64Bit(file)
                      Severity: Minor
                      Found in ht-2013-003-Powerpoint/pylzma.egg/py7zlib.py - About 1 hr 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_ppt has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                      Open

                      def create_ppt():
                          # unpack zip file
                          if not os.path.exists("tmp"):
                              os.mkdir("tmp")
                      
                      
                      Severity: Minor
                      Found in ht-2013-003-Powerpoint/exploit.py - About 1 hr 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 __init__ has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                      Open

                          def __init__(self, file):
                              id = file.read(1)
                              if id != PROPERTY_FOLDER:
                                  raise FormatError, 'folder id expected but %s found' % repr(id)
                              self.numfolders = self._read64Bit(file)
                      Severity: Minor
                      Found in ht-2013-002-Word/pylzma.egg/py7zlib.py - About 1 hr 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 encrypt has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                      Open

                          def encrypt(self, iput, key, size):
                              output = [0] * 16
                              # the number of rounds
                              nbrRounds = 0
                              # the 128 bit block to encode
                      Severity: Minor
                      Found in src/ht-webkit-Android4-src/precompiled/release/slowaes.py - About 1 hr 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 decrypt has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                      Open

                          def decrypt(self, iput, key, size):
                              output = [0] * 16
                              # the number of rounds
                              nbrRounds = 0
                              # the 128 bit block to decode
                      Severity: Minor
                      Found in src/ht-webkit-Android4-src/ext/slowaes.py - About 1 hr 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 __init__ has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                      Open

                          def __init__(self, file):
                              id = file.read(1)
                              if id != PROPERTY_FOLDER:
                                  raise FormatError, 'folder id expected but %s found' % repr(id)
                              self.numfolders = self._read64Bit(file)
                      Severity: Minor
                      Found in ht-2013-004-IE/pylzma.egg/py7zlib.py - About 1 hr 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 decrypt has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                      Open

                          def decrypt(self, iput, key, size):
                              output = [0] * 16
                              # the number of rounds
                              nbrRounds = 0
                              # the 128 bit block to decode
                      Severity: Minor
                      Found in src/ht-webkit-Android4-src/precompiled/debug/slowaes.py - About 1 hr 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

                      Severity
                      Category
                      Status
                      Source
                      Language