Skip to content

Commit

Permalink
more rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
h00die committed Jul 16, 2020
1 parent 3d851ca commit 8133933
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
Expand Up @@ -51,7 +51,7 @@ def run_host(_ip)
soapenvenc = 'http://schemas.xmlsoap.org/soap/encoding/'
xsi = 'http://www.w3.org/1999/XMLSchema-instance'
xsd = 'http://www.w3.org/1999/XMLSchema'
ns1 = 'ns1:changeUserPass'
# ns1 = 'ns1:changeUserPass'

data = '<?xml version="1.0" encoding="utf-8"?>' + "\r\n"
data << '<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="' + soapenvenc + '" '
Expand Down
Expand Up @@ -65,7 +65,7 @@ def run
if (res =~ /250 RMD command successful\./)
print_status("\tDirectory #{test} reportedly deleted. Verifying with SIZE #{test}")
sock.put("SIZE #{test}\r\n")
res = sock.get_once(-1, 5)
sock.get_once(-1, 5)
print_status("\tDirectory #{test} no longer exists!")
print_status('Target is confirmed as vulnerable!')
end
Expand Down
4 changes: 1 addition & 3 deletions modules/post/networking/gather/enum_cisco.rb
Expand Up @@ -56,10 +56,8 @@ def run
when /Nexus/
os_type = 'Nexus'
mode = 'EXEC'
os_loot = 'nxos'
when /IOS/
os_type = 'IOS'
os_loot = 'ios'
end
if os_type == 'IOS'
case prompt
Expand Down Expand Up @@ -110,7 +108,7 @@ def run
def get_enable(enable_pass, pass_file)
if enable_pass
found = false
en_out = session.shell_command('enable').to_s.strip
session.shell_command('enable').to_s.strip
en_out = session.shell_command(enable_pass)
if en_out =~ /Password:/
print_error('Failed to change privilege level using provided Enable password.')
Expand Down
6 changes: 3 additions & 3 deletions modules/post/networking/gather/enum_juniper.rb
Expand Up @@ -69,7 +69,7 @@ def run
os_type = 'junos'
elsif /^version (?<ver>[\.\dR]+);/i =~ system_out
vprint_status("Original OS Guess #{os_type}, is now JunOS #{ver}")
os_tye = 'junos'
os_type = 'junos'
end

print_status("The device OS is #{os_type}")
Expand Down Expand Up @@ -124,8 +124,8 @@ def enum_configs(prompt, os_type, command_prefix)
vprint_good("Saving to #{cmd_loc}")
if os_type == 'screenos'
juniper_screenos_config_eater(host, port, cmd_out.strip)
else os_type == 'junos'
juniper_junos_config_eater(host, port, cmd_out.strip)
elsif os_type == 'junos'
juniper_junos_config_eater(host, port, cmd_out.strip)
end
end
end
Expand Down

0 comments on commit 8133933

Please sign in to comment.