Showing 7,361 of 22,177 total issues
Avoid deeply nested control flow statements. Open
Open
if self.is_pass_ntlm_hash?(pass)
arglm = {
:ntlmv2_hash => Rex::Proto::NTLM::Crypt::ntlmv2_hash(
user,
[ pass.upcase()[33,65] ].pack('H32'),
Avoid deeply nested control flow statements. Open
Open
tr[:file][:started] = true if (tr[:file][:once])
Avoid deeply nested control flow statements. Open
Open
yield("Aborting, got error type:%d, message:'%s'" % [type, data]) if block_given?
Avoid deeply nested control flow statements. Open
Open
yield("Aborting, got code:%d, type:%d, message:'%s'" % [code, type, data]) if block_given?
Avoid deeply nested control flow statements. Open
Open
if temp_response.kind_of? Rex::Proto::Http::Response
res = temp_response
end
Avoid deeply nested control flow statements. Open
Open
break if not data
Avoid deeply nested control flow statements. Open
Open
break if not data.length
Avoid deeply nested control flow statements. Open
Open
formatted << (sysinfo.nil? ? default : sysinfo['Computer'])
Avoid deeply nested control flow statements. Open
Open
formatted << (sysinfo.nil? ? default : sysinfo['Architecture'])
Avoid deeply nested control flow statements. Open
Open
formatted << (session.respond_to?(:fs) ? session.fs.dir.getwd(refresh: false) : default)
Avoid deeply nested control flow statements. Open
Open
formatted << (session.respond_to?(:sys) ? session.sys.config.getuid(refresh: false) : default)
Avoid deeply nested control flow statements. Open
Open
if /^(?<p_num>\d{1,5})\/(?<p_proto>.+)\s\((?<p_name>.+)\)/ =~ @text
@state[:name] = p_name.gsub(/iana: /i, '')
@state[:port] = p_num
@state[:proto] = p_proto
record_service if p_num
Avoid deeply nested control flow statements. Open
Open
@state[:ref] = @text.strip if @text
Avoid deeply nested control flow statements. Open
Open
@state[:ref_dfn] = [] if @state[:ref_dfn].nil?
Avoid deeply nested control flow statements. Open
Open
@state[:ref_cb] = [] if @state[:ref_cb].nil?
Avoid deeply nested control flow statements. Open
Open
if buffer_size != 4
raise "Please pass 4 for 'out' PULONG_PTR, since they require a buffer of size 4"
end
Avoid deeply nested control flow statements. Open
Open
case arch
when ARCH_X86,nil
to_solaris_x86_elf(framework, code, exeopts)
end
Avoid deeply nested control flow statements. Open
Open
current_workspace.name == ws.name ? '*' : '',
Avoid deeply nested control flow statements. Open
Open
unless verbose
current = nil
framework.db.workspaces.sort_by {|s| s.name}.each do |s|
if s.name == current_workspace.name
current = s.name
Avoid deeply nested control flow statements. Open
Open
if workspace
framework.db.workspace = workspace
print_status("Workspace: #{workspace.name}")
else
print_error("Workspace not found: #{name}")