Skip to content
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

Delete hosts without services msf_db #19155

Open
Danny-Cap opened this issue May 2, 2024 · 0 comments
Open

Delete hosts without services msf_db #19155

Danny-Cap opened this issue May 2, 2024 · 0 comments
Labels
question Questions about Metasploit Usage

Comments

@Danny-Cap
Copy link

Danny-Cap commented May 2, 2024

Hi guys, similar to this question:
#11114

I'm looking for a way to delete all the hosts from my workspace database that have no services.

Normally you would just filter on the "0" service_count column and delete them.

However, by trying this..
hosts -c address,service_count -S 0

The "0" also matches on the IP addresses and thus also show hosts WITH services..

How can i filter this so that only hosts without services show up and can simply add the "-d" parameter to delete them.


Note, hosts -c service_count -S 0 still matches the 0 on IP addresses, even though they dont show up

@Danny-Cap Danny-Cap added the question Questions about Metasploit Usage label May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Questions about Metasploit Usage
Projects
None yet
Development

No branches or pull requests

1 participant