Showing 21,960 of 21,960 total issues
Method exploit
has 101 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def exploit
# Generate the ASP containing the EXE containing the payload
exe = generate_payload_exe
asp = Msf::Util::EXE.to_exe_asp(exe)
path = datastore['PATH'].gsub('%RAND%', rand(0x10000000).to_s)
Method initialize
has 101 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(update_info(info,
'Name' => 'Oracle AutoVue ActiveX Control SetMarkupMode Buffer Overflow',
'Description' => %q{
This module exploits a vulnerability found in the AutoVue.ocx ActiveX control.
File ie_sandbox_findfiles.rb
has 334 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
class MetasploitModule < Msf::Auxiliary
include Msf::Exploit::Remote::HttpServer::HTML
def initialize(info={})
super(update_info(info,
File adobe_flashplayer_button.rb
has 334 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
require 'zlib'
class MetasploitModule < Msf::Exploit::Remote
Rank = NormalRanking
File netfilter_priv_esc_ipv4.rb
has 334 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
class MetasploitModule < Msf::Exploit::Local
Rank = GoodRanking
include Msf::Post::File
include Msf::Post::Linux::Kernel
File krb5_ccache_presenter.rb
has 334 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
require 'base64'
require 'rex/proto/kerberos/pac/krb5_pac'
module Rex::Proto::Kerberos::CredentialCache
class Krb5CcachePresenter
File payload.rb
has 334 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
require 'metasm'
module Msf
###
Class MetasploitModule
has 32 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class MetasploitModule < Msf::Auxiliary
include Msf::Exploit::Remote::SMB::Client::Authenticated
include Msf::Auxiliary::Report
include Msf::Util::WindowsRegistry
include Msf::Util::WindowsCryptoHelpers
Consider simplifying this complex logical expression. Open
Open
if hash.nil? || hash.empty? ||
(hash.start_with?(/{crypt}/i) && hash.length < 10) ||
hash.start_with?('*****') ||
hash.start_with?(/yyyyyy/i) ||
hash == '*' ||
Method run
has 100 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def run
yamlconf = load_yaml_conf
fileto = yamlconf['to']
Method run_host
has 100 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def run_host(ip)
uri = target_uri.path
peer = "#{ip}:#{rport}"
vprint_status("Retrieving cookie")
Method run_host
has 100 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def run_host(ip)
conn = true
ecode = nil
emesg = nil
Method initialize
has 100 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(
update_info(
info,
'Name' => 'SSH Username Enumeration',
Method generate
has 100 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def generate(opts={})
cmd = datastore['CMD'] || ''
nullfreeversion = datastore['NullFreeVersion']
if cmd.empty?
Method exploit
has 100 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def exploit
# Forge the payload
name = ".#{Rex::Text.rand_text_alpha(4)}"
files =
[
Method get_phpinfo
has 100 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def get_phpinfo
# uses the Magento_Framework_DB_Transaction class
serialize = 'O:13:\"Credis_Client\":22:{'
serialize << 's:8:\"\u0000*\u0000redis\";'
serialize << 'O:45:\"Magento\\\Sales\\\Model\\\Order\\\Payment\\\Transaction\":40:{'
Method initialize
has 100 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(
update_info(
info,
'Name' => 'Gogs Git Hooks Remote Code Execution',
Class Shares
has 32 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class Console::CommandDispatcher::Shares
include Rex::Post::SMB::Ui::Console::CommandDispatcher
#
Class Protocol
has 32 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class Protocol
VERSION = 10
MAX_PACKET_LENGTH = 2**24-1
Class ClientCore
has 32 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class ClientCore < Extension
METERPRETER_TRANSPORT_TCP = 0
METERPRETER_TRANSPORT_HTTP = 1
METERPRETER_TRANSPORT_HTTPS = 2