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")
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;
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")
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");
}
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('.'))
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) {
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")
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) {
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")
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
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
- Read upRead up
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
- Read upRead up
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")
- Read upRead up
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)
- Read upRead up
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")
- Read upRead up
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)
- Read upRead up
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
- Read upRead up
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
- Read upRead up
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)
- Read upRead up
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
- Read upRead up
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"