Database_Forensics Flashcards
CHFI certificate
NAME?
is used for trusted connections
-e
is used to echo the input
NAME?
is used for column separation
Database and log file (MSSQL)
\Microsoft SQL Server\MSSQL14.MSSQLSERVER\MSSQL\DATA*.MDF | *.LDF
DBCC BUFFER
Returns the buffer headers and pages from the SQL server buffer cache where the results are stored
DBCC DBINFO
Returns information related to the database metadata
DBCC DBTABLE
Returns structure of selected database table
dbcc loginfo and go
to obtain the VLF allocations for the moviescope database:
DBCC PAGE
Returns the data page structure of the selected database
DBCC PROCBUF
returns the contents of the SQL Server procedure buffer. Buffer contains SQL server cached executable statements such as stored procedures and SQL queries
DBCC SHOWFILESTATUS
Returns information related to the space occupied by the data files in an active database.
sp_helpdb moviescope and go
to determine the locations of the transaction log files associated with moviescope database (moviescope is the database for demonstration purposes)
sp_helpdb
command outputs the information related to a specific database.
SQL Server error logs
\Microsoft SQL Server\MSSQL14.MSSQLSERVER\MSSQL\LOG\ERRORLOG
Trace files
\Microsoft SQL Server\MSSQL14.MSSQLSERVER \MSSQL\ LOG\LOG_#.TRC
Identify the SQL server function that allows investigators to retrieve the active portion of a transaction log file, such as the target database object, specific columns, SPID, and date/time range.
fn_dblog ()
DBCC Commands
Database Consistency Checker commands may give the investigator valuable insight into what is happening within the Server system.
Pslist commands
displays elementary information about all the processes running on a system.
net session commands
Command is used for managing server computer connections
select * from sys.dm_exec_cached_plans
To view one row per plan attribute for the plan specified by the plan handle.
Select * from ::fn_dblog(NULL, NULL)
Displays the active portion of the transaction log file. Assigning NULL values imply that the start and end points for log sequence numbers (LSNs) are not specified.