File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
post/windows/gather/credentials Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -163,15 +163,15 @@ def check_write_access(path)
163
163
164
164
def check_dirs
165
165
print_status ( "Attempting to create a non-existant PATH dir to use." )
166
- @non_existant_dirs . each do |dir |
166
+ @non_existant_dirs . each do |directory |
167
167
begin
168
- client . fs . dir . mkdir ( dir )
169
- if exist? ( dir )
170
- register_file_for_cleanup ( dir )
171
- return dir
168
+ client . fs . dir . mkdir ( directory )
169
+ if exist? ( directory )
170
+ register_file_for_cleanup ( directory )
171
+ return directory
172
172
end
173
173
rescue Rex ::Post ::Meterpreter ::RequestError => e
174
- vprint_status ( "Unable to create dir: #{ dir } - #{ e } " )
174
+ vprint_status ( "Unable to create dir: #{ directory } - #{ e } " )
175
175
end
176
176
end
177
177
Original file line number Diff line number Diff line change @@ -171,10 +171,10 @@ def get_bookmarks(path)
171
171
end
172
172
173
173
def check_bulletproof ( user_dir )
174
- session . fs . dir . foreach ( user_dir ) do |dir |
175
- if dir =~ /BulletProof Software/
176
- vprint_status ( "BulletProof Data Directory found at #{ user_dir } \\ #{ dir } " )
177
- return "#{ user_dir } \\ #{ dir } " #"\\BulletProof FTP Client\\2010\\sites\\Bookmarks"
174
+ session . fs . dir . foreach ( user_dir ) do |directory |
175
+ if directory =~ /BulletProof Software/
176
+ vprint_status ( "BulletProof Data Directory found at #{ user_dir } \\ #{ directory } " )
177
+ return "#{ user_dir } \\ #{ directory } " #"\\BulletProof FTP Client\\2010\\sites\\Bookmarks"
178
178
end
179
179
end
180
180
return nil
You can’t perform that action at this time.
0 commit comments