-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Refactor arch/platform, refactor TLV XOR, add UUID to each packet, fix payload uuid/arch/platform tracking, and update everything to match #7507
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
Merged
Merged
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
699a8e9
Rework XOR code to make more sense
OJ 0228306
Rejig platform to use windows instead of win32/win64
OJ 7001192
Remove binary suffixes for payloads that don't exist
OJ 786600b
Remove the unused binary_suffix var
OJ ca377ca
Move the binary suffix stuff to a better location
OJ 1d617ae
Implement first pass of architecture/platform refactor
OJ 052045c
Update rex-arch gem to 0.1.2
OJ d201c5b
Force x86_64 to change over to x64 in sysinfo, tidy arch checks
OJ a7485c4
Use constants for base_arch
OJ 1ca2fe1
More platform/arch/session fixes
OJ e936a6d
Update Gemfile to include rex-arch update
OJ 751742f
Fix typo in arch check for inject script
OJ bf7e7ae
Fix silly mistake with resetting arch in sysinfo
OJ 6364e93
Update session types to have base_platform and base_arch
OJ 9e3960f
Update session listing to show type or platform
OJ 0737d7c
Tidy code, remove regex and use comparison for platform checks
OJ 8b97183
Update UUID to match detected platform, fail exploit on invalid session
OJ 57eabda
Merge upstream/master
OJ e5d3fee
Final regex fix for jobs arch check
OJ 8605992
Remove superfluous session check in the post mixin
OJ 7773d90
Update railgun to use arch to check for 64 bit
OJ 0730613
Add comment to hilight need to support ARCH_CMD in sess check
OJ 640827c
Final pass of regex -> string checks
OJ e4edbb1
Fix encoded_payload_spec
OJ eeff24d
Change BSD regex as per Brent's suggestion
OJ ddd2d5e
Remove junk spaces from EXE exploit module
OJ 3c56f1e
Remove commented x64 arch from sock_sendpage
OJ 6ce7352
Revert silly change in applocker bypass
OJ 3c57ff5
Avoid internal constants for bypassuac file path generation
OJ b9bbb5e
Replace regex use with direct string checks in dbvis module
OJ ec8536f
Fix firefox module to use symbols where appopriate
OJ 557424d
Small tidy of the multiport_egress_traffic module
OJ ffb53b7
Tidy arch check in meterpreter inject
OJ 44ac3f8
Use ARCH constant in mainframe_shell
OJ 294b1e5
Move session_type to base, and map shell arch to string
OJ 47ec362
Small fixes for dbvis enum
OJ 6ec7661
Fix arch typo in meterpreter_options for x64
OJ 0fca448
Correctly call generate_stage on native init
OJ a79f860
Add UUIDs to mettle stages
acammack-r7 e5ea4a5
Fix typo in windows cred phish module
OJ 50c2ed8
Fix post mixin platform/session check
OJ abe4602
Fix tests after arch refactor
OJ 5f56848
Fix the DB/Session test
OJ 3bc6808
Really fix the session test this time
OJ d751c43
FINALLY fix the last of the tests
OJ be2aabb
Merge updates to mettle stages from acammack-r7
OJ File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Think we're missing OSX here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, we are. But technically we don't yet have OSX payloads. I did have a bigger selection of binary suffixes in here to begin with, but after chatting to @bcook-r7 I removed the ones we don't yet have payloads for. Mettle will no doubt change things up, but as we add more official payloads, this will get bigger.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah agree with not getting too far ahead of ourselves. Linux should probably change soon too to reflect multiple architectures (but not now).