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

Add User Agent rewrite functionality #61

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

TinusGreen
Copy link

Using the default Python Requests package User Agent can be an IoC that can be used by blue teams to detect the use of SCCMHunter. This pull request introduces a new argument, -uar which can be used to rewrite the User Agent.

Taking the idea from ROADTools, a new dict with well known User Agents are provided, allowing users to choose a User Agent for rewrite. Once the argument is specified, all Python Requests will make use of the selected User Agent.

The feature works by defining an empty headers = {} dict, which is then populated with a User Agent value, if the -uar argument is used. A Ludus SCCM range was used ot verify the functionality and feature. While most commands were tested, coverage was not 100% due to the Ludus range not having the full configuration required to test every command of SCCMHunter.

@TinusGreen
Copy link
Author

Pull request is aimed to address issue #59

@garrettfoster13
Copy link
Owner

Thanks for the PR @TinusGreen give me a few days to test things out and then I'll get it merged!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants