Showing 16,065 of 22,177 total issues
Method generate_cmdstager
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def generate_cmdstager(opts = {}, pl = nil)
select_cmdstager(opts)
exe_opts = {code: pl}.merge(
platform: target_platform,
Method handle_credential_login
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def handle_credential_login(data, mod)
# Required
service_data = {
address: data['address'],
port: data['port'],
Method generate_axis2
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def generate_axis2(opts={})
raise if not respond_to? :stager_config
app_name = opts[:app_name] || Rex::Text.rand_text_alpha_lower(rand(8)+8)
Method handle_intermediate_stage
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def handle_intermediate_stage(conn, payload)
if( self.module_info['Stager']['RequiresMidstager'] == false )
conn.put( [ payload.length ].pack('V') )
# returning false allows stager.rb!handle_connection() to prepend the stage_prefix if needed
return false
Method initialize
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(
update_info(
info,
'Compat' => {
Method busy_box_write_file
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def busy_box_write_file(file_path, data, prepend = false)
if prepend
dir = busy_box_writable_dir
return false unless dir
cmd_exec("cp -f #{file_path} #{dir}tmp")
Method service_change_startup
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def service_change_startup(name, mode, server = nil)
if mode.is_a? Integer
startup_number = mode
else
case mode.downcase
Method win_parse_results
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def win_parse_results(str)
tip = false
hashish = {}
lastkey = nil
str.each_line do |line|
Method shell_registry_getvalinfo
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def shell_registry_getvalinfo(key, valname, view)
key = normalize_key(key)
value = {
'Data' => nil,
'Type' => nil
Method ldap_auth_opts_kerberos
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def ldap_auth_opts_kerberos(opts, ssl)
auth_opts = {}
raise Msf::ValidationError, 'The LDAP::Rhostname option is required when using Kerberos authentication.' if opts[:ldap_rhostname].blank?
raise Msf::ValidationError, 'The DOMAIN option is required when using Kerberos authentication.' if opts[:domain].blank?
Method attempt_login
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def attempt_login(credential)
result_options = {
credential: credential
}
Method attempt_login
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def attempt_login(credential)
result_opts = {
credential: credential,
status: Metasploit::Model::Login::Status::INCORRECT,
proof: nil,
Method attempt_login
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def attempt_login(credential)
result_opts = {
credential: credential
}
Method Exec
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public virtual void Exec(int oldLen)
{
try {
// generate JIT-code for Payload()
Payload();
Function check_logins
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def check_logins(rhost, rport, targeturi, domain, usernames, passwords, timeout, user_agent):
Function __init__
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self, command='', username='', password='', domain='', hashes=None, share=None,
Function check_login
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def check_login(rhost, rport, targeturi, domain, username, password, timeout, user_agent):
Function _encdec
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _encdec(self, data, K, s, S, L1, L2, L3, L4):
Consider simplifying this complex logical expression. Open
Open
if ((node.is_leaf? && !strpath.include?('.')) || node.is_root? || !node.is_leaf?) && (!usinginipath || (usinginipath && strpath.match(inipathname)))
modopts['PATH'] = strpath
print_status("Path: #{strpath}")
Method scheduleremote
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def scheduleremote(session,schtype,cmd,tmmod,cmdopt,targetsys,username,password)