Showing 7,361 of 22,177 total issues
Method run
has 104 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def run
base_addr = datastore['BASEDNS']
targ_addr = datastore['TARGDNS']
check_ar = datastore['CHECK_ADDITIONAL']
check_aa = datastore['CHECK_AUTHORITY']
Method defines
has 104 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def defines
%^
#define _SEED 0x#{@hash.to_s(16)}
#define _ROR8(v) (v >> 8 | v << 24)
#define MAX_SYSCALLS 500
Method initialize
has 104 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(update_info(info,
'Name' => 'Wireshark LWRES Dissector getaddrsbyname_request Buffer Overflow (loop)',
'Description' => %q{
The LWRES dissector in Wireshark version 0.9.15 through 1.0.10 and 1.2.0 through
Method exploit
has 104 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def exploit
# Generate the WAR containing the payload
app_base = rand_text_alphanumeric(4+rand(32-4))
jsp_name = rand_text_alphanumeric(8+rand(8))
Method initialize
has 104 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(
update_info(
info,
'Name' => 'SaltStack Salt Master/Minion Unauthenticated RCE',
Method mssql_parse_tds_reply
has 104 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def mssql_parse_tds_reply(data, info)
info[:errors] ||= []
info[:colinfos] ||= []
info[:colnames] ||= []
Method cmd_exploit
has 104 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def cmd_exploit(*args, opts: {})
if (args.include?('-r') || args.include?('--reload-libs')) && !opts[:previously_reloaded]
driver.run_single('reload_lib -a')
end
Method initialize
has 104 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(prompt = DefaultPrompt, prompt_char = DefaultPromptChar, opts = {})
histfile = opts['HistFile'] || Msf::Config.history_file
begin
FeatureManager.instance.load_config
Method encode
has 104 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def encode
# Get the minimum number of nops to use
min = (reqs['MinNops'] || 0).to_i
min = 0 if reqs['DisableNops']
Method asm_block_recv_rc4
has 104 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def asm_block_recv_rc4(opts={})
xorkey = Rex::Text.to_dword(opts[:xorkey]).chomp
reliable = opts[:reliable]
asm = %Q^
recv:
Method initialize
has 103 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(update_info(info,
'Name' => 'HTTP Client Automatic Exploiter',
'Description' => %q{
This module has three actions. The first (and the default)
Method super_redacted_deobfuscation
has 103 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def super_redacted_deobfuscation(ciphertext)
input = ciphertext
input = input.gsub('Z', '000')
base = '0'.upto('9').to_a + 'a'.upto('z').to_a + 'A'.upto('G').to_a
Method generate
has 103 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def generate(_opts = {})
# Split the cmd string into arg chunks
cmd_str = datastore['CMD']
cmd_and_args = Shellwords.shellsplit(cmd_str).map { |s| "#{s}\x00" }
Method initialize
has 103 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(merge_info(info,
'Name' => 'Linux x64 Command Shell, Bind TCP Inline (IPv6)',
'Description' => 'Listen for an IPv6 connection and spawn a command shell',
'Author' => 'epi <epibar052[at]gmail.com>',
Method initialize
has 103 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(
update_info(
info,
'Name' => 'Adobe ColdFusion Unauthenticated Remote Code Execution',
Method get_register_info
has 103 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def get_register_info
if @version >= Rex::Version.new('7.2')
vprint_status('Returning SYSINFO for 7.2 target')
register_info = <<~REGISTER_INFO
FCTOS=WIN64
Method send_file
has 103 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def send_file(traversal_path, filename, file_content)
#
# FileStorageService packet structure:
#
# @packet_header_pre_packet_size
Method check
has 103 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def check
# used to ensure cleanup only runs against flexdotnetcms targets
@skip_cleanup = true
# visit login the page to get the necessary cookies
Method initialize
has 103 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info={})
super(update_info(info,
'Name' => "MS12-043 Microsoft XML Core Services MSXML Uninitialized Memory Corruption",
'Description' => %q{
This module exploits a memory corruption flaw in Microsoft XML Core Services
Method build_packet_and_layouts
has 103 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def build_packet_and_layouts(packet, function, args, arch)
case arch
when ARCH_X64
native = 'Q<'
when ARCH_X86