Showing 7,361 of 22,177 total issues
Method initialize
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(update_info(info,
'Name' => '3Com 3CDaemon 2.0 FTP Username Overflow',
'Description' => %q{
This module exploits a vulnerability in the 3Com 3CDaemon
Method on_request_uri
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_request_uri(cli, request)
# Set target manually or automatically
my_target = target
if my_target.name == 'Automatic'
Method initialize
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(
update_info(
info,
'Name' => 'Klog Server authenticate.php user Unauthenticated Command Injection',
Method execute_command
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def execute_command(cmd)
name_v = Rex::Text.rand_text_alphanumeric(16)
unique_id_v = Rex::Text.rand_text_alphanumeric(16)
body = {
Method initialize
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(
update_info(
info,
'Name' => 'Western Digital MyCloud unauthenticated command injection',
Method initialize
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(
update_info(
info,
'Name' => 'MagnusBilling application unauthenticated Remote Command Execution.',
Method initialize
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(
update_info(
info,
'Name' => 'TerraMaster TOS 4.2.06 or lower - Unauthenticated Remote Code Execution',
Method initialize
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(
update_info(
info,
'Name' => 'Chamilo unauthenticated command injection in PowerPoint upload',
Method run
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def run
devname = datastore['DEVICE']
base_filename = datastore['OUTFILE']
split = datastore['SPLIT']
block_size = datastore['BLOCKSIZE']
Method cmd_threads
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def cmd_threads(*args)
# Make the default behavior listing all jobs if there were no options
# or the only option is the verbose flag
if (args.length == 0 or args == ["-v"])
args.unshift("-l")
Method cmd_klist
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def cmd_klist(*args)
return unless active?
entries_affected = 0
mode = :list
Method recv_unirpc_message
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def recv_unirpc_message(sock, first_result_is_status: false)
# Receive the header
header = sock.get_once(0x18)
# Make sure we received all of it
Method report_ntlm_type3
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def report_ntlm_type3(address:, ntlm_type1:, ntlm_type2:, ntlm_type3:)
ntlm_message = ntlm_type3
hash_type = nil
user = ntlm_message.user.force_encoding(::Encoding::UTF_16LE).encode(''.encoding)
Method cmd_wmap_sites
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def cmd_wmap_sites(*args)
args.push('-h') if args.empty?
while (arg = args.shift)
case arg
Method run
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def run
vprint_status("#{peer} - Checking build info")
res = send_request_cgi(
'uri' => normalize_uri(target_uri.path, 'api', 'v1', 'status', 'buildinfo'),
'method' => 'GET'
Method run_host
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def run_host(ip)
if datastore['SUBDOM_LIST'] and ::File.file?(datastore['SUBDOM_LIST'])
valstr = IO.readlines(datastore['SUBDOM_LIST']).map {
|e| e.gsub(".#{datastore['DOMAIN']}", "").chomp
}
Method initialize
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(merge_info(info,
'Name' => 'Bind TCP Stager',
'Description' => 'Listen for a connection',
'Author' => 'hdm',
Method initialize
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(
update_info(
info,
'Name' => 'HorizontCMS Arbitrary PHP File Upload',
Method create_pod
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def create_pod
if datastore['PodImage'].blank?
image_names = @kubernetes_client.list_pods(namespace).fetch(:items, []).flat_map { |pod| pod.dig(:spec, :containers).map { |container| container[:image] } }.uniq
fail_with(Failure::NotFound, 'An image could not be found from which to create a pod, set the PodImage option') if image_names.empty?
else
Method initialize
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize( info = {} )
super( update_info( info,
'Name' => 'Java Signed Applet Social Engineering Code Execution',
'Description' => %q{
This exploit dynamically creates a .jar file via the