Skip to content

Commit ccf9e2a

Browse files
Increase SHELLCODE_SIZE from 137 to 187
1 parent 8c9c8d4 commit ccf9e2a

File tree

1 file changed

+12
-9
lines changed
  • Plugin_samples/Game_Plugin_Loader/source

1 file changed

+12
-9
lines changed

Plugin_samples/Game_Plugin_Loader/source/utils.hpp

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ struct GameStuff {
177177

178178
struct GameBuilder {
179179

180-
static constexpr size_t SHELLCODE_SIZE = 137;
180+
static constexpr size_t SHELLCODE_SIZE = 187;
181181
static constexpr size_t EXTRA_STUFF_ADDR_OFFSET = 2;
182182

183183
uint8_t shellcode[SHELLCODE_SIZE];
@@ -192,14 +192,17 @@ static constexpr GameBuilder BUILDER_TEMPLATE {
192192

193193

194194
// Additional shellcode0x55, 0x41, 0x57, 0x41, 0x56, 0x41, 0x54, 0x53, 0x48, 0x83, 0xec, 0x60, 0x4c, 0x8b, 0x62, 0x20,0x55, 0x41, 0x57, 0x41, 0x56, 0x41, 0x54, 0x53, 0x48, 0x83, 0xec, 0x30, 0x4c, 0x8b, 0x62, 0x20,
195-
0x55, 0x41, 0x57, 0x41, 0x56, 0x53, 0x48, 0x83, 0xec, 0x18, 0x48, 0xb8, 0x48, 0x65, 0x6c, 0x6c,
196-
0x6f, 0x20, 0x66, 0x72, 0x48, 0x89, 0xd3, 0x49, 0x89, 0xf6, 0x41, 0x89, 0xff, 0x48, 0x89, 0x04,
197-
0x24, 0x48, 0xb8, 0x6f, 0x6d, 0x20, 0x42, 0x4f, 0x36, 0x00, 0x00, 0x48, 0x89, 0x44, 0x24, 0x08,
198-
0xff, 0x12, 0x89, 0xc5, 0x45, 0x85, 0xff, 0x7e, 0x39, 0x85, 0xed, 0x75, 0x35, 0x41, 0x80, 0x7e,
199-
0x4c, 0x00, 0x74, 0x2e, 0x83, 0xbb, 0x28, 0x01, 0x00, 0x00, 0x00, 0x75, 0x25, 0x48, 0x8d, 0x7b,
200-
0x28, 0x31, 0xf6, 0x31, 0xd2, 0x31, 0xc9, 0x45, 0x31, 0xc0, 0x45, 0x31, 0xc9, 0xff, 0x53, 0x10,
201-
0x48, 0x89, 0xe6, 0x31, 0xff, 0xff, 0x53, 0x08, 0xc7, 0x83, 0x28, 0x01, 0x00, 0x00, 0x01, 0x00,
202-
0x00, 0x00, 0x89, 0xe8, 0x48, 0x83, 0xc4, 0x18, 0x5b, 0x41, 0x5e, 0x41, 0x5f, 0x5d, 0xc3
195+
0x55, 0x41, 0x57, 0x41, 0x56, 0x53, 0x48, 0x83, 0xec, 0x38, 0x48, 0xb8, 0x48, 0x65, 0x6c, 0x6c,
196+
0x6f, 0x20, 0x66, 0x72, 0x48, 0xb9, 0x6f, 0x6d, 0x20, 0x42, 0x4f, 0x36, 0x00, 0x00, 0x48, 0xc7,
197+
0x44, 0x24, 0x08, 0x00, 0x00, 0x00, 0x00, 0x49, 0x89, 0xd6, 0x48, 0x89, 0xf3, 0x89, 0xfd, 0x48,
198+
0x89, 0x44, 0x24, 0x10, 0x48, 0x89, 0x4c, 0x24, 0x18, 0x48, 0x89, 0x44, 0x24, 0x20, 0xff, 0x12,
199+
0x41, 0x89, 0xc7, 0x85, 0xed, 0x7e, 0x55, 0x45, 0x85, 0xff, 0x75, 0x50, 0x80, 0x7b, 0x4c, 0x00,
200+
0x74, 0x4a, 0x41, 0x83, 0xbe, 0x28, 0x01, 0x00, 0x00, 0x00, 0x75, 0x40, 0x49, 0x8d, 0x7e, 0x28,
201+
0x31, 0xf6, 0x31, 0xd2, 0x31, 0xc9, 0x45, 0x31, 0xc0, 0x45, 0x31, 0xc9, 0x41, 0xff, 0x56, 0x10,
202+
0x48, 0x8d, 0x74, 0x24, 0x20, 0x48, 0x8d, 0x54, 0x24, 0x08, 0x89, 0xc7, 0x41, 0xff, 0x56, 0x18,
203+
0x31, 0xc0, 0xff, 0x54, 0x24, 0x08, 0x48, 0x8d, 0x74, 0x24, 0x10, 0x31, 0xff, 0x41, 0xff, 0x56,
204+
0x08, 0x41, 0xc7, 0x86, 0x28, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x44, 0x89, 0xf8, 0x48,
205+
0x83, 0xc4, 0x38, 0x5b, 0x41, 0x5e, 0x41, 0x5f, 0x5d, 0xc3
203206
};
204207

205208

0 commit comments

Comments
 (0)