-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
trying to make shellcode from C++ but not complete
- Loading branch information
Showing
27 changed files
with
842 additions
and
1,134 deletions.
There are no files selected for viewing
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
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
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,26 @@ | ||
#ifndef HERMIT_MACROS_HPP | ||
#define HERMIT_MACROS_HPP | ||
#ifndef HERMIT_CORE_MACROS_HPP | ||
#define HERMIT_CORE_MACROS_HPP | ||
|
||
// PEB | ||
#ifdef _WIN64 | ||
#define PPEB_PTR __readgsqword(0x60) | ||
#else | ||
#define PPEB_PTR __readfsqword(0x30) | ||
#endif | ||
|
||
// FUNCTIONS | ||
#define DEREF(name) *(UINT_PTR*)(name) | ||
#define DEREF_64(name) *(DWORD64*)(name) | ||
#define DEREF_32(name) *(DWORD*)(name) | ||
#define DEREF_16(name) *(WORD*)(name) | ||
#define DEREF_8(name) *(BYTE*)(name) | ||
|
||
#define SEC(s, x) __attribute__((section("." #s "$" #x ""))) | ||
|
||
#define MEMCPY __builtin_memcpy | ||
|
||
#ifndef TO_LOWERCASE | ||
#define TO_LOWERCASE(c1, out) (out = (c1 <= 'Z' && c1 >= 'A') ? c1 = (c1 - 'A') + 'a': c1) | ||
#endif | ||
|
||
#endif // HERMIT_MACROS_HPP | ||
#endif // HERMIT_CORE_MACROS_HPP |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.