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 metadata headers to responses. #60

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Matir
Copy link
Contributor

@Matir Matir commented Jul 30, 2022

This adds two new headers to the responses from the CC Server back to the browser driving the interaction (i.e., the browser being used by a security engineer doing testing). X-CC-Bot-Name is set to the string identifier for the bot provided by the user. X-CC-Bot-Id is set to the UUID for the individual implant. This allows logging software on the user-agent or an intermediate proxy (i.e., Burp, mitmproxy) to associate the request/response pair with a particular implant. This may be useful for teams that want to automatically log traffic going through CursedChrome.

If the environment variable ADD_METADATA_HEADERS is set to 0, this feature is disabled. For most use cases, it will be a functional no-op even if added. (Responses are already often modified, so no client should have the expectation that it is a perfect replication of the response.)

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.

1 participant