| 3 | #include<vector> |
| 4 | |
| 5 | class ShellcodeItem { |
| 6 | public: |
| 7 | UINT32 length; |
| 8 | UINT8 *codes; |
| 9 | |
| 10 | ShellcodeItem(UINT32 length, UINT8 *codes) { |
| 11 | this->codes = (UINT8 *)malloc(length); |
| 12 | for (int i = 0; i < length; i++) { |
| 13 | this->codes[i] = codes[i]; |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | ~ShellcodeItem() { |
| 18 | free(codes); |
| 19 | } |
| 20 | }; |
| 21 | |
| 22 | class ShellcodeContainer { |
| 23 | public: |
nothing calls this directly
no outgoing calls
no test coverage detected