Skip to content

Commit 54de805

Browse files
committed
Report credentials
* Even when we are not associating them to hosts * It's a post module so maybe we cannot solve some names
1 parent b3b37c7 commit 54de805

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

modules/post/multi/gather/remmina_creds.rb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def run
4141

4242
creds.each do |cred|
4343
cred_table << cred
44+
report_credential(cred[3], cred[4])
4445
end
4546

4647
print_line(cred_table.to_s)
@@ -169,4 +170,19 @@ def get_settings(file)
169170
vprint_error("No settings found in #{file}") if settings.empty?
170171
settings
171172
end
173+
174+
def report_credential(user, pass)
175+
credential_data = {
176+
workspace_id: myworkspace_id,
177+
origin_type: :session,
178+
session_id: session_db_id,
179+
post_reference_name: self.refname,
180+
username: user,
181+
private_data: pass,
182+
private_type: :password
183+
}
184+
185+
create_credential(credential_data)
186+
end
187+
172188
end

0 commit comments

Comments
 (0)