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 IAgentRepository to simplify agent download during propagation #1756

Merged
merged 9 commits into from
Mar 2, 2022

Conversation

mssalvatore
Copy link
Collaborator

What does this PR do?

This PR introduces IAgentRepository, a simpler way for exploiters to retrieve the agent binaries they need for propagation. The API endpoint on the island has been simplified, which helps to simplify the process of downloading agents from the island. The monkeyfs is superseded by IAgentRepository and has therefore been removed. Both the SSH and Hadoop exploiters have been modified to use the new interface.

Issue #1675

Add any further explanations here.

PR Checklist

  • Have you added an explanation of what your changes do and why you'd like to include them?
  • Is the TravisCI build passing?
  • Was the CHANGELOG.md updated to reflect the changes?
  • Was the documentation framework updated to reflect the changes?

Testing Checklist

  • Added relevant unit tests?
  • Have you successfully tested your changes locally? Elaborate:

    Tested by running SSH and Hadoop blackbox tests

  • If applicable, add screenshots or log transcripts of the feature working

@mssalvatore mssalvatore marked this pull request as ready for review March 1, 2022 20:01
Comment on lines 45 to 46
file_sha256_hash = filename, hashlib.sha256(file_contents).hexdigest()
logger.debug(f"{filename} hash:\nSHA-256 {file_sha256_hash}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Filename is logged twice?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch.

@mssalvatore mssalvatore merged commit 0765880 into 1675-remove-32-bit-agents Mar 2, 2022
@mssalvatore mssalvatore deleted the 1675-agent-repository branch March 2, 2022 11:43
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.

2 participants