Skip to content

Commit f74ab34

Browse files
committed
Delente unnecessary check
1 parent 3c858c7 commit f74ab34

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

modules/auxiliary/admin/mssql/mssql_enum_windows_domain_accounts.rb

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -118,15 +118,12 @@ def run
118118
end
119119

120120
# Create output file
121-
this_service = nil
122-
if framework.db and framework.db.active
123-
this_service = report_service(
124-
:host => rhost,
125-
:port => rport,
126-
:name => 'mssql',
127-
:proto => 'tcp'
128-
)
129-
end
121+
this_service = report_service(
122+
:host => rhost,
123+
:port => rport,
124+
:name => 'mssql',
125+
:proto => 'tcp'
126+
)
130127
filename= "#{datastore['RHOST']}-#{datastore['RPORT']}_windows_domain_accounts.csv"
131128
path = store_loot("windows_domain_accounts", "text/plain", datastore['RHOST'], windows_domain_login_table.to_csv, filename, "SQL Server query results",this_service)
132129
print_status("Query results have been saved to: #{path}")

0 commit comments

Comments
 (0)