Showing 7,361 of 22,177 total issues
Method exploit
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def exploit
# get system architecture
arch = sysinfo['Architecture']
if arch != payload_instance.arch.first
fail_with(Failure::BadConfig, 'Wrong payload architecture!')
Method exploit
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def exploit
fail_with(Failure::None, 'Session is already elevated') if is_system?
if !payload.arch.include?(ARCH_X86)
fail_with(Failure::None, 'Payload architecture is not compatible with this module. Please, select an x86 payload')
end
Method initialize
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(
update_info(
info,
'Name' => 'Oracle Business Transaction Management FlashTunnelService Remote Code Execution',
Method initialize
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(
update_info(
info,
'Name' => 'Dup Scout Enterprise Login Buffer Overflow',
Method on_request_uri
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_request_uri(cli, request)
agent = request.headers['User-Agent']
my_target = get_target(agent)
Method initialize
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(update_info(info,
'Name' => 'MS17-010 EternalRomance/EternalSynergy/EternalChampion SMB Remote Windows Code Execution',
'Description' => %q{
This module will exploit SMB with vulnerabilities in MS17-010 to achieve a write-what-where
Method exploit
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def exploit
if !datastore['ForceExploit'] && is_root?
fail_with(Failure::BadConfig, 'Session already has root privileges. Set ForceExploit to override.')
end
Method initialize
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(
update_info(
info,
'Name' => 'Linux Nested User Namespace idmap Limit Local Privilege Escalation',
Method initialize
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(update_info(info,
'Name' => 'GoAhead Web Server LD_PRELOAD Arbitrary Module Load',
'Description' => %q{
This module triggers an arbitrary shared library load vulnerability
Method initialize
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(
update_info(
info,
'Name' => 'TerraMaster TOS 4.2.15 or lower - RCE chain from unauthenticated to root via session crafting.',
Method initialize
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(
update_info(
info,
'Name' => 'Hikvision IP Camera Unauthenticated Command Injection',
Method mapping_data
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def mapping_data
{
'properties' => {
'upgrade-assistant-telemetry' => {
'properties' => {
Method initialize
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(info = {})
super(
update_info(
info,
'Name' => 'Aerospike Database UDF Lua Code Execution',
Method wlan_get_networks
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def wlan_get_networks(wlan_handle, guid)
networks = []
bss_list = @wlanapi.WlanGetNetworkBssList(wlan_handle, guid, nil, 3, true, nil, 4)
pointer = bss_list['ppWlanBssList']
Method parse
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def self.parse(args)
options = {
formatter: DND::DEFAULT_FORMATTER,
gadget_chain: DND::DEFAULT_GADGET_CHAIN,
output_format: 'raw',
Method make_bind_fake_multi
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def self.make_bind_fake_multi(uuid, vers, bind_head=0, bind_tail=0)
bind_head = bind_head.to_i
bind_tail = bind_tail.to_i
bind_head = rand(6)+10 if bind_head == 0
Method cmd_webcam_stream
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def cmd_webcam_stream(*args)
if client.webcam.webcam_list.length == 0
print_error("Target does not have a webcam")
return
end
Method generate
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def self.generate(cmd)
inner = GadgetChains::TextFormattingRunProperties.generate(cmd)
system_data = Assemblies::VERSIONS['4.0.0.0'].fetch('System.Data')
library = Types::RecordValues::BinaryLibrary.new(
library_id: 2,
Method add_computer
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def add_computer(opts = {})
tree = opts[:tree] || connect_ipc
samr_con = connect_samr(tree)
Method _write_file_unix_shell
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def _write_file_unix_shell(file_name, data, append = false)
redirect = (append ? '>>' : '>')
# Short-circuit an empty string. The : builtin is part of posix
# standard and should theoretically exist everywhere.