Showing 16,065 of 22,177 total issues
Consider simplifying this complex logical expression. Open
Open
if (opts[:host] or opts[:address]) and opts[:port] and opts[:proto]
addr = opts[:host] || opts[:address]
wspace = opts[:workspace] || self.framework.db.workspace
host = wspace.hosts.find_by_address(addr)
if host && host.services.count > 0
Consider simplifying this complex logical expression. Open
Open
if good_response
print_good("SUCCESSFUL LOGIN - #{rhost}:#{rport} - #{user.inspect}:#{pass.inspect}")
# Extract device model
the_cookie = res.get_cookies
Consider simplifying this complex logical expression. Open
Open
if attrs.is_a?(String) || attrs.length == 0
self.required = required
self.desc = attrs.is_a?(String) ? attrs : desc
self.enums = [ *(enums) ].map { |x| x.to_s }
if default.nil? && enums.length > 0
Consider simplifying this complex logical expression. Open
Open
if token[0].nil? or token[0].empty?
cred = service.creds.where(user: token[0] || "", ptype: ptype, pass: token[1] || "").first_or_initialize
else
cred = service.creds.find_by_user_and_ptype_and_pass(token[0] || "", ptype, token[1] || "")
unless cred
Consider simplifying this complex logical expression. Open
Open
elsif res.code == 200 and
(
res.body =~ /href="http[s]*:\/\/.*\/\?*author.+title="([[:print:]]+)" /i or
res.body =~ /<body class="archive author author-(?:[^\s]+) author-(?:\d+)/i or
res.body =~ /Posts by (\w+) Feed/i or
Consider simplifying this complex logical expression. Open
Open
elsif (
service[:display].downcase.include?("SQL Server (#{instance}".downcase) || # 2k8
service[:display].downcase.include?("MSSQL$#{instance}".downcase) || # 2k
service[:display].downcase.include?("MSSQLServer#{instance}".downcase) || # 2k5
service[:display].downcase == instance.downcase # If the user gets very specific
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self, username, password, user_domain, target_domain, cmdLineOptions):
Function fsyms
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function fsyms(mem, base, segs, want, syms)
Function send_mail
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def send_mail(to, mailserver, cmd, mfrom, port):
Function check_users
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def check_users(in_q, out_q, url, password, timeout):
Function make_scanner
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def make_scanner(payload='', pattern='', onmatch=None, connect_timeout=3, read_timeout=10):
Function verify_service
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def verify_service(rhost, rport, targeturi, timeout, user_agent):
Method getMethod
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private MethodHandle getMethod(Class c, String methodName,
Class returnType, Class argTypes[], boolean isStaticMethod)
Function start_scanner
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def start_scanner(payload, pattern, args, onmatch, **timeouts):
Method createMBean
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public ObjectInstance createMBean(String className,
ObjectName name, ObjectName loaderName, Object[] params,
String[] signature) throws ReflectionException,
Method nexpose_vuln_lookup
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def nexpose_vuln_lookup(doc, vid, refs, host, serv = nil)
Method rpc_db_nodes
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def rpc_db_nodes(host, port, user, pass, name)
Method frfxpilfer
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def frfxpilfer(frfoxdbloc,session,logs,usrnm,logfile)
Method wmicexec
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def wmicexec(session,wmic,user,pass,trgt)
Method isotp_send_and_wait
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def isotp_send_and_wait(bus, srcid, dstid, data, opt = {})