-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add DB Stats Command to Console #18373
Conversation
now with creds and kerberos ticket counts! |
@cdelafuente-r7 right now the code loops through counts for each field when populating the workspace rows. Later it does a request for all counts, which in theory isn't needed as the numbers could be totaled up from before and stored. Save a few DB queries, thoughts? This is already partially done since just thought it may be good to expand it. |
@h00die, yes absolutely, I think it is a good idea. |
There seems to be a bug in the |
Thanks for calling this out, this PR here #18400 should sort it |
Thank you @dwelch-r7 and @h00die for working on this issue. The related PR is now landed. @h00die, would you mind rebasing your branch? When it's done, I'll do a last batch of test and land it. Thanks! |
rebased |
Thanks @h00die ! Everything looks good to me. I'll go ahead and land it. Example output
|
Release NotesThis adds a |
fix #13136
@leebaird 3yrs later :)
This PR adds a
db_stats
command which gives the user information about how much data is in their database/workspace. It is very similar todebug --database
, in fact borrowing some code from there, however this prints in console friendly format instead of markdown. I've also added some quick calculations for services/host, and vulns/host.Verification
msfconsole
db_stats
prints out a friendly formatted table with the information