This file contains 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
#!/usr/bin/env ruby | |
# | |
# Proof-of-Concept RCE exploit against Gemcutter | |
# | |
# ## Advisory | |
# | |
# ## Caveats | |
# | |
# ## Synopsis | |
# |
This file contains 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
[0-9a-zA-Z]{2} | |
30-39,41-5a,61-7a | |
a:61 z:7a A:41 Z:5a 0:30 9:39 | |
MSP430 alphanumeric shellcode is hard. There's no way to write to memory, | |
no word-sized reg-reg operations, and all we have is add/sub/mov and a few conditional jumps. | |