Showing 4,113 of 21,757 total issues
File constants.rb
has 1171 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
module Rex
module Proto
module SMB
class Constants
Method run
has 602 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def run
return if not check_dependencies
begin
# Get all values from v$parameter
File rdp.rb
has 1073 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
module Msf
###
#
# This module exposes methods for interacting with a remote RDP service
Method cmd_wmap_run
has 541 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def cmd_wmap_run(*args)
# Stop everything
self.masstop = false
self.killwhenstop = true
File windows_secrets_dump.rb
has 1041 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
require 'ruby_smb/dcerpc/client'
class MetasploitModule < Msf::Auxiliary
include Msf::Exploit::Remote::SMB::Client::Authenticated
include Msf::Exploit::Remote::DCERPC
File rpc_db.rb
has 1013 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
module Msf
module RPC
class RPC_Db < RPC_Base
private
File sys.rb
has 1012 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
require 'rex/post/meterpreter'
require 'rex/post/meterpreter/extensions/stdapi/command_ids'
module Rex
module Post
Method create_library
has 501 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def self.create_library(constant_manager, library_path = 'ws2_32')
dll = Library.new(library_path, constant_manager)
dll.add_function('getaddrinfo', 'DWORD',[
["PCHAR","pNodeName","in"],
File error.rb
has 970 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
class RbMysql
class Error < StandardError
ERRNO = 0
def self.define_error_class(prefix_re)
File navigation.rb
has 955 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
def without_prefix(prefix)
proc { |value| value.sub(/^#{prefix}/, '') }
end
=begin
File webkit_createthis.rb
has 934 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
class MetasploitModule < Msf::Exploit::Remote
Rank = ManualRanking
include Msf::Post::File
include Msf::Exploit::EXE
Method asm_reverse_winhttp
has 458 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def asm_reverse_winhttp(opts={})
retry_count = [opts[:retry_count].to_i, 1].max
verify_ssl = nil
encoded_cert_hash = nil
Method asm_reverse_winhttp
has 456 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def asm_reverse_winhttp(opts={})
retry_count = [opts[:retry_count].to_i, 1].max
verify_ssl = nil
encoded_cert_hash = nil
Method description
has 442 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def self.description(code)
case code
when SUCCESS
"The operation completed successfully."
Method kernel_mode_payload
has 438 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def kernel_mode_payload
# Windows x64 kernel shellcode from ring 0 to ring 3 by sleepya
#
# This shellcode was written originally for eternalblue exploits
File exceptions.rb
has 838 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
module Rex
module Proto
module SMB
module Exceptions
Method run
has 401 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def run
loot = ""
uri = "/"
uri << (datastore['YEAR']).to_s if datastore['YEAR'].to_s != ""
File lm2ntcrack.rb
has 822 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
msfbase = __FILE__
while File.symlink?(msfbase)
msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
end
Method initialize
has 390 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(merge_info(info,
'Name' => 'NetWare Command Shell',
'Description' => 'Connect to the NetWare console (staged)',
'Author' => 'toto',
File cve_2019_0708_bluekeep_rce.rb
has 798 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
class MetasploitModule < Msf::Exploit::Remote
prepend Msf::Exploit::Remote::AutoCheck
Rank = ManualRanking