Skip to content

Commit cf0f00a

Browse files
committed
Variable name changes per ruby style guide
1 parent 0735de0 commit cf0f00a

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

modules/auxiliary/scanner/snmp/sbg6580_enum.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,19 +63,19 @@ def run_host(ip)
6363
# using the CableHome cabhPsDevMib MIB module which defines the
6464
# basic management objects for the Portal Services (PS) logical element
6565
# of a CableHome compliant Residential Gateway device
66-
deviceUiSelection = snmp.get_value('1.3.6.1.4.1.4491.2.4.1.1.6.1.3.0').to_i
67-
if deviceUiSelection == 1
66+
device_ui_selection = snmp.get_value('1.3.6.1.4.1.4491.2.4.1.1.6.1.3.0').to_i
67+
if device_ui_selection == 1
6868
# manufacturerLocal(1) - indicates Portal Services is using the vendor
6969
# web user interface shipped with the device
70-
deviceUiUsername = snmp.get_value('1.3.6.1.4.1.4491.2.4.1.1.6.1.1.0').to_s
71-
output_data["Username"] = deviceUiUsername.strip
70+
device_ui_username = snmp.get_value('1.3.6.1.4.1.4491.2.4.1.1.6.1.1.0').to_s
71+
output_data["Username"] = device_ui_username.strip
7272

73-
deviceUiPassword = snmp.get_value('1.3.6.1.4.1.4491.2.4.1.1.6.1.2.0').to_s
74-
output_data["Password"] = deviceUiPassword.strip
73+
device_ui_password = snmp.get_value('1.3.6.1.4.1.4491.2.4.1.1.6.1.2.0').to_s
74+
output_data["Password"] = device_ui_password.strip
7575
end
7676

77-
primaryWifiState = snmp.get_value('1.3.6.1.2.1.2.2.1.8.32').to_i
78-
if primaryWifiState != 1
77+
primary_wifi_state = snmp.get_value('1.3.6.1.2.1.2.2.1.8.32').to_i
78+
if primary_wifi_state != 1
7979
# primary Wifi interface is not up
8080
print_status("Primary WiFi is disabled on the device")
8181
end
@@ -120,8 +120,8 @@ def run_host(ip)
120120
output_data["WEP Key 4"] = wep_key4.unpack('H*')[0]
121121

122122
# get current network key
123-
currentKey = snmp.get_value('1.3.6.1.4.1.4413.2.2.2.1.5.4.2.1.1.1.32').to_s
124-
output_data["Current Network Key"] = currentKey
123+
current_key = snmp.get_value('1.3.6.1.4.1.4413.2.2.2.1.5.4.2.1.1.1.32').to_s
124+
output_data["Current Network Key"] = current_key
125125

126126
if network_auth_mode == 6
127127
get_radius_info(snmp, output_data)

0 commit comments

Comments
 (0)