Skip to content

Commit

Permalink
clean up code duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
zgoldman-r7 committed Feb 14, 2024
1 parent d18520a commit 7857cf9
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions modules/exploits/windows/mssql/mssql_payload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,6 @@ def initialize(info = {})
end

def check
if session
set_session(session.client)
end

unless session || mssql_login_datastore
vprint_status("Invalid SQL Server credentials")
return Exploit::CheckCode::Detected
end

if session
set_session(session.client)
else
Expand Down

0 comments on commit 7857cf9

Please sign in to comment.