| 32 | }; |
| 33 | |
| 34 | class ShellcodeSplitor { |
| 35 | private: |
| 36 | UINT8 *shellcode; |
| 37 | UINT32 length; |
| 38 | public: |
| 39 | ShellcodeSplitor(UINT8 *shellcode, UINT32 length) { |
| 40 | this->shellcode = (UINT8 *)malloc(length); |
| 41 | for (int i = 0; i < length; i++) { |
| 42 | this->shellcode[i] = shellcode[i]; |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | ~ShellcodeSplitor() { |
| 47 | if (shellcode != NULL) { |
| 48 | free(shellcode); |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | ShellcodeContainer *split(); |
| 53 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected