...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
SELECT c.Label , c.Username , o.Name as Outcome , ch.[IPAddress] , p.Name as [Project Name] FROM [history].[t_ConnectionHistory] ch INNER JOIN config.t_Credential c ON ch.CredentialID = c.CredentialID INNER JOIN config.t_Outcome o ON ch.OutcomeID = o.OutcomeID INNER JOIN jobs.t_JobLocationProjectIPRange AS jobProj ON jobProj.JobID = ch.JobID join config.t_Project p on jobProj.ProjectID =p.ProjectID WHERE Connection = 'Oracle Database' AND p.ProjectID = '1' |
This can be further refined to search for results on a specific date that the target was scanned for example. This example also looks for failed MS SQL connection attempts
...