garrettfoster13 / sccmhunter

MIT License
666 stars 84 forks source link

Feature request: list all devices #81

Open hugo-syn opened 3 days ago

hugo-syn commented 3 days ago

That would be nice to have a way to list all the devices or at least some that match a specific string. Actually it's only possible to get a device if we know the name of that device.

Thanks for the tool :)

garrettfoster13 commented 3 days ago

Hey @hugo-syn can you explain a bit more your work flow? How do you go about choosing a computer you're targeting, etc

I'd originally designed the tool to pull each major database collection and store it but those queries turned out to be absolutely massive and were difficult to predict how long to wait for a response time when pulling from the API -- especially through a proxy.

hugo-syn commented 3 days ago

In my scenario I've compromised an admin account and I want to check all the devices that are enrolled in the SCCM to then run the interact command.

Actually I tried get_collection * and it returns all the collections but it does not work for the devices get_device *. It would be nice to get the same feature. If you don't want to fetch all the devices maybe use partial search like if i do get_device WKS I get WKS01/WKS02/WKS03 etc